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

◆ RangedPrefix()

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

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

Definition at line 176 of file ModItem.cs.

177 {
178 if (!Item.ranged)
179 {
180 return Item.CountsAsClass(DamageClass.Throwing);
181 }
182 return true;
183 }
bool CountsAsClass(DamageClass damageClass)
This is used to check if this item benefits from the specified T:Terraria.ModLoader....
Definition Item.cs:51929
bool ranged
Definition Item.cs:838
Item Item
The item object that this ModItem controls.
Definition ModItem.cs:28

References Terraria.Item.CountsAsClass(), Terraria.Item.ranged, and Terraria.ModLoader.DamageClass.Throwing.

+ Here is the call graph for this function: