From 6e8d91afe0a93353fac5c3120c6c6bc2601c2e8f Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 4 Jul 2007 09:00:04 +0000 Subject: 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 --- crawl-ref/source/mapdef.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/mapdef.h') 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) { } }; -- cgit v1.2.3-54-g00ecf