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/describe.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/describe.cc') diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index e6c6fb60e7..dd0b4928b4 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -1553,7 +1553,7 @@ std::string get_item_description( const item_def &item, bool verbose, if (you.mutation[MUT_SAPROVOROUS] < 3) description << "It looks rather unpleasant. "; - if (item.special < 100) + if (food_is_rotten(item)) { if (you.mutation[MUT_SAPROVOROUS] == 3) description << "It looks nice and ripe. "; -- cgit v1.2.3-54-g00ecf