summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat/clua/ziggurat.lua
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-25 15:33:36 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-25 15:33:36 +0000
commit0afe4c455bf5a0358cf7f6688b413389a5080fcc (patch)
tree9580836186a5f1612b2a98279255ee7af45c1063 /crawl-ref/source/dat/clua/ziggurat.lua
parentad382c58bd22273fdcb13759bf35e1c89d573e97 (diff)
downloadcrawl-ref-0afe4c455bf5a0358cf7f6688b413389a5080fcc.tar.gz
crawl-ref-0afe4c455bf5a0358cf7f6688b413389a5080fcc.zip
Ziggurat portals charge gold for entry.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7610 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dat/clua/ziggurat.lua')
-rw-r--r--crawl-ref/source/dat/clua/ziggurat.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/dat/clua/ziggurat.lua b/crawl-ref/source/dat/clua/ziggurat.lua
index 9b00eab380..366f6274c1 100644
--- a/crawl-ref/source/dat/clua/ziggurat.lua
+++ b/crawl-ref/source/dat/clua/ziggurat.lua
@@ -10,6 +10,8 @@
-- upvalues cannot (yet) be saved.
------------------------------------------------------------------------------
+require("clua/lm_toll.lua")
+
function zig()
if not dgn.persist.ziggurat or not dgn.persist.ziggurat.depth then
dgn.persist.ziggurat = { }
@@ -71,8 +73,13 @@ end
-- Common setup for ziggurat entry vaults.
function ziggurat_portal(e)
+ local d = crawl.roll_dice
+ local entry_fee =
+ 10 * math.floor(100 + d(3,200) / 3 + d(10) * d(10) * d(10))
+
local function stair()
- return one_way_stair {
+ return toll_stair {
+ amount = entry_fee,
desc = "gateway to a ziggurat",
dst = "ziggurat",
dstname = "Ziggurat:1",