diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-26 04:52:50 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-26 04:52:50 +0000 |
commit | 64b430b8e7e9f913af35f3749514968665e15eef (patch) | |
tree | 41824223de047eba5279b258ee6424fd0e41119b /crawl-ref/source/dat/layout.des | |
parent | c9d3683f746b4b4d77747803e4bec9ca1e29f405 (diff) | |
download | crawl-ref-64b430b8e7e9f913af35f3749514968665e15eef.tar.gz crawl-ref-64b430b8e7e9f913af35f3749514968665e15eef.zip |
Adding lua function to fill in disconnected zones.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6689 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dat/layout.des')
-rw-r--r-- | crawl-ref/source/dat/layout.des | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/dat/layout.des b/crawl-ref/source/dat/layout.des index 6888c3af19..3fa39f1141 100644 --- a/crawl-ref/source/dat/layout.des +++ b/crawl-ref/source/dat/layout.des @@ -149,8 +149,9 @@ TAGS: layout allow_dup dgn.fill_area(0, 0, gxm - 1, gym - 1, "rock_wall") dgn.octa_room(10, 10, gxm - 10, gym - 10, oblique, "floor") - if crawl.coinflip() then - local iterations = 100 + crawl.random2(200) + local smear = crawl.coinflip() + if smear then + local iterations = 100 + crawl.random2(400) dgn.smear_feature(iterations, false, wall, 0, 0, gxm - 1, gym - 1) end @@ -242,6 +243,10 @@ TAGS: layout allow_dup assert(ret) end end + + if smear then + dgn.fill_disconnected_zones(0, 0, gxm - 1, gym - 1, wall) + end }} MAP ENDMAP |