diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-06-08 21:40:09 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-06-08 21:40:09 +0200 |
commit | 13c6cab02a22a461521f9261bb9bbaa8ce51c4b9 (patch) | |
tree | ddeaa27d7627cd882b58423da9a2e5b184a1427f /crawl-ref/source/spl-util.h | |
parent | a7e9368205d063d909ea949a912e846997a7636f (diff) | |
download | crawl-ref-13c6cab02a22a461521f9261bb9bbaa8ce51c4b9.tar.gz crawl-ref-13c6cab02a22a461521f9261bb9bbaa8ce51c4b9.zip |
Bring sanity to enums by making them diffable/patchable.
Diffstat (limited to 'crawl-ref/source/spl-util.h')
-rw-r--r-- | crawl-ref/source/spl-util.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-util.h b/crawl-ref/source/spl-util.h index d2166af395..5be75b1d4d 100644 --- a/crawl-ref/source/spl-util.h +++ b/crawl-ref/source/spl-util.h @@ -28,7 +28,7 @@ enum spschool_flag_type SPTYP_HOLY = 1<<12, //jmf: moved to accommodate "random" miscast f/x SPTYP_LAST_EXPONENT = 12, //jmf: ``NUM_SPELL_TYPES'' kinda useless NUM_SPELL_TYPES = 14, - SPTYP_RANDOM = 1<<14 + SPTYP_RANDOM = 1<<14, }; struct bolt; @@ -45,8 +45,7 @@ enum spell_highlight_colours COL_FORBIDDEN = LIGHTRED, // The player's god hates this abilty COL_EMPOWERED = LIGHTGREEN, // The ability is made stronger by the player's status - COL_FAVORED = GREEN // the player's god likes this ability - + COL_FAVORED = GREEN, // the player's god likes this ability }; bool is_valid_spell(spell_type spell); |