diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-04 09:00:04 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-04 09:00:04 +0000 |
commit | 6e8d91afe0a93353fac5c3120c6c6bc2601c2e8f (patch) | |
tree | 91a42ea41ad2d378101e27795dec37ee5b15914a /crawl-ref/source/mapdef.h | |
parent | 7b960a89ece3e8d66abeee2ef8b49a5bc9e90b0a (diff) | |
download | crawl-ref-6e8d91afe0a93353fac5c3120c6c6bc2601c2e8f.tar.gz crawl-ref-6e8d91afe0a93353fac5c3120c6c6bc2601c2e8f.zip |
Allow maps to specify item quantities with the q:N syntax in item specs.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1745 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapdef.h')
-rw-r--r-- | crawl-ref/source/mapdef.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/mapdef.h b/crawl-ref/source/mapdef.h index 7cb4252197..4774684560 100644 --- a/crawl-ref/source/mapdef.h +++ b/crawl-ref/source/mapdef.h @@ -350,9 +350,10 @@ struct item_spec int allow_uniques; int level; int race; + int qty; item_spec() : genweight(10), base_type(OBJ_RANDOM), sub_type(OBJ_RANDOM), - allow_uniques(1), level(-1), race(MAKE_ITEM_RANDOM_RACE) + allow_uniques(1), level(-1), race(MAKE_ITEM_RANDOM_RACE), qty(0) { } }; |