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.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc
index 402652713e..d047238bf6 100644
--- a/crawl-ref/source/mapdef.cc
+++ b/crawl-ref/source/mapdef.cc
@@ -2509,6 +2509,13 @@ mons_list::mons_spec_slot mons_list::parse_mons_spec(std::string spec)
{
name = replace_all_of(name, "_", " ");
mspec.monname = name;
+
+ if (strip_tag(mon_str, "name_suffix"))
+ mspec.extra_monster_flags |= MF_NAME_SUFFIX;
+ else if (strip_tag(mon_str, "name_adjective"))
+ mspec.extra_monster_flags |= MF_NAME_ADJECTIVE;
+ else if (strip_tag(mon_str, "name_replace"))
+ mspec.extra_monster_flags |= MF_NAME_REPLACE;
}
trim_string(mon_str);