diff options
author | dploog <dploog@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-05 02:30:23 +0000 |
---|---|---|
committer | dploog <dploog@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-05 02:30:23 +0000 |
commit | 0d81298cc286304cb4be85ce691c9d40e2f20931 (patch) | |
tree | 14902aefa39658bb4393bf2f0cb853aed289e7fd /crawl-ref | |
parent | c68ef2df6780db4bd3b16a50de06f7f528a31336 (diff) | |
download | crawl-ref-0d81298cc286304cb4be85ce691c9d40e2f20931.tar.gz crawl-ref-0d81298cc286304cb4be85ce691c9d40e2f20931.zip |
Deeper ziggurat levels may block controlled teleports and/or have all
monsters generated awake.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9734 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/dat/clua/ziggurat.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/crawl-ref/source/dat/clua/ziggurat.lua b/crawl-ref/source/dat/clua/ziggurat.lua index c1d0898fa0..2e95545451 100644 --- a/crawl-ref/source/dat/clua/ziggurat.lua +++ b/crawl-ref/source/dat/clua/ziggurat.lua @@ -140,10 +140,17 @@ function ziggurat_build_level(e) local depth = zig().depth - -- XXX: This is a placeholder! - local generate_awake = depth > 9 and crawl.random2(30) < depth + -- Deeper levels can have all monsters awake. + -- Does never happen at depths 1-4; does always happen at depths 25-27. + local generate_awake = depth > 4 + crawl.random2(21) zig().monster_hook = generate_awake and ziggurat_awaken_all + -- Deeper levels may block controlled teleports. + -- Does never happen at depths 1-6; does always happen at depths 25-27. + if depth > 6 + crawl.random2(19) then + dgn.change_level_flags("no_tele_control") + end + if builder then return ziggurat_builder_map[builder](e) end |