summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-shoals.cc
diff options
context:
space:
mode:
authorDarshan Shaligram <scintilla@gmail.com>2013-02-03 00:01:26 -0500
committerDarshan Shaligram <scintilla@gmail.com>2013-02-03 00:11:58 -0500
commit804e35b31655daf09becb2340f0438fe4b1ba509 (patch)
treeaefb7926cacee2bdf716577b358c79630206a382 /crawl-ref/source/dgn-shoals.cc
parentb59a1d89d21130b4ae730331f38fb6798a07c196 (diff)
downloadcrawl-ref-804e35b31655daf09becb2340f0438fe4b1ba509.tar.gz
crawl-ref-804e35b31655daf09becb2340f0438fe4b1ba509.zip
HangedMan's new Shoals ending.
Remove Shoals:$ vault placement code that tries to place vaults on islands: the regular minivault placement routine works just as well (probably a little better for lopsided islands). Use spotty connection builder for Shoals vaults.
Diffstat (limited to 'crawl-ref/source/dgn-shoals.cc')
-rw-r--r--crawl-ref/source/dgn-shoals.cc35
1 files changed, 0 insertions, 35 deletions
diff --git a/crawl-ref/source/dgn-shoals.cc b/crawl-ref/source/dgn-shoals.cc
index a254676e07..fae08d79b0 100644
--- a/crawl-ref/source/dgn-shoals.cc
+++ b/crawl-ref/source/dgn-shoals.cc
@@ -281,43 +281,8 @@ static void _shoals_deepen_water()
}
}
-static coord_def _pick_shoals_island()
-{
- return _shoals_islands.pick_and_remove_random_island();
-}
-
static void _shoals_furniture(int margin)
{
- if (at_branch_bottom())
- {
- const coord_def p = _pick_shoals_island();
- const char *SHOAL_RUNE_HUT = "shoal_rune_hut";
- const map_def *vault = random_map_for_tag(SHOAL_RUNE_HUT);
- dgn_ensure_vault_placed(dgn_place_map(vault, true, false, p), false);
-
- const int nhuts = min(8, int(_shoals_islands.islands.size()));
- for (int i = 2; i < nhuts; ++i)
- {
- // Place (non-rune) minivaults on the other islands. We
- // reuse the shoal rune huts, but do not place the rune
- // again.
- int tries = 5;
- do
- vault = random_map_for_tag("shoal_hut");
- while (!vault && --tries > 0);
- if (vault)
- dgn_place_map(vault, true, false, _pick_shoals_island());
- }
-
- // Fixup pass to connect vaults.
- for (int i = 0, size = env.level_vaults.size(); i < size; ++i)
- {
- vault_placement &vp(*env.level_vaults[i]);
- if (vp.map.has_tag(SHOAL_RUNE_HUT))
- vp.connect();
- }
- }
-
dgn_place_stone_stairs();
}