diff options
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index e418f1dc7d..6df9597b0a 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -28,6 +28,7 @@ #include "it_use2.h" #include "macro.h" #include "mon-util.h" +#include "monstuff.h" #include "notes.h" #include "player.h" #include "quiver.h" @@ -2218,6 +2219,13 @@ bool food_is_rotten( const item_def &item ) && item.sub_type == FOOD_CHUNK); } +int corpse_freshness( const item_def &item ) +{ + ASSERT(item.base_type == OBJ_CORPSES); + ASSERT(item.special <= FRESHEST_CORPSE); + return (item.special); +} + // Returns true if item counts as a tool for tool size comparisons and msgs. bool is_tool( const item_def &item ) { |