diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-13 16:29:37 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-13 16:29:37 +0000 |
commit | 60f850418fc4a37a5f2eccec19a83065fa7769e5 (patch) | |
tree | a5b3dfa3e23c45e1f5f9f1e5002c75d93ca0a5d4 /crawl-ref/source/food.cc | |
parent | 029b566fae028c0f515636dbf36b79a75fdc6dc8 (diff) | |
download | crawl-ref-60f850418fc4a37a5f2eccec19a83065fa7769e5.tar.gz crawl-ref-60f850418fc4a37a5f2eccec19a83065fa7769e5.zip |
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
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r-- | crawl-ref/source/food.cc | 25 |
1 files changed, 14 insertions, 11 deletions
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); } |