summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/showsymb.cc
diff options
context:
space:
mode:
authorChris Oelmueller <chris.oelmueller@gmail.com>2014-01-24 00:41:13 +0100
committerChris Campbell <chriscampbell89@gmail.com>2014-01-24 12:34:30 +0000
commit15733ccd869139bd0e4be85cb4620eda14c6386d (patch)
tree9b2e40c3b92ad82a2a8e1c3224bcc72cb9aaa889 /crawl-ref/source/showsymb.cc
parent148ea59f5f0f290a80eb8595c650808ded860dfd (diff)
downloadcrawl-ref-15733ccd869139bd0e4be85cb4620eda14c6386d.tar.gz
crawl-ref-15733ccd869139bd0e4be85cb4620eda14c6386d.zip
Exclude firewood from Ctrl-V except for Fedhas worshippers
Those might frequently need to check plant HP for retreating, and Ctrl-V is a convenient way of doing so. Everybody else just doesn't care about stuff enough to flash it in (usually) green all over their screen.
Diffstat (limited to 'crawl-ref/source/showsymb.cc')
-rw-r--r--crawl-ref/source/showsymb.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/showsymb.cc b/crawl-ref/source/showsymb.cc
index 5adf88a726..14621a1c5e 100644
--- a/crawl-ref/source/showsymb.cc
+++ b/crawl-ref/source/showsymb.cc
@@ -17,6 +17,7 @@
#include "mon-util.h"
#include "monster.h"
#include "options.h"
+#include "religion.h"
#include "show.h"
#include "stash.h"
#include "state.h"
@@ -175,8 +176,13 @@ static monster_type _show_mons_type(const monster_info& mi)
static int _get_mons_colour(const monster_info& mi)
{
- if (crawl_state.viewport_monster_hp) // show hp directly on the monster
+ // Show hp directly on the monster, except for irrelevant ones.
+ // Fedhas worshippers might be interested in their plants however.
+ if (crawl_state.viewport_monster_hp
+ && (you_worship(GOD_FEDHAS) || !mons_class_is_firewood(mi.type)))
+ {
return dam_colour(mi) | COLFLAG_ITEM_HEAP;
+ }
int col = mi.colour;