From 4ec1ab4e076a371dccb54072a220b7d4000021c6 Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Thu, 12 Nov 2009 02:52:05 -0800 Subject: Randomly placed overflow temples Specialized single-altar overflow temples which also have the tag "uniq_altar_GODNAME" can be placed randomly even if that altar has been chosen at new-game time to be an overflow temple on a specific level, and if it's randomly placed before being generated specifically then it will only be placed once, rather than also being placed a second time at the location chosen at new-game time. --- crawl-ref/source/maps.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/maps.cc') diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc index 0eced70f21..cbe4922382 100644 --- a/crawl-ref/source/maps.cc +++ b/crawl-ref/source/maps.cc @@ -507,7 +507,8 @@ bool map_selector::accept(const map_def &mapdef) const && mapdef.place == place && !mapdef.has_tag("layout") && !mapdef.has_tag("place_unique") - && !mapdef.has_tag_prefix("temple_") + && (!mapdef.has_tag_prefix("temple_") + || mapdef.has_tag_prefix("uniq_altar_")) && map_matches_layout_type(mapdef) && vault_unforbidden(mapdef)); case DEPTH: @@ -523,7 +524,8 @@ bool map_selector::accept(const map_def &mapdef) const && !mapdef.has_tag("bazaar") && !mapdef.has_tag("layout") && !mapdef.has_tag("place_unique") - && !mapdef.has_tag_prefix("temple_") + && (!mapdef.has_tag_prefix("temple_") + || mapdef.has_tag_prefix("uniq_altar_")) && (!check_layout || map_matches_layout_type(mapdef)) && vault_unforbidden(mapdef)); case TAG: -- cgit v1.2.3-54-g00ecf