summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/command.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-15 18:51:46 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-15 18:51:46 +0000
commit24dd7bfc967050b9fcead40e820742feffe3ac49 (patch)
tree9a3f3fb2ea561bfc65beb1a9b0e3ffb45b23135a /crawl-ref/source/command.cc
parent7426d8145861b8ec8bb2b95ca0f541cc94ac343b (diff)
downloadcrawl-ref-24dd7bfc967050b9fcead40e820742feffe3ac49.tar.gz
crawl-ref-24dd7bfc967050b9fcead40e820742feffe3ac49.zip
* Add deck names to card descriptions, and vice versa. This should
eventually be done procedurally but for now this will do. * Use non-verbose descriptions when hovering over spellbooks in Tiles, so the description will include the spell list. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9506 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r--crawl-ref/source/command.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc
index f758fd84bc..624607b165 100644
--- a/crawl-ref/source/command.cc
+++ b/crawl-ref/source/command.cc
@@ -1160,20 +1160,30 @@ static void _append_non_item(std::string &desc, std::string key)
unsigned int flags = get_spell_flags(type);
if (flags & SPFLAG_DEVEL)
+ {
desc += "$This spell is still being developed, and is only available "
"via the &Z wizard command.";
+ }
else if (flags & SPFLAG_TESTING)
+ {
desc += "$This is a testing spell, only available via the "
"&Z wizard command.";
+ }
else if (flags & SPFLAG_MONSTER)
+ {
desc += "$This is a monster-only spell, only available via the "
"&Z wizard command.";
+ }
else if (flags & SPFLAG_CARD)
+ {
desc += "$This is a card-effect spell, unavailable in ordinary "
"spellbooks.";
+ }
else
+ {
desc += "$Odd, this spell can't be found anywhere. Please "
"file a bug report.";
+ }
#ifdef WIZARD
if (!you.wizard)
@@ -1182,8 +1192,10 @@ static void _append_non_item(std::string &desc, std::string key)
#endif
{
if (flags & (SPFLAG_TESTING | SPFLAG_MONSTER | SPFLAG_DEVEL))
+ {
desc += "$$You aren't in wizard mode, so you shouldn't be "
"seeing this entry. Please file a bug report.";
+ }
}
}