summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r--crawl-ref/source/mapdef.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc
index 5e46f86774..65592df4b5 100644
--- a/crawl-ref/source/mapdef.cc
+++ b/crawl-ref/source/mapdef.cc
@@ -2078,6 +2078,10 @@ item_spec item_list::parse_single_spec(std::string s)
}
}
+ const int qty = strip_number_tag(s, "q:");
+ if (qty != TAG_UNFOUND)
+ result.qty = qty;
+
if (strip_tag(s, "good_item"))
result.level = MAKE_GOOD_ITEM;
else