about summary refs log tree commit diff stats
path: root/data/maps/the_tower/rooms
Path not found
s='blob'>
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")