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

◆ CanFillEmptyAmmoSlot()

bool Terraria.Item.CanFillEmptyAmmoSlot ( )
inline

Definition at line 3495 of file Item.cs.

3496 {
3497 if (bait <= 0 && !PaintOrCoating && type != 353 && type != 849 && type != 169 && type != 75 && type != 23 && type != 408 && type != 370 && type != 1246)
3498 {
3499 return !notAmmo;
3500 }
3501 return false;
3502 }
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.bait, Terraria.Item.notAmmo, Terraria.Item.PaintOrCoating, and Terraria.Item.type.