I'm curious about how to add new spell damage/resist/suscept types, without messing up the existing system. I'm assuming it has something to do with this piece of code:
#define SPELL_DAMAGE(skill) ( ((skill)->info ) & 7 )
#define SPELL_ACTION(skill) ( ((skill)->info >> 3) & 7 )
Because simply adding an entry to spell_dam_types seems to mess a lot of things up -- namely, sset <spell> damtype sonic changes the acttype, etc.
Am I looking at having to rewrite the way spell damage is saved/looked up (changing them to strings in the code or int values in an array) in order to add ~5 damtypes without messing up a lot of other things due to the BV system?
Running mostly stock SmaugFUSS1.9.
Thanks guys,
Checksix
#define SPELL_DAMAGE(skill) ( ((skill)->info ) & 7 )
#define SPELL_ACTION(skill) ( ((skill)->info >> 3) & 7 )
Because simply adding an entry to spell_dam_types seems to mess a lot of things up -- namely, sset <spell> damtype sonic changes the acttype, etc.
Am I looking at having to rewrite the way spell damage is saved/looked up (changing them to strings in the code or int values in an array) in order to add ~5 damtypes without messing up a lot of other things due to the BV system?
Running mostly stock SmaugFUSS1.9.
Thanks guys,
Checksix