about summary refs log tree commit diff stats
path: root/Archipelago/location.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-04-13 18:09:30 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-04-13 18:09:30 -0400
commit617e31fce21eb18d1ffccdc9c377d25535157351 (patch)
treec1fbcee75a67062663a0fe1ff00f4be1db382be1 /Archipelago/location.gd
parent679bba3b46ea30a329c617b3cc47645d540a261f (diff)
downloadlingo-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.gd17
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 @@
1extends Node
2
3var ap_name = ""
4var ap_id = 0
5var total = 0
6var solved = 0
7var ran = false
8
9
10func 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)