about summary refs log tree commit diff stats
path: root/Archipelago/panel.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Archipelago/panel.gd')
-rw-r--r--Archipelago/panel.gd11
1 files changed, 10 insertions, 1 deletions
diff --git a/Archipelago/panel.gd b/Archipelago/panel.gd index bf43653..da11ddd 100644 --- a/Archipelago/panel.gd +++ b/Archipelago/panel.gd
@@ -21,6 +21,15 @@ func _ready():
21 else: 21 else:
22 atbash_text += old_char 22 atbash_text += old_char
23 23
24 self.get_parent().get_node("Viewport/GUI/Panel/TextEdit").connect(
25 "answer_correct", self, "answer_correct"
26 )
27
28
29func answer_correct():
30 var effects = get_tree().get_root().get_node("Spatial/AP_Effects")
31 effects.deactivate_atbash_trap()
32
24 33
25func evaluate_solvability(): 34func evaluate_solvability():
26 var apclient = global.get_node("Archipelago") 35 var apclient = global.get_node("Archipelago")
@@ -36,7 +45,7 @@ func evaluate_solvability():
36 solvable = false 45 solvable = false
37 46
38 if solvable: 47 if solvable:
39 if effects.atbash_remaining > 0: 48 if effects.atbash_activated:
40 self.get_parent().get_node("Viewport/GUI/Panel/Label").text = atbash_text 49 self.get_parent().get_node("Viewport/GUI/Panel/Label").text = atbash_text
41 else: 50 else:
42 self.get_parent().get_node("Viewport/GUI/Panel/Label").text = orig_text 51 self.get_parent().get_node("Viewport/GUI/Panel/Label").text = orig_text