diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-04-18 17:45:10 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-04-18 17:45:10 -0400 |
commit | 67ec5e396a2e60cc531345e80d377afbcfc22c32 (patch) | |
tree | b71d9ca3b24293c44e166238cfdb5419f822cd1b /Archipelago/teleport.gd | |
parent | 139ecb09dcb49177d1fa39baaf8e378e3009fc76 (diff) | |
parent | e33ba8444d965ed903a0ca87d2824af334c4cdd9 (diff) | |
download | lingo-archipelago-67ec5e396a2e60cc531345e80d377afbcfc22c32.tar.gz lingo-archipelago-67ec5e396a2e60cc531345e80d377afbcfc22c32.tar.bz2 lingo-archipelago-67ec5e396a2e60cc531345e80d377afbcfc22c32.zip |
Merge branch 'sunwarps' into future
Diffstat (limited to 'Archipelago/teleport.gd')
-rw-r--r-- | Archipelago/teleport.gd | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/Archipelago/teleport.gd b/Archipelago/teleport.gd index d322722..532f081 100644 --- a/Archipelago/teleport.gd +++ b/Archipelago/teleport.gd | |||
@@ -5,20 +5,23 @@ var _unlocked = true | |||
5 | 5 | ||
6 | func _ready(): | 6 | func _ready(): |
7 | var apclient = global.get_node("Archipelago") | 7 | var apclient = global.get_node("Archipelago") |
8 | if apclient._door_shuffle and !apclient.warpIsVanilla(self.get_parent().name + "/" + self.name): | 8 | if self.get_parent().name == "Teleporter Warps": |
9 | if self.get_parent().name == "Teleporter Warps": | 9 | if apclient._sunwarp_access != apclient.kSUNWARP_ACCESS_NORMAL: |
10 | if apclient._sunwarp_access != apclient.kSUNWARP_ACCESS_NORMAL: | ||
11 | _unlocked = false | ||
12 | else: | ||
13 | _unlocked = false | 10 | _unlocked = false |
11 | elif apclient._door_shuffle and !apclient.warpIsVanilla(self.get_parent().name + "/" + self.name): | ||
12 | _unlocked = false | ||
14 | 13 | ||
15 | ._ready() | ||
16 | 14 | ||
17 | 15 | func _body_entered(body): | |
18 | func _body_entered(var body): | ||
19 | if _unlocked: | 16 | if _unlocked: |
20 | ._body_entered(body) | 17 | ._body_entered(body) |
21 | 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 | |||
22 | 25 | ||
23 | func unlock_warp(): | 26 | func unlock_warp(): |
24 | _unlocked = true | 27 | _unlocked = true |