summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-util.h
diff options
context:
space:
mode:
authorDMBrownrigg <netsdanita@hotmail.com>2010-02-10 04:03:33 +1100
committerCharles Otto <ottochar@gmail.com>2010-02-11 21:38:03 -0500
commitc8c1e118d7e8e4c412bd5e0cfa8434f47cbedfb4 (patch)
tree629011ba85102fef86f90fa88d2ba37cdacec989 /crawl-ref/source/spl-util.h
parent3d65112467b3c798356edc6da1c9651a8cd7a258 (diff)
downloadcrawl-ref-c8c1e118d7e8e4c412bd5e0cfa8434f47cbedfb4.tar.gz
crawl-ref-c8c1e118d7e8e4c412bd5e0cfa8434f47cbedfb4.zip
Improve useless/useful identification of spell
Improved useful/useless indentfication of spells, note that there is an an outstanding issue with detection of "oStasis, it can't reliably determine if they have been Identified, and acts as if they haven't been. Signed-off-by: Charles Otto <ottochar@gmail.com>
Diffstat (limited to 'crawl-ref/source/spl-util.h')
-rw-r--r--crawl-ref/source/spl-util.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-util.h b/crawl-ref/source/spl-util.h
index 72d23a7844..6cc9cf057f 100644
--- a/crawl-ref/source/spl-util.h
+++ b/crawl-ref/source/spl-util.h
@@ -41,7 +41,8 @@ enum spell_highlight_colours
COL_USEFUL = LIGHTBLUE, // the palyers status makes this ability notably more useful
COL_EMPOWERED = LIGHTBLUE, // The ability is made stronger by the player's status (unused)
COL_FORBIDDEN = LIGHTRED, // The player's god hates this abilty
- COL_FAVORED = YELLOW // the player's god likes this ability
+ COL_FAVORED = YELLOW, // the player's god likes this ability
+ COL_KNOWN = LIGHTGRAY // the spell is known (use for spellbook_contents)
};
bool is_valid_spell(spell_type spell);
@@ -136,7 +137,7 @@ spell_type zap_type_to_spell(zap_type zap);
bool spell_is_useless(spell_type spell, bool transient = false);
bool spell_is_useful(spell_type spell);
-int spell_highlight_by_utility(spell_type spell, int default_color = LIGHTGRAY, bool transient = false);
+int spell_highlight_by_utility(spell_type spell, int default_color = COL_KNOWN, bool transient = false);
bool spell_no_hostile_in_range(spell_type spell, int minRange);
#endif