summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/food.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r--crawl-ref/source/food.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc
index 77b99b3569..cccbf8bcbc 100644
--- a/crawl-ref/source/food.cc
+++ b/crawl-ref/source/food.cc
@@ -72,11 +72,14 @@ static void _heal_from_food(int hp_amt, int mp_amt, bool unrot,
**************************************************
*/
-void make_hungry( int hunger_amount, bool suppress_msg )
+void make_hungry( int hunger_amount, bool suppress_msg, bool allow_reducing )
{
if (you.is_undead == US_UNDEAD)
return;
+ if (allow_reducing)
+ hunger_amount = calc_hunger(hunger_amount);
+
if (hunger_amount == 0 && !suppress_msg)
return;
@@ -1842,7 +1845,7 @@ int you_min_hunger()
if (you.is_undead == US_UNDEAD)
return 6000;
- // vampires can never starve to death
+ // Vampires can never starve to death.
if (you.species == SP_VAMPIRE)
return 701;