In my game character can use many weapon types, weapons and armor. Also they are shown on his sprite. So if your inventory says it's Katana in your arms - you see it. If katana is poisonous then sprite is different (could be rough-made katana with green lines or smthg doesn't really matter now). If I want to add new weapon to the game i simply add his stats and image name into ini, put image in the right folder. From now my new weapon can be obtained randomly as a loot from enemies.
The question is - how it could be done? I had some thoughts:
1. Creating different sprite for each weapon (Oh my.., 20 swords - 20 different objects, it's killing me
2. Creating different animations in one sprite (omg, huge amount of it!!!);
3. Changing sprite of weapon via in-game preload (O.M.G. If i had to choose between 3 or 5 swords it will be painfull. Image Manipulator all-the-way when choosing like "what I prefer more - maces or swords?" And App could crash easily in that case);