diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2013-05-25 19:19:44 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2013-05-26 20:56:16 -0600 |
commit | 5ad725fafd9e892f77c7fe9a83c7659516bebfe7 (patch) | |
tree | 7232399c1b9acd9b8436bb0767122a9c21d27af6 /crawl-ref/source/maps.cc | |
parent | 65f519f29f21b78d568cbf1bfbd574a461031efb (diff) | |
download | crawl-ref-5ad725fafd9e892f77c7fe9a83c7659516bebfe7.tar.gz crawl-ref-5ad725fafd9e892f77c7fe9a83c7659516bebfe7.zip |
Adjust level layouts for Forest.
This makes layout_twisted_forest the sole layout for Forest (for now),
and adjusts it to provide a border of trees in Forest.
Vaults that have been tagged for Forest previously are given standard
weights, and functionality has been added to the vault placer to allow
vaults placing in Forest to overwrite trees so that the vaults can
reliably place there.
Diffstat (limited to 'crawl-ref/source/maps.cc')
-rw-r--r-- | crawl-ref/source/maps.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc index 54f9f36a03..b0ffdfe892 100644 --- a/crawl-ref/source/maps.cc +++ b/crawl-ref/source/maps.cc @@ -375,6 +375,9 @@ static bool _may_overwrite_feature(const coord_def p, if (grid == DNGN_DEEP_WATER) return water_ok; + if (grid == DNGN_TREE && player_in_branch(BRANCH_FOREST)) + return true; + // Handle all other non-LOS blocking grids here. if (!feat_is_opaque(grid) && grid != DNGN_FLOOR |