diff options
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r-- | crawl-ref/source/food.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index ae1f253d28..1df7be82cc 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -2226,8 +2226,11 @@ bool can_ingest(const item_def &food, bool suppress_msg, bool check_hunger) return false; } } + // special case mutagenic chunks to skip hunger checks, as they don't give + // nutrition and player can get hungry by using spells etc. anyway return can_ingest(food.base_type, food.sub_type, suppress_msg, - check_hunger, food_is_rotten(food)); + is_mutagenic(food) ? false : check_hunger, + food_is_rotten(food)); } bool can_ingest(int what_isit, int kindof_thing, bool suppress_msg, |