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

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


func handle_correct():
	solved += 1

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

		var apclient = global.get_node("Archipelago")
		if classification & apclient._location_classification_bit:
			apclient.sendLocation(ap_id)