summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-12-03 19:35:39 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-12-03 19:35:39 +1000
commit8c1e6ead29179be54eb122587a8940a2d206b4fe (patch)
tree73fefd327635cf5717535f1b91f7186abcccefb8 /crawl-ref
parent9cd18f2ef69009148a116760b850d53d6b7baa8a (diff)
downloadcrawl-ref-8c1e6ead29179be54eb122587a8940a2d206b4fe.tar.gz
crawl-ref-8c1e6ead29179be54eb122587a8940a2d206b4fe.zip
Convert the_teleporter (and related Ice Cave) to you.teleport_to.
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/dat/icecave.des7
-rw-r--r--crawl-ref/source/dat/vaults.des7
2 files changed, 2 insertions, 12 deletions
diff --git a/crawl-ref/source/dat/icecave.des b/crawl-ref/source/dat/icecave.des
index 3c259e4386..f7167a408b 100644
--- a/crawl-ref/source/dat/icecave.des
+++ b/crawl-ref/source/dat/icecave.des
@@ -955,13 +955,8 @@ local function teleporter (data, triggerable, triggerer, marker, ev)
monster.random_teleport()
end
- -- XXX: This is still unsafe! Should be replaced with aimed teleport.
- you.moveto(my_slaves[1].x, my_slaves[1].y)
+ you.teleport_to(my_slaves[1].x, my_slaves[1].y)
crawl.mpr("Your surroundings suddenly seem different!")
-
- -- In order to mimic a normal teleport, even though this is certainly not.
- dgn.apply_area_cloud(position.x, position.y, 1, 4, 1, 1,
- "translocational energy", "you", -1)
end
-- Lua marker magic!
diff --git a/crawl-ref/source/dat/vaults.des b/crawl-ref/source/dat/vaults.des
index 5c25c750eb..d6cf959bba 100644
--- a/crawl-ref/source/dat/vaults.des
+++ b/crawl-ref/source/dat/vaults.des
@@ -305,13 +305,8 @@ local function teleporter (data, triggerable, triggerer, marker, ev)
monster.random_teleport()
end
- -- XXX: This is still unsafe! Should be replaced with aimed teleport.
- you.moveto(my_slaves[1].x, my_slaves[1].y)
+ you.teleport_to(my_slaves[1].x, my_slaves[1].y)
crawl.mpr("Your surroundings suddenly seem different!")
-
- -- In order to mimic a normal teleport, even though this is certainly not.
- dgn.apply_area_cloud(position.x, position.y, 1, 4, 1, 1,
- "translocational energy", "you", -1)
end
-- Lua marker magic!