diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2013-10-28 19:14:58 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2013-10-28 19:18:02 -0600 |
commit | a52d9e0c09772fe553cb0c7f492a3fa60f17a766 (patch) | |
tree | 5652d12932cc6e553ba84dff808aaa1a04591e6c /crawl-ref/source/maps.h | |
parent | f4e7ac1b5d263793ef402097837bfb6483520305 (diff) | |
download | crawl-ref-a52d9e0c09772fe553cb0c7f492a3fa60f17a766.tar.gz crawl-ref-a52d9e0c09772fe553cb0c7f492a3fa60f17a766.zip |
Fallback functionality for chance_ tag groups.
If the original vault picked to fulfill a chance_ tag fails to place, a
vault tagged fallback_ with the same root (so fallback_hell_entry for
chance_hell_entry) will be tried instead.
This is intended to guarantee that important vaults (hell/pan/abyss
portals) will get placed. Right now this isn't actually a guarantee per
se, but the chances that a 1x1 vault fails to place somewhere seem to be
negligible - if this needs to be expanded upon, perhaps we can add the
suggested "guarantee" tag.
Diffstat (limited to 'crawl-ref/source/maps.h')
-rw-r--r-- | crawl-ref/source/maps.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/maps.h b/crawl-ref/source/maps.h index 9164a7ceb8..ff46e1bf61 100644 --- a/crawl-ref/source/maps.h +++ b/crawl-ref/source/maps.h @@ -29,6 +29,8 @@ const map_def *map_by_index(int index); void strip_all_maps(); int map_count(); +string vault_chance_tag(const map_def &map); + const map_def *find_map_by_name(const string &name); const map_def *random_map_for_place(const level_id &place, bool minivault); const map_def *random_map_in_depth(const level_id &lid, |