diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-08-26 22:24:30 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-08-27 00:23:27 +0200 |
commit | 82ae3fd9ebe156f2adc4ac9ad22e06361607cd4b (patch) | |
tree | 0896e02e00fac740546ea73fa7ddd5053c3c6915 /crawl-ref/source/mon-pick.cc | |
parent | 3ec267da4257aa3254b93922b15bf0669897e2a8 (diff) | |
download | crawl-ref-82ae3fd9ebe156f2adc4ac9ad22e06361607cd4b.tar.gz crawl-ref-82ae3fd9ebe156f2adc4ac9ad22e06361607cd4b.zip |
Don't pretend mons_{rarity,level}() use anything but place.branch.
We'd want them to, but that code is getting overhauled anyway, so let's not
cloud things.
Diffstat (limited to 'crawl-ref/source/mon-pick.cc')
-rw-r--r-- | crawl-ref/source/mon-pick.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/mon-pick.cc b/crawl-ref/source/mon-pick.cc index 40d7a0d3ec..1019a14064 100644 --- a/crawl-ref/source/mon-pick.cc +++ b/crawl-ref/source/mon-pick.cc @@ -15,16 +15,16 @@ #include "place.h" // NOTE: The lower the level the earlier a monster may appear. -int mons_level(monster_type mcls, const level_id &place) +int mons_level(monster_type mcls, branch_type branch) { - return branches[place.branch].mons_level_function(mcls); + return branches[branch].mons_level_function(mcls); } // NOTE: Higher values returned means the monster is "more common". // A return value of zero means the monster will never appear. {dlb} -int mons_rarity(monster_type mcls, const level_id &place) +int mons_rarity(monster_type mcls, branch_type branch) { - return branches[place.branch].mons_rarity_function(mcls); + return branches[branch].mons_rarity_function(mcls); } // only Pan currently @@ -52,12 +52,12 @@ void debug_monpick() for (int i = 0; i < NUM_BRANCHES; ++i) { - level_id place((branch_type)i); + branch_type br = (branch_type)i; for (monster_type m = MONS_0; m < NUM_MONSTERS; ++m) { - int lev = mons_level(m, place); - int rare = mons_rarity(m, place); + int lev = mons_level(m, br); + int rare = mons_rarity(m, br); if (lev < DEPTH_NOWHERE && !rare) { |