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

◆ FitsAmmoSlot()

bool Terraria.Item.FitsAmmoSlot ( )
inline

Definition at line 3486 of file Item.cs.

3487 {
3488 if ((type != 0 && ammo <= 0 && bait <= 0 && type != 530 && type != 849 && !PaintOrCoating) || notAmmo)
3489 {
3490 return type == 353;
3491 }
3492 return true;
3493 }
int ammo
The Ammo ID this item belongs to. Weapons with F:Terraria.Item.useAmmo set to the same AmmoID will co...
Definition Item.cs:606
bool PaintOrCoating
true if F:Terraria.Item.paint > 0 || F:Terraria.Item.paintCoating > 0 and false otherwise.
Definition Item.cs:901
int bait
The numerical value this item adds to a player's fishing skill when used as bait. If greater than 0,...
Definition Item.cs:241
bool notAmmo
If true and the item is ammo (sets F:Terraria.Item.ammo to something), the item will not count as amm...
Definition Item.cs:612
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....
Definition Item.cs:345

References Terraria.Item.ammo, Terraria.Item.bait, Terraria.Item.notAmmo, Terraria.Item.PaintOrCoating, and Terraria.Item.type.

Referenced by Terraria.Player.GetItem().

+ Here is the caller graph for this function: