summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-30 13:51:13 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-30 13:51:13 +0000
commit22900fa9c835abb6adf971489dda2670ffe07ad0 (patch)
tree4b585881bc36d1f1e67213fc75abe64221350ea1 /crawl-ref/source/dungeon.cc
parenta93986dd689d32f36eba42418ae0ef0fe2f9c1bf (diff)
downloadcrawl-ref-22900fa9c835abb6adf971489dda2670ffe07ad0.tar.gz
crawl-ref-22900fa9c835abb6adf971489dda2670ffe07ad0.zip
Restrict Polyphemus to the Shoals, and make sharks not appear in the
Swamp (randomly on water levels with a lot of water, is okay). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8032 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r--crawl-ref/source/dungeon.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index 3342bf40fe..ed876851e6 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -3239,6 +3239,7 @@ static bool _make_room(int sx,int sy,int ex,int ey,int max_doors, int doorlevel)
static monster_type _pick_unique(int lev)
{
+ // Doesn't include Polyphemus who only appears in the Shoals.
int which_unique =
((lev > 19) ? random_range(MONS_LOUISE, MONS_BORIS) :
(lev > 16) ? random_range(MONS_ERICA, MONS_FRANCES) :
@@ -3395,13 +3396,17 @@ static void _place_aquatic_monsters(int level_number, char level_type)
}
}
- if (level_number >= 9 && one_chance_in(4))
+ // Don't place sharks in the Swamp.
+ if (!player_in_branch(BRANCH_SWAMP)
+ && level_number >= 9 && one_chance_in(4))
+ {
swimming_things[3] = MONS_SHARK;
+ }
if (level_number >= 25 && one_chance_in(5))
swimming_things[0] = MONS_WATER_ELEMENTAL;
- if (player_in_branch( BRANCH_COCYTUS ))
+ if (player_in_branch(BRANCH_COCYTUS))
swimming_things[3] = MONS_WATER_ELEMENTAL;
_place_monster_vector(swimming_things, level_number,