From d674f31534f40ef5c2c0f74caf699fdf591ed503 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 28 Mar 2007 09:41:40 +0000 Subject: 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 --- crawl-ref/source/mapdef.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/mapdef.cc') 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, -- cgit v1.2.3-54-g00ecf