TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ HasAmmo() [1/2]

bool Terraria.Player.HasAmmo ( Item sItem)
inline

Whether or not the player has ammunition available for the given weapon.

Parameters
sItemThe weapon for which to try to find ammunition.
Returns
True if the player has ammo available; false otherwise.

Definition at line 53974 of file Player.cs.

53975 {
53976 return HasAmmo(sItem, canUse: true);
53977 }
bool HasAmmo(Item sItem)
Whether or not the player has ammunition available for the given weapon.
Definition Player.cs:53974

References Terraria.Player.HasAmmo().

Referenced by Terraria.Projectile.AI_075(), Terraria.Player.HasAmmo(), and Terraria.Player.ItemCheck_CheckCanUse().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: