about summary refs log tree commit diff stats
path: root/Archipelago/teleport.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-02-28 12:35:45 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2024-02-28 12:35:45 -0500
commit4d2da5afe6a3ffad50ca5560c1dcceaddde2b9b0 (patch)
tree4164ea81516c7446f8b6577492011b65682472f9 /Archipelago/teleport.gd
parentde5eb04ed014770558b546e02c91ce6eb262f652 (diff)
downloadlingo-archipelago-4d2da5afe6a3ffad50ca5560c1dcceaddde2b9b0.tar.gz
lingo-archipelago-4d2da5afe6a3ffad50ca5560c1dcceaddde2b9b0.tar.bz2
lingo-archipelago-4d2da5afe6a3ffad50ca5560c1dcceaddde2b9b0.zip
Add pilgrimage allows roof access / paintings
Diffstat (limited to 'Archipelago/teleport.gd')
-rw-r--r--Archipelago/teleport.gd15
1 files changed, 11 insertions, 4 deletions
diff --git a/Archipelago/teleport.gd b/Archipelago/teleport.gd index 66e26dd..532f081 100644 --- a/Archipelago/teleport.gd +++ b/Archipelago/teleport.gd
@@ -5,16 +5,23 @@ var _unlocked = true
5 5
6func _ready(): 6func _ready():
7 var apclient = global.get_node("Archipelago") 7 var apclient = global.get_node("Archipelago")
8 if (apclient._sunwarp_access != apclient.kSUNWARP_ACCESS_NORMAL and self.get_parent().name == "Teleporter Warps") or (apclient._door_shuffle and !apclient.warpIsVanilla(self.get_parent().name + "/" + self.name)): 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):
9 _unlocked = false 12 _unlocked = false
10
11 ._ready()
12 13
13 14
14func _body_entered(var body): 15func _body_entered(body):
15 if _unlocked: 16 if _unlocked:
16 ._body_entered(body) 17 ._body_entered(body)
17 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
18 25
19func unlock_warp(): 26func unlock_warp():
20 _unlocked = true 27 _unlocked = true