summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-23 14:22:58 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-23 14:22:58 +0000
commitf7d34b29bdd41086a10c8135466e4b974674eae5 (patch)
treea1ae965a8010f0b535c2a9f2bcfe4cb509521cf8 /crawl-ref/source/mapdef.h
parent76c82d66daed178db22ec0fe9bd91cfb23cfb28c (diff)
downloadcrawl-ref-f7d34b29bdd41086a10c8135466e4b974674eae5.tar.gz
crawl-ref-f7d34b29bdd41086a10c8135466e4b974674eae5.zip
Allow place:X in MONS specifications to place random monsters suitable for place X.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7550 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapdef.h')
-rw-r--r--crawl-ref/source/mapdef.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/mapdef.h b/crawl-ref/source/mapdef.h
index 52bb196070..1b9dd721dc 100644
--- a/crawl-ref/source/mapdef.h
+++ b/crawl-ref/source/mapdef.h
@@ -361,6 +361,7 @@ struct item_spec
int level;
int race;
int qty;
+ level_id place;
item_spec() : genweight(10), base_type(OBJ_RANDOM), sub_type(OBJ_RANDOM),
plus(0), plus2(0), ego(0), allow_uniques(1), level(-1),
@@ -411,6 +412,7 @@ class mons_spec
{
public:
int mid;
+ level_id place;
monster_type monbase; // Base monster for zombies and dracs.
int number; // Head count for hydras
int genweight, mlevel;
@@ -426,9 +428,9 @@ class mons_spec
int num = 0,
int gw = 10, int ml = 0,
bool _fixmons = false, bool awaken = false, bool patrol = false)
- : mid(id), monbase(base), number(num), genweight(gw), mlevel(ml),
- fix_mons(_fixmons), generate_awake(awaken), patrolling(false),
- colour(BLACK), items()
+ : mid(id), place(), monbase(base), number(num), genweight(gw),
+ mlevel(ml), fix_mons(_fixmons), generate_awake(awaken),
+ patrolling(false), colour(BLACK), items()
{
}
};