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/location.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/location.gd')
-rw-r--r-- | Archipelago/location.gd | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Archipelago/location.gd b/Archipelago/location.gd new file mode 100644 index 0000000..b85b5c4 --- /dev/null +++ b/Archipelago/location.gd | |||
@@ -0,0 +1,17 @@ | |||
1 | extends Node | ||
2 | |||
3 | var ap_name = "" | ||
4 | var ap_id = 0 | ||
5 | var total = 0 | ||
6 | var solved = 0 | ||
7 | var ran = false | ||
8 | |||
9 | |||
10 | func handle_correct(): | ||
11 | solved += 1 | ||
12 | |||
13 | if solved >= total && !ran: | ||
14 | ran = true | ||
15 | |||
16 | var apclient = global.get_node("Archipelago") | ||
17 | apclient.sendLocation(ap_id) | ||