about summary refs log tree commit diff stats
path: root/Archipelago/teleport.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-04-18 17:42:35 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-04-18 17:42:35 -0400
commit139ecb09dcb49177d1fa39baaf8e378e3009fc76 (patch)
tree96aa935f8b1d88467269b00a9fadb5a9aadea278 /Archipelago/teleport.gd
parent6aad55fa66eb9caa668bb09289391e6b39eee7da (diff)
downloadlingo-archipelago-139ecb09dcb49177d1fa39baaf8e378e3009fc76.tar.gz
lingo-archipelago-139ecb09dcb49177d1fa39baaf8e378e3009fc76.tar.bz2
lingo-archipelago-139ecb09dcb49177d1fa39baaf8e378e3009fc76.zip
Reapply "Added support for warp items (including sunwarps)"
This reverts commit 17572f8cd5945536eccffbbe832517d75993c03f.
Diffstat (limited to 'Archipelago/teleport.gd')
-rw-r--r--Archipelago/teleport.gd24
1 files changed, 24 insertions, 0 deletions
diff --git a/Archipelago/teleport.gd b/Archipelago/teleport.gd new file mode 100644 index 0000000..d322722 --- /dev/null +++ b/Archipelago/teleport.gd
@@ -0,0 +1,24 @@
1extends "res://scripts/teleport.gd"
2
3var _unlocked = true
4
5
6func _ready():
7 var apclient = global.get_node("Archipelago")
8 if apclient._door_shuffle and !apclient.warpIsVanilla(self.get_parent().name + "/" + self.name):
9 if self.get_parent().name == "Teleporter Warps":
10 if apclient._sunwarp_access != apclient.kSUNWARP_ACCESS_NORMAL:
11 _unlocked = false
12 else:
13 _unlocked = false
14
15 ._ready()
16
17
18func _body_entered(var body):
19 if _unlocked:
20 ._body_entered(body)
21
22
23func unlock_warp():
24 _unlocked = true