diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-06-17 20:03:02 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-06-17 20:03:02 -0400 |
commit | 3695cb4b951bde7488d0084bcb61d67d7ea9374f (patch) | |
tree | f44d8ca25447bb1234ceefdf5a2980be2cbf6c87 /Archipelago/panel.gd | |
parent | e2936fdd05a7178772a47f5e7923a75c1b04a357 (diff) | |
download | lingo-archipelago-3695cb4b951bde7488d0084bcb61d67d7ea9374f.tar.gz lingo-archipelago-3695cb4b951bde7488d0084bcb61d67d7ea9374f.tar.bz2 lingo-archipelago-3695cb4b951bde7488d0084bcb61d67d7ea9374f.zip |
Atbash lasts until you solve a puzzle
Diffstat (limited to 'Archipelago/panel.gd')
-rw-r--r-- | Archipelago/panel.gd | 11 |
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 | |||
29 | func answer_correct(): | ||
30 | var effects = get_tree().get_root().get_node("Spatial/AP_Effects") | ||
31 | effects.deactivate_atbash_trap() | ||
32 | |||
24 | 33 | ||
25 | func evaluate_solvability(): | 34 | func 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 |