summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-place.cc
diff options
context:
space:
mode:
authorShmuale Mark <shm.mark@gmail.com>2014-05-05 17:45:26 -0400
committerShmuale Mark <shm.mark@gmail.com>2014-05-05 17:47:55 -0400
commitf5d7e1195ccb3df16f5ad6341810bc259f51c611 (patch)
tree06a5031da0905d445b3f0a3cd8cef1ff8ba7ed7e /crawl-ref/source/mon-place.cc
parent8b0589b2b84b012d14d5e95f6c54ddbcd71c88db (diff)
downloadcrawl-ref-f5d7e1195ccb3df16f5ad6341810bc259f51c611.tar.gz
crawl-ref-f5d7e1195ccb3df16f5ad6341810bc259f51c611.zip
Abstractify.
Diffstat (limited to 'crawl-ref/source/mon-place.cc')
-rw-r--r--crawl-ref/source/mon-place.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/mon-place.cc b/crawl-ref/source/mon-place.cc
index 371419775e..1e7f91f331 100644
--- a/crawl-ref/source/mon-place.cc
+++ b/crawl-ref/source/mon-place.cc
@@ -589,8 +589,8 @@ monster_type resolve_monster_type(monster_type mon_type,
{
mon_type =
static_cast<monster_type>(
- random_range(MONS_BLACK_DRACONIAN,
- MONS_DRACONIAN_SCORCHER));
+ random_range(MONS_FIRST_BASE_DRACONIAN,
+ MONS_LAST_DRACONIAN));
}
while (base_type != MONS_PROGRAM_BUG
&& mon_type != base_type
@@ -603,7 +603,7 @@ monster_type resolve_monster_type(monster_type mon_type,
{
mon_type =
static_cast<monster_type>(
- random_range(MONS_DRACONIAN_CALLER, MONS_DRACONIAN_SCORCHER));
+ random_range(MONS_FIRST_NONBASE_DRACONIAN, MONS_LAST_DRACONIAN));
}
else if (mon_type >= RANDOM_DEMON_LESSER && mon_type <= RANDOM_DEMON)
mon_type = summon_any_demon(mon_type);