summary refs log tree commit diff stats
path: root/client/Archipelago/collectable.gd
blob: 4a17a2a0440e2948aedc414f8fe7ea4ef025cb03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extends "res://scripts/nodes/collectable.gd"


func pickedUp():
	if unlock_type == "key":
		var ap = global.get_node("Archipelago")
		if ap.get_letter_behavior(unlock_key, level == 2) == ap.kLETTER_BEHAVIOR_VANILLA:
			ap.keyboard.collect_local_letter(unlock_key, level)
		else:
			ap.keyboard.update_unlocks()

	super.pickedUp()


func setScoutedText(text):
	get_node("MeshInstance3D").mesh.text = text.replace(" ", "\n")