extends "res://scripts/teleport.gd"
var _unlocked = true
func _ready():
var apclient = global.get_node("Archipelago")
if self.get_parent().name == "Teleporter Warps":
if apclient._sunwarp_access != apclient.kSUNWARP_ACCESS_NORMAL:
_unlocked = false
elif apclient._door_shuffle and !apclient.warpIsVanilla(self.get_parent().name + "/" + self.name):
_unlocked = false
func _body_entered(body):
if _unlocked:
._body_entered(body)
if body.is_in_group("player"):
var apclient = global.get_node("Archipelago")
if !apclient._pilgrimage_enabled:
global.sunwarp = 1
body.get_node("pivot/camera/sunwarp_background").visible = false
func unlock_warp():
_unlocked = true
td class='form'>
blob: 40994d9dc1d30550f0095388e3973d748d977418 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
extends "res://scripts/pause_menu.gd"
func _main_menu():
var apclient = global.get_node("Archipelago")
apclient.disconnect_from_ap()
._main_menu()
|