about summary refs log tree commit diff stats
path: root/Archipelago/doorControl.gd
blob: 011b0e02ff3bd170025883ced2b239c6f632c227 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extends "res://scripts/doorControl.gd"


func handle_correct():
	# TODO: Right now we are just assuming that door shuffle is on.
	var apclient = global.get_node("Archipelago")
	if apclient.doorIsVanilla(self.get_parent().name + "/" + self.name):
		.handle_correct()


func openDoor():
	if !ran:
		# Basically do the same thing that the base game does.
		ran = true
		$AnimationPlayer.play("Open")