clintbellanger / flare

Free Libre Action Roleplaying Engine
http://clintbellanger.net/rpg/
GNU General Public License v3.0
166 stars 41 forks source link

Allow defining elemental types in engine/elements.txt #810

Closed dorkster closed 12 years ago

dorkster commented 12 years ago

Works with existing game data. I added all the types that were in PowerManager.h, though I'm not sure if we want all of those (each one is displayed in MenuCharacter).

makrohn commented 12 years ago

Awesome! Merged and tested in Poly, and it works perfectly!

clintbellanger commented 12 years ago

I suppose it's fine for now to list all elements in the Character menu. For Flare The Game we might actually just use fire and ice.

If it comes up later, where a game wants lots of interacting elements but the player's equipment only affects a subset, we can update the config file to show whether each element is visible or not in the Character menu.

Or, perhaps a smarter option: could we display elemental resist on the Character menu only when the value is above 0? I guess that isn't a perfect solution though. All it would take is one item/spell that gives 1% Resist All to make the menu list everything.

So yeah, keep in mind that later we might mark these visible or not in the elements.txt file.