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-27 12:13:38 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-04-27 12:13:38 -0400
commit47755e9e28f9b8866d3c41866910594e2d8c979a (patch)
tree488df5471f58eb0c6a1f7f872a17aa0ebe07231e /Archipelago/teleport.gd
parent4302e550cde189d8bc1d111e81270ed7960ad77c (diff)
parent0c25dc87e5ad9c8c8c2ff0ef5ac6502b166bc405 (diff)
downloadlingo-archipelago-47755e9e28f9b8866d3c41866910594e2d8c979a.tar.gz
lingo-archipelago-47755e9e28f9b8866d3c41866910594e2d8c979a.tar.bz2
lingo-archipelago-47755e9e28f9b8866d3c41866910594e2d8c979a.zip
Merge branch 'main' into panels
Diffstat (limited to 'Archipelago/teleport.gd')
-rw-r--r--Archipelago/teleport.gd27
1 files changed, 27 insertions, 0 deletions
diff --git a/Archipelago/teleport.gd b/Archipelago/teleport.gd new file mode 100644 index 0000000..532f081 --- /dev/null +++ b/Archipelago/teleport.gd
@@ -0,0 +1,27 @@
1extends "res://scripts/teleport.gd"
2
3var _unlocked = true
4
5
6func _ready():
7 var apclient = global.get_node("Archipelago")
8 if self.get_parent().name == "Teleporter Warps":
9 if apclient._sunwarp_access != apclient.kSUNWARP_ACCESS_NORMAL:
10 _unlocked = false
11 elif apclient._door_shuffle and !apclient.warpIsVanilla(self.get_parent().name + "/" + self.name):
12 _unlocked = false
13
14
15func _body_entered(body):
16 if _unlocked:
17 ._body_entered(body)
18
19 if body.is_in_group("player"):
20 var apclient = global.get_node("Archipelago")
21 if !apclient._pilgrimage_enabled:
22 global.sunwarp = 1
23 body.get_node("pivot/camera/sunwarp_background").visible = false
24
25
26func unlock_warp():
27 _unlocked = true