summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
authorShmuale Mark <shm.mark@gmail.com>2014-06-18 10:45:10 -0400
committerShmuale Mark <shm.mark@gmail.com>2014-06-18 11:04:45 -0400
commit42f0a7f0bb1d38742b7bf15b9c4d2ab0cb5edcc9 (patch)
tree2487bbc6c3e4ef923271c03fa31875be532569e5 /crawl-ref/source/mon-util.cc
parent4c04b3bc5cbd33797160e622892cd00dd0db38e3 (diff)
downloadcrawl-ref-42f0a7f0bb1d38742b7bf15b9c4d2ab0cb5edcc9.tar.gz
crawl-ref-42f0a7f0bb1d38742b7bf15b9c4d2ab0cb5edcc9.zip
Get rid of a few spurious uses of mons_base_char().
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r--crawl-ref/source/mon-util.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index 0a590f347f..cdded8861d 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -673,9 +673,10 @@ bool mons_has_flesh(const monster* mon)
// yet I exclude sense 3 anyway but include arthropods and molluscs.
return mon->holiness() != MH_PLANT
&& mon->holiness() != MH_NONLIVING
- && mons_base_char(mon->type) != 'G' // eyes
- && mons_base_char(mon->type) != 'J' // jellies
- && mons_base_char(mon->type) != '%';// cobs (plant!)
+ && mons_genus(mon->type) != MONS_GIANT_EYEBALL
+ && mons_genus(mon->type) != MONS_GIANT_ORANGE_BRAIN
+ && mons_genus(mon->type) != MONS_JELLY
+ && mon->type != MONS_DEATH_COB; // plant!
}
// Difference in speed between monster and the player for Cheibriados'