diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-22 20:57:36 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-22 20:57:36 +0000 |
commit | 910f0c606fea238e7382a713e0d465ae189c05ce (patch) | |
tree | 7cd506015421ef36a1b27b9eefaf3ffb53af7173 | |
parent | d9c379b296d7d1444f6fd32f5da98db51bccdbce (diff) | |
download | crawl-ref-910f0c606fea238e7382a713e0d465ae189c05ce.tar.gz crawl-ref-910f0c606fea238e7382a713e0d465ae189c05ce.zip |
Fix inverted logic when checking if the player likes chunks.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9163 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/food.cc | 8 | ||||
-rw-r--r-- | crawl-ref/source/it_use2.cc | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index 3a71764a56..d3a86248e0 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -1509,7 +1509,7 @@ int prompt_eat_chunks() return (0); // If we *know* player doesn't have the gourmand effect, don't prompt. - if (!player_likes_chunks(true)) + if (!player_likes_chunks()) return (0); bool found_valid = false; @@ -1735,7 +1735,7 @@ static void _say_chunk_flavour(bool likes_chunks) static void _eat_chunk(corpse_effect_type chunk_effect, bool cannibal, int mon_intel) { - bool likes_chunks = player_likes_chunks(); + bool likes_chunks = player_likes_chunks(true); int nutrition = _chunk_nutrition(likes_chunks); int hp_amt = 0; bool suppress_msg = false; // do we display the chunk nutrition message? @@ -2551,7 +2551,7 @@ bool can_ingest(int what_isit, int kindof_thing, bool suppress_msg, // a player could be one and not the other IMHO - 13mar2000 {dlb} bool ur_chunkslover = ((check_hunger ? you.hunger_state < HS_SATIATED : true) - || player_likes_chunks()); + || player_likes_chunks(true)); switch (what_isit) { @@ -2630,7 +2630,7 @@ bool can_ingest(int what_isit, int kindof_thing, bool suppress_msg, mpr("Urks, you're a herbivore!"); return (false); } - if (!player_likes_chunks()) + if (!player_likes_chunks(true)) _check_amu_the_gourmand(false); return (true); case POT_WATER: diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc index 9e132e2547..b162f5a1fd 100644 --- a/crawl-ref/source/it_use2.cc +++ b/crawl-ref/source/it_use2.cc @@ -103,7 +103,7 @@ bool potion_effect(potion_type pot_eff, int pow, bool drank_it, bool was_known) int nutrition = apply_herbivore_nutrition_effects(200); - if (!ur_herbivorous && player_likes_chunks()) + if (!ur_herbivorous && player_likes_chunks(true)) { // Likes it. mpr("This tastes like blood."); |