diff options
Diffstat (limited to 'Archipelago/client.gd')
-rw-r--r-- | Archipelago/client.gd | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Archipelago/client.gd b/Archipelago/client.gd index 58a099c..1ba52d7 100644 --- a/Archipelago/client.gd +++ b/Archipelago/client.gd | |||
@@ -128,6 +128,7 @@ var _puzzle_skips = 0 | |||
128 | var _cached_slowness = 0 | 128 | var _cached_slowness = 0 |
129 | var _cached_iceland = 0 | 129 | var _cached_iceland = 0 |
130 | var _cached_atbash = 0 | 130 | var _cached_atbash = 0 |
131 | var _geronimo_skip = false | ||
131 | 132 | ||
132 | signal could_not_connect | 133 | signal could_not_connect |
133 | signal connect_status | 134 | signal connect_status |
@@ -329,6 +330,11 @@ func _on_data(): | |||
329 | else: | 330 | else: |
330 | _cached_atbash = 0 | 331 | _cached_atbash = 0 |
331 | 332 | ||
333 | if localdata.size() > 5: | ||
334 | _geronimo_skip = localdata[5] | ||
335 | else: | ||
336 | _geronimo_skip = false | ||
337 | |||
332 | requestSync() | 338 | requestSync() |
333 | 339 | ||
334 | emit_signal("client_connected") | 340 | emit_signal("client_connected") |
@@ -488,7 +494,8 @@ func saveLocaldata(): | |||
488 | _puzzle_skips, | 494 | _puzzle_skips, |
489 | effects_node.slowness_remaining, | 495 | effects_node.slowness_remaining, |
490 | effects_node.iceland_remaining, | 496 | effects_node.iceland_remaining, |
491 | effects_node.atbash_remaining | 497 | effects_node.atbash_remaining, |
498 | _geronimo_skip | ||
492 | ] | 499 | ] |
493 | file.store_var(data, true) | 500 | file.store_var(data, true) |
494 | file.close() | 501 | file.close() |
@@ -733,6 +740,15 @@ func usePuzzleSkip(): | |||
733 | saveLocaldata() | 740 | saveLocaldata() |
734 | 741 | ||
735 | 742 | ||
743 | func geronimo(): | ||
744 | if !_geronimo_skip: | ||
745 | messages.showMessage("Geronimo! You found a puzzle skip.") | ||
746 | |||
747 | _puzzle_skips += 1 | ||
748 | _geronimo_skip = true | ||
749 | saveLocaldata() | ||
750 | |||
751 | |||
736 | func colorForItemType(flags): | 752 | func colorForItemType(flags): |
737 | var int_flags = int(flags) | 753 | var int_flags = int(flags) |
738 | if int_flags & 1: # progression | 754 | if int_flags & 1: # progression |