summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat/sewer.des
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-01 14:03:23 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-01 14:03:23 +0000
commite5fc908cc50565402f1ea1acc037e5b8791870c1 (patch)
tree37f4d7e47addb7e81d0e375bb030456e189fb5c8 /crawl-ref/source/dat/sewer.des
parent6384f9c708cf79f471df00d1e0cfa3f2c1bf4172 (diff)
downloadcrawl-ref-e5fc908cc50565402f1ea1acc037e5b8791870c1.tar.gz
crawl-ref-e5fc908cc50565402f1ea1acc037e5b8791870c1.zip
Fix .des timer messaging to be easier to customise, applied timer to sewer portals.
Fix typo in monspeak.txt (slinkies). Fixed hippogriff plural. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7709 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dat/sewer.des')
-rw-r--r--crawl-ref/source/dat/sewer.des39
1 files changed, 28 insertions, 11 deletions
diff --git a/crawl-ref/source/dat/sewer.des b/crawl-ref/source/dat/sewer.des
index bc5f589e94..ce8fc647a4 100644
--- a/crawl-ref/source/dat/sewer.des
+++ b/crawl-ref/source/dat/sewer.des
@@ -15,20 +15,37 @@
{{
function sewer_portal(e)
- e.marker([[O = lua:one_way_stair { desc = "A glowing drain",
- dst = "sewer",
- dstorigin = "in the sewers",
- overmap = "glowing drain",
- floor = "stone_arch" }]])
+ local timeout_turns = crawl.random_range(1500, 2000)
+
+ 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 rusting away.",
+ "$F{The} is rusting away.",
+ "$F{The} is quickly rusting away.",
+ "$F{The} is falling apart.")
+ }
+
+ e.lua_marker('O',
+ timed_marker {
+ desc = "glowing drain",
+ entity = 'drain',
+ dst = "sewer",
+ dstorigin = "in the sewers",
+ overmap = "glowing drain",
+ turns = timeout_turns,
+ floor = "stone_arch",
+ msg = messager })
e.kfeat("O = enter_portal_vault")
e.colour("O = lightgreen")
end
-}}
-# Use the following line in destination maps after all SUBST's have taken place
-# : sewer_colours(_G)
-# Note that the function also defines < to be the exit portal.
-{{
+-- Use the following line in destination maps after all SUBSTs
+-- : sewer_colours(_G)
+-- Note that the function also defines < to be the exit portal.
function sewer_colours(e)
e.kfeat("< = exit_portal_vault")
e.colour("< = darkgrey")
@@ -305,7 +322,7 @@ MONS: worm / nothing w:3
MONS: ooze / nothing w:2
# chances are good you'll find something to cross the deep water
ITEM: scroll of fear / scroll of fog / scroll of teleportation w:50 / \
- scroll of blinking / scroll of identify / nothing
+ scroll of blinking / scroll of identify / nothing
ITEM: potion of levitation w:50 / potion of invisibility / \
potion of might / nothing
# possibly rather generous loot, if you get to the center