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...