about summary refs log tree commit diff stats
path: root/Archipelago/panel.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-04-15 11:39:52 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-04-15 11:39:52 -0400
commite448f5b318f05cae1b40a949e11ef2d7fb613645 (patch)
tree8c46770b775f31db9293ed1c6d18358aece2b45c /Archipelago/panel.gd
parentdbc0e454596ba7e1a8378685c35e37dccd19c964 (diff)
downloadlingo-archipelago-e448f5b318f05cae1b40a949e11ef2d7fb613645.tar.gz
lingo-archipelago-e448f5b318f05cae1b40a949e11ef2d7fb613645.tar.bz2
lingo-archipelago-e448f5b318f05cae1b40a949e11ef2d7fb613645.zip
Implemented panels mode door shuffle
Diffstat (limited to 'Archipelago/panel.gd')
-rw-r--r--Archipelago/panel.gd9
1 files changed, 8 insertions, 1 deletions
diff --git a/Archipelago/panel.gd b/Archipelago/panel.gd index aec18e8..0e8f1df 100644 --- a/Archipelago/panel.gd +++ b/Archipelago/panel.gd
@@ -5,6 +5,7 @@ var orig_text = ""
5var atbash_text = "" 5var atbash_text = ""
6var orig_color = Color(0, 0, 0, 0) 6var orig_color = Color(0, 0, 0, 0)
7var solvable = true 7var solvable = true
8var locked = false
8 9
9const kAtbashPre = "abcdefghijklmnopqrstuvwxyz1234567890+-" 10const kAtbashPre = "abcdefghijklmnopqrstuvwxyz1234567890+-"
10const kAtbashPost = "zyxwvutsrqponmlkjihgfedcba0987654321-+" 11const kAtbashPost = "zyxwvutsrqponmlkjihgfedcba0987654321-+"
@@ -45,7 +46,13 @@ func evaluate_solvability():
45 missing.append(color) 46 missing.append(color)
46 solvable = false 47 solvable = false
47 48
48 if solvable: 49 if locked:
50 self.get_parent().get_node("Viewport/GUI/Panel/Label").text = "Locked"
51 self.get_parent().get_node("Viewport/GUI/Panel/TextEdit").editable = false
52 self.get_parent().get_node("Quad").get_surface_material(0).albedo_color = Color(
53 0.2, 0.7, 0.7
54 )
55 elif solvable:
49 if effects.atbash_remaining > 0: 56 if effects.atbash_remaining > 0:
50 self.get_parent().get_node("Viewport/GUI/Panel/Label").text = atbash_text 57 self.get_parent().get_node("Viewport/GUI/Panel/Label").text = atbash_text
51 else: 58 else: