From 550af32eec0e42c1c8e3228221914934d20c3244 Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Sat, 14 Nov 2009 19:03:54 +1000 Subject: Allow portal vaults to specify fill and border glyph. Also move dungeon_feature_by_name into terrain.cc, as it does not make sense it being in l_dgngrd.cc. The Lua function "set_border_fill_type(feature)" will replace the default DNGN_ROCK_WALL fill of a portal vault with the specified feature. This could be abused, and should probably only be limited to floor, water and sea, different types of walls, trees and lava; there are no sanity checks for endless traps, statues, stairs, etc. Finally, apply this to the island Trove, giving endless water effect. --- crawl-ref/source/dungeon.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/dungeon.cc') diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index 7d9f9de8e5..05a924cb8c 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -2620,7 +2620,13 @@ static void _portal_vault_level(int level_number) vault = random_map_for_tag(level_name, false); if (vault) + { + // XXX: This is pretty hackish, I confess. + if (vault->border_fill_type != DNGN_ROCK_WALL) + _replace_area(0, 0, GXM-1, GYM-1, DNGN_ROCK_WALL, vault->border_fill_type); + _ensure_vault_placed( _build_vaults(level_number, vault), true ); + } else { _plan_main(level_number, 0); -- cgit v1.2.3-54-g00ecf