Adding new spell damage types

Posted by Checksix on Mon 16 Jan 2017 06:19 PM — 2 posts, 12,072 views.

#0
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
Australia Forum Administrator #1
I think you need to show the code you added, which didn't work. The defines on their own don't prove much.