diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-28 09:41:40 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-28 09:41:40 +0000 |
commit | d674f31534f40ef5c2c0f74caf699fdf591ed503 (patch) | |
tree | 290f2e870b145817cac6d4ac6b1d82c2bc851c99 /crawl-ref/source/mapdef.cc | |
parent | 84651bb77b43871a8142015a87f14b9e52f9e0d8 (diff) | |
download | crawl-ref-d674f31534f40ef5c2c0f74caf699fdf591ed503.tar.gz crawl-ref-d674f31534f40ef5c2c0f74caf699fdf591ed503.zip |
Added a mention of option alises to crawl_options.txt.
Documented generate_awake tag for maps.
Allow w:X as an alias for weight:X in map item and monster specifications.
Tell the player that they can use '.' to be prompted for a character name
later.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1114 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r-- | crawl-ref/source/mapdef.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc index acd7dc4dbf..b97ec2ea87 100644 --- a/crawl-ref/source/mapdef.cc +++ b/crawl-ref/source/mapdef.cc @@ -85,7 +85,10 @@ int strip_number_tag(std::string &s, const std::string &tagprefix) static int find_weight(std::string &s) { - return strip_number_tag(s, "weight:"); + int weight = strip_number_tag(s, "weight:"); + if (weight == TAG_UNFOUND) + weight = strip_number_tag(s, "w:"); + return (weight); } static std::string split_key_item(const std::string &s, |