From b9231c6613788ace1d7adfde1a0e028b21fae993 Mon Sep 17 00:00:00 2001 From: haranp Date: Wed, 16 Jan 2008 18:58:05 +0000 Subject: '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 --- crawl-ref/source/tutorial.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/tutorial.cc') 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 drop this."; Options.tutorial_events[TUT_SEEN_CARRION] = 0; -- cgit v1.2.3-54-g00ecf