about summary refs log tree commit diff stats
path: root/Archipelago/location.gd
diff options
context:
space:
mode:
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)