a_dead_topic says, "Hello, World!"
Yes, it is that time to /necro this topic. I am currently ass-deep in a spells table redesign, including (possibly) merging Traits data into the parent Spells table, but so far I am not convinced that is the best course of action. In fact, it might make more sense to ADD tables to support the other types of spells/abilities to come - spell_traditions, spell_altadv, spell_yourmom, etc. Still mulling that one over.
The only thing really relevant to me right now is to not have (example)
Heal I -
Heal IX:
9 separate records for a spell line called Heal. Because each one of these also has up to (7?) tiers, that's just a ton of data for World to have to manage.
My current design, which I am second guessing a little.
new_spells.jpg
`spells` - add columns to support Traits, Traditions and AA, the latter being merely flags so we can easily identify them from normal spells.
`spell_tiers` - add
spell_line_level which represents the current level for a spell in a line. Spell lines will maintain their separate tiers and unique data settings this way, and it is much less data than repeating varchars 1,000's of times.
`spell_levels` - (used to be spell_classes) adding
race_id which is used for race-based spells/abilities (absorbing the remaining setting from spell_traits)
Other changes to these table structures will be my first attempt to get away from using MySQL Reserved Words/Commands in our column names as well.
Please think about this, and let me know if I've forgotten anything before I start making code changes.
EDIT: I mocked up the alternate changes - creating new tables for each spell/ability "type". As you can see, it's a little more convoluted, but might be easier to manage -
new_spells2.jpg
Note: the Lines, Traditions and AA tables are placeholders - not sure what to put in them yet.
Thanks
You do not have the required permissions to view the files attached to this post.