summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-11-18 16:11:33 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-11-18 16:11:33 +1000
commit597572eaf871d45776ddccb38d3aef37ef23ae12 (patch)
tree5ee69907da1c23ca71e76bd642632029c612caff /crawl-ref/source/mapdef.cc
parentba8b21466165fb27981860c3c6ffcf468763d9ea (diff)
downloadcrawl-ref-597572eaf871d45776ddccb38d3aef37ef23ae12.tar.gz
crawl-ref-597572eaf871d45776ddccb38d3aef37ef23ae12.zip
hort version of name_XXX flags for vaults.
There is a limit on how long MONS/KMONS tags can be, and name_replace, etc, contribute to this; therefore, provide some shortened alternatives for long descriptions: name_suffix -> n_suf name_adjective -> n_adj name_replace -> n_rpl name_descriptor -> n_des name_definite -> n_the.
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r--crawl-ref/source/mapdef.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc
index d6d348f0b5..b3ace2dfde 100644
--- a/crawl-ref/source/mapdef.cc
+++ b/crawl-ref/source/mapdef.cc
@@ -2599,21 +2599,21 @@ 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"))
+ if (strip_tag(mon_str, "name_suffix") || strip_tag(mon_str, "n_suf"))
mspec.extra_monster_flags |= MF_NAME_SUFFIX;
- else if (strip_tag(mon_str, "name_adjective"))
+ else if (strip_tag(mon_str, "name_adjective") || strip_tag(mon_str, "n_adj"))
mspec.extra_monster_flags |= MF_NAME_ADJECTIVE;
- else if (strip_tag(mon_str, "name_replace"))
+ else if (strip_tag(mon_str, "name_replace") || strip_tag(mon_str, "n_rpl"))
mspec.extra_monster_flags |= MF_NAME_REPLACE;
// We should be able to combine this with name_replace.
- if (strip_tag(mon_str, "name_descriptor"))
+ if (strip_tag(mon_str, "name_descriptor") || strip_tag(mon_str, "n_des"))
mspec.extra_monster_flags |= MF_NAME_DESCRIPTOR;
// Reasoning for this setting both flags: it does nothing with the
// description unless NAME_DESCRIPTOR is also set; thus, you end up
// with bloated vault description lines akin to: "name:blah_blah
// name_replace name_descrpitor name_definite".
- if (strip_tag(mon_str, "name_definite"))
+ if (strip_tag(mon_str, "name_definite") || strip_tag(mon_str, "n_the"))
{
mspec.extra_monster_flags |= MF_NAME_DEFINITE;
mspec.extra_monster_flags |= MF_NAME_DESCRIPTOR;