summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc20
1 files changed, 19 insertions, 1 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index 0c2bbdfc24..2f487034f4 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -1645,8 +1645,26 @@ std::string get_item_description( const item_def &item, bool verbose,
description << "$This book is beyond your current level of understanding.";
break;
- case OBJ_SCROLLS:
case OBJ_POTIONS:
+#ifdef DEBUG_BLOOD_POTIONS
+ // list content of timer vector for blood potions
+ if (item.sub_type == POT_BLOOD
+ || item.sub_type == POT_BLOOD_COAGULATED)
+ {
+ item_def stack = static_cast<item_def>(item);
+ CrawlHashTable &props = stack.props;
+ ASSERT(props.exists("timer"));
+ CrawlVector &timer = props["timer"].get_vector();
+ ASSERT(!timer.empty());
+
+ description << "$Quantity: " << stack.quantity
+ << " Timer size: " << (int) timer.size();
+ description << "$Timers:$";
+ for (int i = 0; i < timer.size(); i++)
+ description << (timer[i].get_long()) << " ";
+ }
+#endif
+ case OBJ_SCROLLS:
case OBJ_ORBS:
case OBJ_CORPSES:
case OBJ_GOLD: