summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mgen_data.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-01-01 05:02:09 +0100
committerAdam Borowski <kilobyte@angband.pl>2012-01-03 04:45:59 +0100
commit405e9b68034c5e8793f6c169cbed7dd90d4ac8ba (patch)
tree792e3efe617bb42cfd8dadfb2c20947cad734e74 /crawl-ref/source/mgen_data.h
parent29969a4f936d3357f5f25971cbff31c026872a29 (diff)
downloadcrawl-ref-405e9b68034c5e8793f6c169cbed7dd90d4ac8ba.tar.gz
crawl-ref-405e9b68034c5e8793f6c169cbed7dd90d4ac8ba.zip
Use branch depth rather than absolute depth as the authoritative one.
Diffstat (limited to 'crawl-ref/source/mgen_data.h')
-rw-r--r--crawl-ref/source/mgen_data.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mgen_data.h b/crawl-ref/source/mgen_data.h
index 5db27f555c..bc67c1c4e5 100644
--- a/crawl-ref/source/mgen_data.h
+++ b/crawl-ref/source/mgen_data.h
@@ -128,7 +128,7 @@ struct mgen_data
monster_type base = MONS_NO_MONSTER,
int monnumber = 0,
int moncolour = BLACK,
- int monpower = you.absdepth0,
+ int monpower = -1,
proximity_type prox = PROX_ANYWHERE,
level_id _place = level_id::current(),
int mhd = 0, int mhp = 0,
@@ -182,7 +182,7 @@ struct mgen_data
{
return mgen_data(mt, BEH_HOSTILE, 0, abj, st, p,
alert ? MHITYOU : MHITNOT,
- genflags, ngod, base, 0, BLACK, you.absdepth0,
+ genflags, ngod, base, 0, BLACK, -1,
PROX_ANYWHERE, level_id::current(), 0, 0, 0, "", nsummoner,
RANDOM_MONSTER);
}