diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-05 14:47:10 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-05 14:47:10 +0000 |
commit | 9256d7e70da0ebf0577e084357bb3d255cb06ee3 (patch) | |
tree | 69e4727cf1e0e490521d03aa0401b0adf7a65155 /crawl-ref/source/itemname.cc | |
parent | adf10d7dd27e29e7cfd6ce3d7d0a16fb29e6ce5c (diff) | |
download | crawl-ref-9256d7e70da0ebf0577e084357bb3d255cb06ee3.tar.gz crawl-ref-9256d7e70da0ebf0577e084357bb3d255cb06ee3.zip |
Fix [2816850]: Mark the amulet of the gourmand as useless for level 3
herbivores, since they can't eat chunks at all; and mummies, since they
can't eat at all.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10098 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r-- | crawl-ref/source/itemname.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc index c6e1171672..0ed17f6aaf 100644 --- a/crawl-ref/source/itemname.cc +++ b/crawl-ref/source/itemname.cc @@ -2562,6 +2562,10 @@ bool is_useless_item(const item_def &item, bool temp) && you.hunger_state <= HS_SATIATED) || you.religion == GOD_TROG); + case AMU_THE_GOURMAND: + return ((player_mutation_level(MUT_HERBIVOROUS) == 3) + || you.species == SP_MUMMY); + case RING_LIFE_PROTECTION: return (player_prot_life(false, temp, false) == 3); |