From 60f850418fc4a37a5f2eccec19a83065fa7769e5 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 13 Jun 2007 16:29:37 +0000 Subject: Fixed buggy chunk flavour messaging for carnivores wearing an amulet of the gourmand. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1584 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/food.cc | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'crawl-ref/source/food.cc') diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index 14020ec01f..ab3e0199f6 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -651,17 +651,20 @@ static const char *chunk_flavour_phrase(bool likes_chunks) const char *phrase = likes_chunks? "tastes great." : "tastes terrible."; - const int gourmand = you.duration[DUR_GOURMAND]; - if (gourmand >= GOURMAND_MAX) - phrase = - one_chance_in(8)? "tastes like chicken!" - : "tastes great."; - else if (gourmand > GOURMAND_MAX * 75 / 100) - phrase = "tastes very good."; - else if (gourmand > GOURMAND_MAX * 50 / 100) - phrase = "tastes good."; - else if (gourmand > GOURMAND_MAX * 25 / 100) - phrase = "is not very appetising."; + if (!likes_chunks) + { + const int gourmand = you.duration[DUR_GOURMAND]; + if (gourmand >= GOURMAND_MAX) + phrase = + one_chance_in(1000)? "tastes like chicken!" + : "tastes great."; + else if (gourmand > GOURMAND_MAX * 75 / 100) + phrase = "tastes very good."; + else if (gourmand > GOURMAND_MAX * 50 / 100) + phrase = "tastes good."; + else if (gourmand > GOURMAND_MAX * 25 / 100) + phrase = "is not very appetising."; + } return (phrase); } -- cgit v1.2.3-54-g00ecf