|
TModLoader v1.4.4.9
TModLoader source code documentation
|
Determines whether or not the given ammunition should be conserved, based on the given weapon as wielded by this player.
| weapon | The weapon attempting to consume the ammo. |
| ammo | The ammo attempting to be conserved (i.e. not consumed). |
| projToShoot | The projectile that should be shot by the given weapon/ammo combination. |
Definition at line 54222 of file Player.cs.
References Terraria.Player.ammoBox, Terraria.Player.ammoCost75, Terraria.Player.ammoCost80, Terraria.Player.ammoPotion, Terraria.ModLoader.CombinedHooks.CanConsumeAmmo(), Terraria.Player.chloroAmmoCost80, Terraria.Item.CountsAsClass(), Terraria.Player.huntressAmmoCost90, Terraria.ID.AmmoID.Sets.IsArrow, Terraria.Player.itemAnimation, Terraria.Player.ItemAnimationJustStarted, Terraria.Player.ItemUsesThisAnimation, Terraria.Player.magicQuiver, Terraria.Main.rand, Terraria.Main.remixWorld, Terraria.ModLoader.DamageClass.Throwing, Terraria.Player.ThrownCost33, Terraria.Player.ThrownCost50, and Terraria.ModLoader.CombinedHooks.TotalUseTime().
Referenced by Terraria.Player.PickAmmo().
Here is the call graph for this function:
Here is the caller graph for this function: