summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat/trove.des
diff options
context:
space:
mode:
authorDavid Ploog <dploog@users.sourceforge.net>2009-10-22 08:48:08 +0200
committerDavid Ploog <dploog@users.sourceforge.net>2009-10-22 08:49:21 +0200
commit2ef730772d51611e6300a25a8d306df5465c7cfb (patch)
treeec52e01be2934062a7f299e4df80a8364376a8b5 /crawl-ref/source/dat/trove.des
parentb919cfe9570e5afaa52daad6eedf338a8fe17e80 (diff)
downloadcrawl-ref-2ef730772d51611e6300a25a8d306df5465c7cfb.tar.gz
crawl-ref-2ef730772d51611e6300a25a8d306df5465c7cfb.zip
Allow shallow troves again, duration depends on depth.
Diffstat (limited to 'crawl-ref/source/dat/trove.des')
-rw-r--r--crawl-ref/source/dat/trove.des27
1 files changed, 19 insertions, 8 deletions
diff --git a/crawl-ref/source/dat/trove.des b/crawl-ref/source/dat/trove.des
index 27eb8cad66..aeb2362241 100644
--- a/crawl-ref/source/dat/trove.des
+++ b/crawl-ref/source/dat/trove.des
@@ -16,21 +16,31 @@
function trove_portal(e)
local d = crawl.roll_dice
local entry_fee = 5 * math.floor(200 + d(3,200) / 3 + d(10) * d(10) * d(10))
+ local a = you.absdepth()
+ local timeout_turns = crawl.random_range(1600, 3000) + 5 * (30 - a) * (30 - a)
+ local dur = "n exceptionally long"
+ if timeout_turns < 2000 then
+ dur = " rather brief"
+ elseif timeout_turns < 3000 then
+ dur = " long"
+ elseif timeout_turns < 5000 then
+ dur = " very long"
+ end
local desc_long = [[ Once upon a time, an enterprising thief and wizard, terrified of being caught committing an act of burglary, created a system of portals leading into the secret treasure troves and chambers of the rich. Too scared to loot them himself, he instead charged an extortionate fee for entry to anyone who wanted to rifle through them.
-The secrets of the gateways died with him when his fellow thieves, disgusted at his betrayal of their 'ideals', had him murdered. With his death, the now-uncontrolled portals began moving rapidly from one dimension to the next, stopping only long enough to absorb magical energy.
+The secrets of the gateways died with him when his fellow thieves, disgusted at his betrayal of their 'ideals', had him murdered. With his death, the now-uncontrolled portals began moving rapidly from one dimension to the next, stopping only long enough to absorb magical energy. This portal will stay open for a]] .. dur .. [[ time.
]]
- local timeout_turns = crawl.random_range(1600, 3000)
local messager =
timed_msg {
visible = true,
-- $F{xxx} will be substituted with the 'entity' property of the timed
-- marker, or with the desc property (if entity is not set).
- messages = time_messages(timeout_turns,
- "$F{The} hums gently.",
- "$F{The} dims slightly, then brightens again.",
- "$F{The} flickers between here and not.",
- "$F{The} flickers urgently, almost stroboscopically.")
+ messages = time_messages(timeout_turns,
+ "$F{The} hums gently. It seems happy to stay here for a" ..
+ dur .. " time.",
+ "$F{The} dims for a moment, then brightens again.",
+ "$F{The} flickers impatiently between here and not.",
+ "$F{The} flickers urgently, almost stroboscopically.")
}
local function stair ()
@@ -87,7 +97,7 @@ function place_fog(e, type, strength)
end
}}
-default-depth: D:14-, Elf:1-, Vault:1-
+default-depth: D:10-, Elf:1-, Vault:1-
##############################################################################
#
@@ -583,3 +593,4 @@ wwwwwwwwwwwwwwwwwwwwwwwwwwwww
ENDMAP
+