diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-16 18:58:05 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-16 18:58:05 +0000 |
commit | b9231c6613788ace1d7adfde1a0e028b21fae993 (patch) | |
tree | 974c93e302c3137100526d0a4a9e9586687c2efc /crawl-ref/source/tutorial.cc | |
parent | b8ba267261e0586c01fad1c5f280d1fd16cd44ca (diff) | |
download | crawl-ref-b9231c6613788ace1d7adfde1a0e028b21fae993.tar.gz crawl-ref-b9231c6613788ace1d7adfde1a0e028b21fae993.zip |
'DD' is now an alias for 'Dy'.
Clean up some corpse handling, add food_is_rotten() function instead
of manually checking special < 100 everywhere.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3283 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r-- | crawl-ref/source/tutorial.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc index aee22728ff..df6456ff76 100644 --- a/crawl-ref/source/tutorial.cc +++ b/crawl-ref/source/tutorial.cc @@ -1762,10 +1762,10 @@ void tutorial_describe_item(const item_def &item) { ostr << "Note that most species refuse to eat raw meat unless " "really hungry. "; - if (item.special < 100) + if (food_is_rotten(item)) { - ostr << "Even fewer can safely digest rotten meat, and you're " - "probably not part of this group."; + ostr << "Even fewer can safely digest rotten meat, and " + "you're probably not part of that group."; } } Options.tutorial_events[TUT_SEEN_FOOD] = 0; @@ -1890,7 +1890,7 @@ void tutorial_describe_item(const item_def &item) } ostr << ". "; - if (item.special < 100) + if (food_is_rotten(item)) ostr << "Rotten corpses won't be of any use to you, though, so " "you might just as well <w>d<magenta>rop this."; Options.tutorial_events[TUT_SEEN_CARRION] = 0; |