diff options
Diffstat (limited to 'Archipelago/doorControl.gd')
| -rw-r--r-- | Archipelago/doorControl.gd | 15 |
1 files changed, 15 insertions, 0 deletions
| diff --git a/Archipelago/doorControl.gd b/Archipelago/doorControl.gd new file mode 100644 index 0000000..011b0e0 --- /dev/null +++ b/Archipelago/doorControl.gd | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | extends "res://scripts/doorControl.gd" | ||
| 2 | |||
| 3 | |||
| 4 | func handle_correct(): | ||
| 5 | # TODO: Right now we are just assuming that door shuffle is on. | ||
| 6 | var apclient = global.get_node("Archipelago") | ||
| 7 | if apclient.doorIsVanilla(self.get_parent().name + "/" + self.name): | ||
| 8 | .handle_correct() | ||
| 9 | |||
| 10 | |||
| 11 | func openDoor(): | ||
| 12 | if !ran: | ||
| 13 | # Basically do the same thing that the base game does. | ||
| 14 | ran = true | ||
| 15 | $AnimationPlayer.play("Open") | ||
