diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-04-13 18:09:30 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-04-13 18:09:30 -0400 |
| commit | 617e31fce21eb18d1ffccdc9c377d25535157351 (patch) | |
| tree | c1fbcee75a67062663a0fe1ff00f4be1db382be1 /Archipelago/doorControl.gd | |
| parent | 679bba3b46ea30a329c617b3cc47645d540a261f (diff) | |
| download | lingo-archipelago-617e31fce21eb18d1ffccdc9c377d25535157351.tar.gz lingo-archipelago-617e31fce21eb18d1ffccdc9c377d25535157351.tar.bz2 lingo-archipelago-617e31fce21eb18d1ffccdc9c377d25535157351.zip | |
It WORKS!
You can send checks and receive door items!
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") | ||
