summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/food.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-22 17:44:18 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-22 17:44:18 +0000
commitd01e42a27a637df67de0d32d2f9e21b708d27c79 (patch)
treedddeee1b25f487078cfc82681b230538f6f73c33 /crawl-ref/source/food.cc
parent03725e818345745c8c383f339cc10c51a82ffdf0 (diff)
downloadcrawl-ref-d01e42a27a637df67de0d32d2f9e21b708d27c79.tar.gz
crawl-ref-d01e42a27a637df67de0d32d2f9e21b708d27c79.zip
Fix gourmand checks regarding potions of blood.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9154 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r--crawl-ref/source/food.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc
index 736b5de852..e1217e784e 100644
--- a/crawl-ref/source/food.cc
+++ b/crawl-ref/source/food.cc
@@ -1504,7 +1504,7 @@ bool eat_from_inventory()
// -2 for skip to inventory.
int prompt_eat_chunks()
{
- // Herbivores cannot eat chunks.
+ // Full herbivores cannot eat chunks.
if (player_mutation_level(MUT_HERBIVOROUS) == 3)
return (0);
@@ -2629,7 +2629,11 @@ bool can_ingest(int what_isit, int kindof_thing, bool suppress_msg,
mpr("Urks, you're a herbivore!");
return (false);
}
- return (true);
+ else
+ {
+ _check_amu_the_gourmand(reqid);
+ return (true);
+ }
case POT_WATER:
if (you.species == SP_VAMPIRE)
{
@@ -2652,7 +2656,6 @@ bool can_ingest(int what_isit, int kindof_thing, bool suppress_msg,
return (false);
}
default:
- _check_amu_the_gourmand(reqid);
return (true);
}