summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat/icecave.des
diff options
context:
space:
mode:
authordploog <dploog@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-03 01:30:54 +0000
committerdploog <dploog@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-03 01:30:54 +0000
commit921d8f93a339385678d72c8347725a5bc3de1145 (patch)
treef287f1bfdfa0aaf3eb2a53ab3cb0dfd2eacd37b9 /crawl-ref/source/dat/icecave.des
parent74e9d8c6bc78fc3f322bb691b5503f5c144ae611 (diff)
downloadcrawl-ref-921d8f93a339385678d72c8347725a5bc3de1145.tar.gz
crawl-ref-921d8f93a339385678d72c8347725a5bc3de1145.zip
Made Ice Cave and Minitomb portal vaults timed. (Thanks to slinkies.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7725 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dat/icecave.des')
-rw-r--r--crawl-ref/source/dat/icecave.des32
1 files changed, 25 insertions, 7 deletions
diff --git a/crawl-ref/source/dat/icecave.des b/crawl-ref/source/dat/icecave.des
index 7f3b941bd5..68a0f4be27 100644
--- a/crawl-ref/source/dat/icecave.des
+++ b/crawl-ref/source/dat/icecave.des
@@ -15,13 +15,31 @@
{{
function ice_cave_portal(e)
- e.marker([[O = lua:one_way_stair { desc = "A frozen archway",
- dst = "ice_cave",
- dstname = "Ice Cave",
- dstname_abbrev = "IceCv",
- dstorigin = "in an ice cave",
- overmap = "frozen archway",
- floor = "stone_arch" }]])
+ local timeout_turns = crawl.random_range(1200, 1700)
+
+ 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} is slowly melting away.",
+ "$F{The} is melting away.",
+ "$F{The} is quickly melting away.",
+ "$F{The} has just melted away.")
+ }
+
+ e.lua_marker('O',
+ timed_marker {
+ desc = "A frozen archway",
+ entity = 'archway',
+ dst = "ice_cave",
+ dstname_abbrev = "IceCv",
+ dstorigin = "in an ince cave",
+ overmap = "frozen archway",
+ turns = timeout_turns,
+ floor = "stone_arch",
+ msg = messager })
e.kfeat("O = enter_portal_vault")
e.colour("O = white")
end