diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-05-21 13:12:50 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-05-21 13:12:50 -0400 |
commit | 711d326fa4585031b9d623541624826558bdf547 (patch) | |
tree | 14aad4560bfe0674098b96f859a62c63b693406b /Archipelago/notifier.gd | |
parent | 234388269696e3383631f4f0450b1096577d91cb (diff) | |
download | lingo-archipelago-711d326fa4585031b9d623541624826558bdf547.tar.gz lingo-archipelago-711d326fa4585031b9d623541624826558bdf547.tar.bz2 lingo-archipelago-711d326fa4585031b9d623541624826558bdf547.zip |
Report achievements to AP using data storage (for tracker)
Diffstat (limited to 'Archipelago/notifier.gd')
-rw-r--r-- | Archipelago/notifier.gd | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Archipelago/notifier.gd b/Archipelago/notifier.gd new file mode 100644 index 0000000..57d6564 --- /dev/null +++ b/Archipelago/notifier.gd | |||
@@ -0,0 +1,14 @@ | |||
1 | extends Node | ||
2 | |||
3 | var key | ||
4 | |||
5 | |||
6 | func _ready(): | ||
7 | self.get_parent().get_node("Viewport/GUI/Panel/TextEdit").connect( | ||
8 | "answer_correct", self, "handle_correct" | ||
9 | ) | ||
10 | |||
11 | |||
12 | func handle_correct(): | ||
13 | var apclient = global.get_node("Archipelago") | ||
14 | apclient.setValue(key, true) | ||