about summary refs log tree commit diff stats
path: root/Archipelago/location.gd
blob: b85b5c4f5056072593c27f836a95d32107903c73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extends Node

var ap_name = ""
var ap_id = 0
var total = 0
var solved = 0
var ran = false


func handle_correct():
	solved += 1

	if solved >= total && !ran:
		ran = true

		var apclient = global.get_node("Archipelago")
		apclient.sendLocation(ap_id)