tModLoader Help with weapon flag

WackyTentacle

Terrarian
First of, I don't know if it's called a "flag" for ModLoader, but it's a commom coding name for specifying a thing on the code. So, how do I make a weapon have a certain flag that I can use for other things, like accessories?
Example: my weapon is a ranged weapon, and I wanna make an accessory that increase it's damage, but only that type of weapon, not all ranged weapons, just like Magic Quiver interacts only with arrow-type weapons.

Also, almost in the same topic, how do I make my weapon interact differently when I have that accessory equiped? I can use an if(accessory equiped) shoot 1 more projectile (or in this case I can just increase the weapon useTime to make it shoot one more in the same useAnimation time), but how do I do it?

Thanks for your help!
 
Back
Top Bottom