summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/food.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-06 18:31:18 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-06 18:31:18 +0000
commitfde2770c085ee5bce194a657759cbd1ae8c824d1 (patch)
treeb99b0388776b8cff0a9e490074e1d0bffad971c9 /crawl-ref/source/food.cc
parent2772e5117bba390bc735af3dd9e0853f93a8306d (diff)
downloadcrawl-ref-fde2770c085ee5bce194a657759cbd1ae8c824d1.tar.gz
crawl-ref-fde2770c085ee5bce194a657759cbd1ae8c824d1.zip
Fix the amulet of the gourmand autoid when drinking potions of blood.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9348 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r--crawl-ref/source/food.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc
index 10ad22a7e7..854359715d 100644
--- a/crawl-ref/source/food.cc
+++ b/crawl-ref/source/food.cc
@@ -2489,7 +2489,7 @@ bool is_forbidden_food(const item_def &food)
return (false);
}
-static bool _check_amu_the_gourmand(bool reqid)
+bool check_amu_the_gourmand(bool reqid)
{
if (wearing_amulet(AMU_THE_GOURMAND, !reqid))
{
@@ -2595,7 +2595,7 @@ bool can_ingest(int what_isit, int kindof_thing, bool suppress_msg,
if (ur_chunkslover)
return (true);
- if (_check_amu_the_gourmand(reqid))
+ if (check_amu_the_gourmand(reqid))
return (true);
if (!suppress_msg)
@@ -2636,8 +2636,6 @@ bool can_ingest(int what_isit, int kindof_thing, bool suppress_msg,
mpr("Urks, you're a herbivore!");
return (false);
}
- if (!player_likes_chunks(true))
- _check_amu_the_gourmand(false);
return (true);
case POT_WATER:
if (you.species == SP_VAMPIRE)