summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-23 19:09:20 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-23 19:09:20 +0000
commit5f4fe73fe0ead41e41bea5042c563815fbc9f1f5 (patch)
tree52493533b76c046451f7328c1b6e4832dbd429f0 /crawl-ref
parentbe8748fa444e6813e09ef959f5ee4b88b67dd68e (diff)
downloadcrawl-ref-5f4fe73fe0ead41e41bea5042c563815fbc9f1f5.tar.gz
crawl-ref-5f4fe73fe0ead41e41bea5042c563815fbc9f1f5.zip
Adjust ziggurat loot level, reenable monster gen.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7554 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/dat/clua/ziggurat.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/crawl-ref/source/dat/clua/ziggurat.lua b/crawl-ref/source/dat/clua/ziggurat.lua
index 8629eeabd3..0adb72f9fb 100644
--- a/crawl-ref/source/dat/clua/ziggurat.lua
+++ b/crawl-ref/source/dat/clua/ziggurat.lua
@@ -269,16 +269,21 @@ local function ziggurat_create_loot(c)
end
end
+ local loot_depth = 20
+ if you.absdepth() > loot_depth then
+ loot_depth = you.absdepth() - 1
+ end
+
for i = 1, nloot do
if crawl.one_chance_in(depth) then
for j = 1, 4 do
free_space_do(function (p)
- dgn.create_item(p.x, p.y, "*", 20)
+ dgn.create_item(p.x, p.y, "*", loot_depth)
end)
end
else
free_space_do(function (p)
- dgn.create_item(p.x, p.y, "|", 20)
+ dgn.create_item(p.x, p.y, "|", loot_depth)
end)
end
end
@@ -311,7 +316,7 @@ local function ziggurat_rectangle_builder(e)
ziggurat_create_loot(exit)
- --ziggurat_create_monsters(exit)
+ ziggurat_create_monsters(exit)
dgn.colour_map(function (x, y)
return dgn.grid(x, y) == dgn.fnum("stone_wall")