summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/food.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-22 15:58:36 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-22 15:58:36 +0000
commit13abff271666dcc566102311c3b9d237ea04f933 (patch)
tree499b2bb9a9f91a7b201f8e0102dc2befa5bcb057 /crawl-ref/source/food.cc
parent5c8009179acad07659f28a6995438b72a7a6c183 (diff)
downloadcrawl-ref-13abff271666dcc566102311c3b9d237ea04f933.tar.gz
crawl-ref-13abff271666dcc566102311c3b9d237ea04f933.zip
* Tweak Xom's ideas about what makes a funny or boring death.
* Add another option (*sigh*) covering whether W=T and P=R. (Defaults to false.) * Various spacing and comment fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9675 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r--crawl-ref/source/food.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc
index 052cc36863..569208b831 100644
--- a/crawl-ref/source/food.cc
+++ b/crawl-ref/source/food.cc
@@ -689,9 +689,6 @@ bool butchery(int which_corpse)
success = true;
first_corpse = false;
}
-
-// if (!butcher_all && !bottle_all)
-// break;
}
}
@@ -842,9 +839,7 @@ bool eat_food(int slot)
return (prompt_eat_inventory_item(slot));
}
-/*
- * END PUBLIC FUNCTIONS
- */
+// END PUBLIC FUNCTIONS
static bool _player_has_enough_food()
{
@@ -1587,11 +1582,12 @@ int prompt_eat_chunks()
const bool contam = is_contaminated(*item);
const bool bad = _is_bad_food(*item);
- // Excempt undead from auto-eating since:
+ // Exempt undead from auto-eating since:
// * Mummies don't eat.
// * Vampire feeding takes a lot more time than eating a chunk
// and may have unintended consequences.
- // * Ghouls may want to wait until chunks become rotten.
+ // * Ghouls may want to wait until chunks become rotten
+ // or until they have some hp rot to heal.
if (easy_eat && !bad && !contam)
{
// If this chunk is safe to eat, just do so without prompting.