diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-10 15:11:07 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-10 15:11:07 +0000 |
commit | 684f80b554daadb08cf2c40b8e905737e8655530 (patch) | |
tree | e506d5ff31e40b979983a44f5f85b7f3930c0521 /crawl-ref/source/describe.cc | |
parent | f8179d2e319879c5cdfa9083efb7edc1327c9bb5 (diff) | |
download | crawl-ref-684f80b554daadb08cf2c40b8e905737e8655530.tar.gz crawl-ref-684f80b554daadb08cf2c40b8e905737e8655530.zip |
Allow "any trap" and "any shop" (alternatives to "random trap" and "random
shop") in des files.
Allow using '8', '9' and '0' in monster specifications.
Tossed out some unused functions.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1281 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r-- | crawl-ref/source/describe.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index aea61f9d6a..9336702f90 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -343,7 +343,7 @@ int str_to_trap(const std::string &s) { ASSERT(NUM_TRAPS == sizeof(trap_names) / sizeof(*trap_names)); - if (s == "random") + if (s == "random" || s == "any") return (TRAP_RANDOM); else if (s == "suitable") return (TRAP_INDEPTH); |