hey quick question there is this one comm I am doing that has like 100s of different styles of weapons and I was wondering for stuff like duration for → cooldowns, stuns and etc. Where would you put all that per weapon? I don’t really wanna put a single module with everything cause it’s gonna 100s of lines for them to check how would you set it up? right now for every single weapon I did this for the assets. https://media.discordapp.net/attachments/1206623301867282534/1294109823197253632/image.png?ex=6709d131&is=67087fb1&hm=e92ba0b2ae0af53627b6b30a43026a7ead5fbbba03138a1f0825695de16c96ee&=&format=webp&quality=lossless&width=387&height=316
Use Inheritance classes.
Make a main class for Items, then a class for equippables, then a class for weapons, and then classes for weapon types. The Item class will handle putting items in your inventory, dropping them etc. Equippable class will store methods for equipping items and unequipping items. The weapon class will store methods which will be used for all weapons, and the weapon type classes are more specific.
So one module with a tone of module children for each weapon, when I say weapon its just a bunch of swords.?
Item is the main module, its direct child would be equippable, the child of equippable would be weapon, the children of weapon will be things like “Sword”, “Dagger”, “Axe”. Then the children of those Weapon Types are specific weapons. (The only thing you would have to change for the specific weapons would be table values, so its super easy to make modular.)