summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/zotdef.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-09-05 11:59:30 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-09-05 11:59:30 +0200
commitf6ea5cb561a1b49a3e3c21a140230d965d915a3b (patch)
tree82c7d0608562adcfcf43d8c783bf5ae6304809e5 /crawl-ref/source/zotdef.cc
parent3bc4743eecc820caf232faf9899e6284e07ed27c (diff)
downloadcrawl-ref-f6ea5cb561a1b49a3e3c21a140230d965d915a3b.tar.gz
crawl-ref-f6ea5cb561a1b49a3e3c21a140230d965d915a3b.zip
Rename mons_level() to mons_depth().
Rationale: http://www.giantitp.com/comics/oots0012.html
Diffstat (limited to 'crawl-ref/source/zotdef.cc')
-rw-r--r--crawl-ref/source/zotdef.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/zotdef.cc b/crawl-ref/source/zotdef.cc
index 5435503796..94f5232ede 100644
--- a/crawl-ref/source/zotdef.cc
+++ b/crawl-ref/source/zotdef.cc
@@ -40,7 +40,7 @@
static monster_type _pick_unique(int level);
-static int _fuzz_mons_level(int level)
+static int _fuzz_mons_depth(int level)
{
if (level > 1 && one_chance_in(7))
{
@@ -589,7 +589,7 @@ static monster_type _get_zotdef_monster(level_id &place, int power)
// get default level
int lev_mons = (place.branch == NUM_BRANCHES)
? ((strength * 3) / 2)
- : mons_level(mon_type, place.branch)
+ : mons_depth(mon_type, place.branch)
+ absdungeon_depth(place.branch, 0);
// if >50, bail out - these are special flags
@@ -650,7 +650,7 @@ static void _zotdef_set_random_branch_wave(int power)
for (int i = 0; i < NSLOTS; i++)
{
level_id l(_zotdef_random_branch(), -1);
- env.mons_alloc[i] = _get_zotdef_monster(l, _fuzz_mons_level(power));
+ env.mons_alloc[i] = _get_zotdef_monster(l, _fuzz_mons_depth(power));
}
level_id l(_zotdef_random_branch(), -1);
env.mons_alloc[BOSS_SLOT] = _get_zotdef_monster(l,
@@ -665,7 +665,7 @@ static void _zotdef_set_branch_wave(branch_type b, int power)
(b == NUM_BRANCHES) ? "RANDOM" : branches[b].shortname);
wave_name(buf);
for (int i = 0; i < NSLOTS; i++)
- env.mons_alloc[i] = _get_zotdef_monster(l, _fuzz_mons_level(power));
+ env.mons_alloc[i] = _get_zotdef_monster(l, _fuzz_mons_depth(power));
env.mons_alloc[BOSS_SLOT] = _get_zotdef_monster(l,
power + ZOTDEF_BOSS_EXTRA_POWER);
}