I'm hesitant to move all enums into the enums.h file, but it might be good until a few more refactors are completed.
Moves eMagic from magic.h.
Changes #define for itemdefs.h items into eItem enum.
Removes #define NUM_SPELLS 61 and everything referencing NUM_SPELLS was changed to eMagic::M_TOTAL.
There were also a few other changes only loosely related to enums (like kq.cpp magic number 8 to MAXCHRS, or loops changed from 0..R_TOTAL_RES to looping from one eResistance name to another).
I'm hesitant to move all enums into the
enums.h
file, but it might be good until a few more refactors are completed.#define
for itemdefs.h items intoeItem
enum.#define NUM_SPELLS 61
and everything referencing NUM_SPELLS was changed toeMagic::M_TOTAL
.There were also a few other changes only loosely related to enums (like kq.cpp magic number
8
toMAXCHRS
, or loops changed from 0..R_TOTAL_RES to looping from one eResistance name to another).