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-08 14:36:42 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-08 14:36:42 +0000
commitd90d42364935634477497d3397f8a46ad7a5ccf3 (patch)
tree05e068057f95893a9966d6a33ccea131cdc3fa53 /crawl-ref/source/dungeon.cc
parent596223a14698390d7eb422e80939f460a5f32a2f (diff)
downloadcrawl-ref-d90d42364935634477497d3397f8a46ad7a5ccf3.tar.gz
crawl-ref-d90d42364935634477497d3397f8a46ad7a5ccf3.zip
* Add sharks. They go into a battle frenzy if they smell blood.
* Make harpies actually appear in packs. (Oops...) * Properly pluralise hippogriffs as such. * Regard butcher swap prompt as safe and default to 'n'. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7784 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r--crawl-ref/source/dungeon.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index 27bd66304e..335aba7330 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -3323,10 +3323,13 @@ static void _place_aquatic_monsters(int level_number, char level_type)
if (water_spaces > 49)
{
+ // This can probably be done in a better way with something
+ // like water_monster_rarity().
for (int i = 0; i < 4; i++)
{
swimming_things[i] =
static_cast<monster_type>(MONS_BIG_FISH + random2(4));
+
if (player_in_branch( BRANCH_SWAMP ) && !one_chance_in(3))
swimming_things[i] = MONS_SWAMP_WORM;
else if (player_in_branch( BRANCH_SHOALS ))
@@ -3340,6 +3343,9 @@ static void _place_aquatic_monsters(int level_number, char level_type)
}
}
+ if (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;