diff options
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r-- | crawl-ref/source/mapdef.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc index 706bfec6bf..acd7dc4dbf 100644 --- a/crawl-ref/source/mapdef.cc +++ b/crawl-ref/source/mapdef.cc @@ -1104,9 +1104,20 @@ item_spec item_list::parse_single_spec(std::string s) trim_string(s); // Completely random? - if (s == "random" || s == "any") + if (s == "random" || s == "any" || s == "%") return (result); + if (s == "*") + { + result.level = ISPEC_GOOD; + return (result); + } + else if (s == "|") + { + result.level = ISPEC_SUPERB; + return (result); + } + if (s == "nothing") { result.base_type = OBJ_UNASSIGNED; |