diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-12 02:52:05 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-12 02:52:27 -0800 |
commit | 4ec1ab4e076a371dccb54072a220b7d4000021c6 (patch) | |
tree | c86dd7ef6b97e7cc8e7d938effa5158be15e4ba1 /crawl-ref/source/maps.cc | |
parent | af5862b9ed2d4e622b2ba6cb2fd4113bdb65ab3e (diff) | |
download | crawl-ref-4ec1ab4e076a371dccb54072a220b7d4000021c6.tar.gz crawl-ref-4ec1ab4e076a371dccb54072a220b7d4000021c6.zip |
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.
Diffstat (limited to 'crawl-ref/source/maps.cc')
-rw-r--r-- | crawl-ref/source/maps.cc | 6 |
1 files changed, 4 insertions, 2 deletions
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: |