summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-05-15 17:14:04 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-05-15 17:14:04 -0600
commit727b7af61c0367653a2afc1bd4fd77390cb0e282 (patch)
treec42d681783218a5367d27815dbf0ab9fe0c1c15f /crawl-ref/source/dungeon.cc
parent95e49122495968d9e27de598940d9c8e56d71202 (diff)
downloadcrawl-ref-727b7af61c0367653a2afc1bd4fd77390cb0e282.tar.gz
crawl-ref-727b7af61c0367653a2afc1bd4fd77390cb0e282.zip
Support for variable-altar-count Temples.
Based on a note about wanting corrupted_temple to support a variable number of altars; it can now do 6-9. (I left the lower limit at 6 because that's currently the smallest any temple is.) Inspired by a couple of temple designs I'll probably add shortly.
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 f5d0968690..49c98b7e9b 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -3261,6 +3261,12 @@ static bool _builder_normal()
if (vault)
{
+ // TODO: figure out a good way to do this only in Temple
+ dgn_map_parameters mp(
+ you.props.exists(TEMPLE_SIZE_KEY)
+ ? make_stringf("temple_altars_%d",
+ you.props[TEMPLE_SIZE_KEY].get_int())
+ : "");
env.level_build_method += " random_map_for_place";
_ensure_vault_placed_ex(_build_primary_vault(vault), vault);
// Only place subsequent random vaults on non-encompass maps