about summary refs log tree commit diff stats
path: root/Archipelago/teleport.gd
blob: 66e26dd327c658aadde834c0088d2fa92d81672c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
extends "res://scripts/teleport.gd"

var _unlocked = true


func _ready():
	var apclient = global.get_node("Archipelago")
	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)):
		_unlocked = false
	
	._ready()


func _body_entered(var body):
	if _unlocked:
		._body_entered(body)


func unlock_warp():
	_unlocked = true