diff options
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index 27c2bfe7b2..4108fb0738 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -28,6 +28,7 @@ #include "food.h" #include "items.h" #include "itemprop.h" +#include "it_use2.h" #include "macro.h" #include "mon-util.h" #include "notes.h" @@ -2156,6 +2157,15 @@ bool food_is_veg( const item_def &item ) return (Food_prop[ Food_index[item.sub_type] ].herb_mod > 0); } +bool is_blood_potion( const item_def &item) +{ + if (item.base_type != OBJ_POTIONS) + return false; + + return (item.sub_type == POT_BLOOD + || item.sub_type == POT_BLOOD_COAGULATED); +} + // returns food value for one turn of eating int food_value( const item_def &item ) { |