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

◆ MeleePrefix()

virtual bool Terraria.ModLoader.ModItem.MeleePrefix ( )
inlinevirtualinherited

Allows you to change whether or not a weapon receives melee prefixes. Return true if the item should receive melee prefixes and false if it should not. Takes priority over WeaponPrefix, RangedPrefix, and MagicPrefix.

Definition at line 149 of file ModItem.cs.

150 {
151 if (Item.melee)
152 {
153 return !Item.noUseGraphic;
154 }
155 return false;
156 }
bool melee
Definition Item.cs:800
bool noUseGraphic
If true, the item's sprite will not be visible while the item is in use. Defaults to false.
Definition Item.cs:641
Item Item
The item object that this ModItem controls.
Definition ModItem.cs:28

References Terraria.Item.melee, and Terraria.Item.noUseGraphic.