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.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc
index 93310d481c..407eaf9a6f 100644
--- a/crawl-ref/source/mapdef.cc
+++ b/crawl-ref/source/mapdef.cc
@@ -2575,6 +2575,14 @@ mons_list::mons_spec_slot mons_list::parse_mons_spec(std::string spec)
if (mspec.mlevel == TAG_UNFOUND)
mspec.mlevel = 0;
+ mspec.hd = strip_number_tag(mon_str, "hd:");
+ if (mspec.hd == TAG_UNFOUND)
+ mspec.hd = 0;
+
+ mspec.hp = strip_number_tag(mon_str, "hp:");
+ if (mspec.hp == TAG_UNFOUND)
+ mspec.hp = 0;
+
std::string colour = strip_tag_prefix(mon_str, "col:");
if (!colour.empty())
{