extends "res://scripts/teleport.gd"

var _unlocked = true


func _ready():
	var apclient = global.get_node("Archipelago")
	if apclient._door_shuffle and !apclient.warpIsVanilla(self.get_parent().name + "/" + self.name):
		if self.get_parent().name == "Teleporter Warps":
			if apclient._sunwarp_access != apclient.kSUNWARP_ACCESS_NORMAL:
				_unlocked = false
		else:
			_unlocked = false

	._ready()


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


func unlock_warp():
	_unlocked = true