From 3f53502a5907ed1982d28a392c54331f0c1c2c42 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 25 Sep 2025 12:09:50 -0400 Subject: Move the client into the apworld Only works on source right now, not as an apworld. --- apworld/client/collectable.gd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 apworld/client/collectable.gd (limited to 'apworld/client/collectable.gd') diff --git a/apworld/client/collectable.gd b/apworld/client/collectable.gd new file mode 100644 index 0000000..4a17a2a --- /dev/null +++ b/apworld/client/collectable.gd @@ -0,0 +1,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") -- cgit 1.4.1