From dd65df5b9765b1cbfd55a6741917f041be1107ca Mon Sep 17 00:00:00 2001 From: dolorous Date: Tue, 24 Feb 2009 00:30:31 +0000 Subject: Allow prompting to eat chunks when the player doesn't have the gourmand effect, but is hungry. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9190 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/food.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source') diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index aa654a761d..3c838b71c8 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -1508,10 +1508,13 @@ int prompt_eat_chunks() if (player_mutation_level(MUT_HERBIVOROUS) == 3) return (0); - // If we *know* player doesn't have the gourmand effect, don't - // prompt. - if (!player_likes_chunks(true) && !wearing_amulet(AMU_THE_GOURMAND, false)) + // If we *know* player doesn't have the gourmand effect and isn't + // hungry, don't prompt. + if (!player_likes_chunks(true) && !wearing_amulet(AMU_THE_GOURMAND, false) + && you.hunger_state >= HS_SATIATED) + { return (0); + } bool found_valid = false; std::vector chunks; -- cgit v1.2.3-54-g00ecf