Use enums for properties

This commit is contained in:
Pasi Kallinen
2017-11-02 13:37:53 +02:00
parent 27e5f025f1
commit f3814417e9
2 changed files with 86 additions and 82 deletions
+11 -9
View File
@@ -56,14 +56,16 @@ struct artifact {
};
/* invoked properties with special powers */
#define TAMING (LAST_PROP + 1)
#define HEALING (LAST_PROP + 2)
#define ENERGY_BOOST (LAST_PROP + 3)
#define UNTRAP (LAST_PROP + 4)
#define CHARGE_OBJ (LAST_PROP + 5)
#define LEV_TELE (LAST_PROP + 6)
#define CREATE_PORTAL (LAST_PROP + 7)
#define ENLIGHTENING (LAST_PROP + 8)
#define CREATE_AMMO (LAST_PROP + 9)
enum invoke_prop_types {
TAMING = (LAST_PROP + 1),
HEALING,
ENERGY_BOOST,
UNTRAP,
CHARGE_OBJ,
LEV_TELE,
CREATE_PORTAL,
ENLIGHTENING,
CREATE_AMMO
};
#endif /* ARTIFACT_H */