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

◆ IsAPrefixableAccessory()

bool Terraria.Item.IsAPrefixableAccessory ( )
inline

Determines if this T:Terraria.Item is an accessory that can receive prefixes.

Returns
true if this T:Terraria.Item is an accessory, is not a vanity item, and is not blacklisted from receiving prefixes (F:Terraria.ID.ItemID.Sets.CanGetPrefixes).

Definition at line 1878 of file Item.cs.

1879 {
1880 if (accessory && !vanity)
1881 {
1883 }
1884 return false;
1885 }
static bool[] CanGetPrefixes
If true for a given item type (F:Terraria.Item.type), then that item is allowed to receive prefixes....
Definition ItemID.cs:305
bool vanity
If true, this item is a vanity item. Vanity items can't receive prefixes and have a special vanity ...
Definition Item.cs:665
bool accessory
Whether the item is an accessory. Defaults to false.
Definition Item.cs:378
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.accessory, Terraria.ID.ItemID.Sets.CanGetPrefixes, Terraria.Item.type, and Terraria.Item.vanity.

Referenced by Terraria.Item.CanHavePrefixes(), Terraria.Item.GetPrefixCategory(), and Terraria.Item.GetRollablePrefixes().

+ Here is the caller graph for this function: