diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-24 00:30:31 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-24 00:30:31 +0000 |
commit | dd65df5b9765b1cbfd55a6741917f041be1107ca (patch) | |
tree | b2937ca6ae08da63d497a06eb33d0b7909753d0c /crawl-ref/source/food.cc | |
parent | 17bbd72f17e6f972159cc71df6d810dbdb38269f (diff) | |
download | crawl-ref-dd65df5b9765b1cbfd55a6741917f041be1107ca.tar.gz crawl-ref-dd65df5b9765b1cbfd55a6741917f041be1107ca.zip |
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
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r-- | crawl-ref/source/food.cc | 9 |
1 files changed, 6 insertions, 3 deletions
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<item_def *> chunks; |