summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tutorial.cc
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2011-02-17 19:47:25 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2011-02-17 20:30:58 +0100
commit36cea3e42b02b5ce8615a714e2ef784c5adbae0c (patch)
tree0d6ba81e5de332b316d0062321c1ea2a7822a97a /crawl-ref/source/tutorial.cc
parenta9e6ede60504aea9a5c19bd27275ace937e744ef (diff)
downloadcrawl-ref-36cea3e42b02b5ce8615a714e2ef784c5adbae0c.tar.gz
crawl-ref-36cea3e42b02b5ce8615a714e2ef784c5adbae0c.zip
Add a tutorial message when chunks in your inventory become rotten.
I would have prefered giving a message when you try to eat them, but the eating code is stretched enough that I gave up trying the right hook. A tiles-only trigger would be easy, but I want it to work for console, too.
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r--crawl-ref/source/tutorial.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc
index ed894c01e4..a8972d0dac 100644
--- a/crawl-ref/source/tutorial.cc
+++ b/crawl-ref/source/tutorial.cc
@@ -78,6 +78,9 @@ void tutorial_init_hint(const char* hintstr)
hint = HINT_REMOVED_CURSE;
else if (strcmp(hintstr, "HINT_MULTI_PICKUP") == 0)
hint = HINT_MULTI_PICKUP;
+ else if (strcmp(hintstr, "HINT_ROTTEN_FOOD") == 0)
+ hint = HINT_ROTTEN_FOOD;
+
if (hint != HINT_EVENTS_NUM)
Hints.hints_events[hint] = true;