KFPilot / KFTurbo

KFTurbo is a balance overhaul mod for Killing Floor that also includes a few QoL improvements.
GNU General Public License v2.0
2 stars 1 forks source link

Trader Menu visual bug: HuskGun Fill cost displayed wrong. #19

Closed nr42111 closed 2 months ago

nr42111 commented 2 months ago

When filling ammo for the Husk Gun it uses the code

       if( class<W_Huskgun_Pickup>(MyPickup) != None )
        {
            MyBuyable.ItemFillAmmoCost    = (int(((MaxAmmo - CurAmmo) * float(MyPrimaryPickup.default.AmmoCost)) / float(MyPrimaryPickup.default.BuyClipSize))) * KFV.static.GetAmmoCostScaling(PRI, MyPrimaryPickup);
        }

however when displaying the calculated amount in the trader menu, "BuyClipSize" is treated as "1". Purchasing the ammo subtracts the correct amount.

KFPilot commented 2 months ago

Fixed by 205dda8.