diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-29 18:43:32 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-29 18:43:32 +1000 |
commit | 83b3d564bcad6422fca7545cb5bc56fd9aa92a1c (patch) | |
tree | 29a9f58dc9397d65064646b4cbf352412c77204f /crawl-ref/source/mapdef.cc | |
parent | 5556ce4cdeb19a2219a1f93383228d24c360c3a4 (diff) | |
download | crawl-ref-83b3d564bcad6422fca7545cb5bc56fd9aa92a1c.tar.gz crawl-ref-83b3d564bcad6422fca7545cb5bc56fd9aa92a1c.zip |
Add text names for * and | items in vault, as per %.
"any", "random" and "%" are all synonyms in vault definitions, whereas
"|" and "*" have no synonyms.
"star_item" = "*" (as good_item is a tag which does something else)
"superb_item" = "|".
This is mostly useful for clarity (only) in instances where "%" and "|"
glyphs have been used by KFEAT to mean other things. In these instances
KITEM: r = % will still work, but may cause confusion: having textual
names will help to alleviate any confusion.
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r-- | crawl-ref/source/mapdef.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc index 5c110ac4f9..e20d29d8d2 100644 --- a/crawl-ref/source/mapdef.cc +++ b/crawl-ref/source/mapdef.cc @@ -3830,12 +3830,12 @@ item_spec item_list::parse_single_spec(std::string s) if (s == "random" || s == "any" || s == "%") return (result); - if (s == "*") + if (s == "*" || s == "star_item") { result.level = ISPEC_GOOD; return (result); } - else if (s == "|") + else if (s == "|" || s == "superb_item") { result.level = ISPEC_SUPERB; return (result); |