diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-03 09:49:19 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-03 09:49:19 +0000 |
commit | 1e6c29fcdad466fe9bbae6326ef19bcad8e73707 (patch) | |
tree | d4600a8098234fc850c34323ac212e403e31a4b8 /crawl-ref/source/menu.cc | |
parent | bc72da21789d32c6c7cce104f51c50348997b58a (diff) | |
download | crawl-ref-1e6c29fcdad466fe9bbae6326ef19bcad8e73707.tar.gz crawl-ref-1e6c29fcdad466fe9bbae6326ef19bcad8e73707.zip |
Bug/FR 1947001: For damaging cards add "You draw card xy" to the prompt,
so you can reread it while targetting, and add a
targetting subcommand "show prompt" that'll do just that.
(Though you can already do that by looking at the help.)
Fix plain coloured items highlighted in grey in prompts, and add two new
colouring prefixes: evil_item (/draining, necromancy books, etc.) and
evil_eating (cannibalism, intelligent being) that only apply for the
good gods.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5455 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/menu.cc')
-rw-r--r-- | crawl-ref/source/menu.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/menu.cc b/crawl-ref/source/menu.cc index a3d00595ed..82e43a0a76 100644 --- a/crawl-ref/source/menu.cc +++ b/crawl-ref/source/menu.cc @@ -1170,8 +1170,8 @@ int menu_colour(const std::string &text, const std::string &prefix, for (unsigned int i = 0; i < Options.menu_colour_mappings.size(); ++i) { const colour_mapping &cm = Options.menu_colour_mappings[i]; - if ( (cm.tag.empty() || cm.tag == "any" || cm.tag == tag - || cm.tag == "inventory" && tag == "pickup") + if ((cm.tag.empty() || cm.tag == "any" || cm.tag == tag + || cm.tag == "inventory" && tag == "pickup") && cm.pattern.matches(tmp_text) ) { return (cm.colour); |