summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/food.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-28 18:26:51 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-28 18:26:51 +0000
commita09665b04d5d0e187c4b290599280cb451e24fef (patch)
tree1d4bdd38266d382fcbbda4dae7f2aeb5b4472955 /crawl-ref/source/food.cc
parent988bedb07d5d5961a7e6d7f70253a84541b68b3a (diff)
downloadcrawl-ref-a09665b04d5d0e187c4b290599280cb451e24fef.tar.gz
crawl-ref-a09665b04d5d0e187c4b290599280cb451e24fef.zip
Add message tweak suggested in [2796890]: For players with a level of
saprovore between 1 and 2 (inclusive) who don't like chunks, describe raw flesh as tasting "unpleasant" instead of "terrible." git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9843 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r--crawl-ref/source/food.cc25
1 files changed, 22 insertions, 3 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc
index 45097985a8..44924d08ba 100644
--- a/crawl-ref/source/food.cc
+++ b/crawl-ref/source/food.cc
@@ -1662,10 +1662,29 @@ int prompt_eat_chunks()
static const char *_chunk_flavour_phrase(bool likes_chunks)
{
- const char *phrase =
- likes_chunks ? "tastes great." : "tastes terrible.";
+ const int level = player_mutation_level(MUT_SAPROVOROUS);
- if (!likes_chunks)
+ const char *phrase;
+
+ switch (level)
+ {
+ case 1:
+ case 2:
+ phrase = "tastes unpleasant.";
+ break;
+
+ case 3:
+ phrase = "tastes good.";
+ break;
+
+ default:
+ phrase = "tastes terrible.";
+ break;
+ }
+
+ if (likes_chunks)
+ phrase = "tastes great.";
+ else
{
const int gourmand = you.duration[DUR_GOURMAND];
if (gourmand >= GOURMAND_MAX)