about summary refs log tree commit diff stats
path: root/Archipelago/client.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Archipelago/client.gd')
-rw-r--r--Archipelago/client.gd12
1 files changed, 12 insertions, 0 deletions
diff --git a/Archipelago/client.gd b/Archipelago/client.gd index e3b2c89..f0a4d2e 100644 --- a/Archipelago/client.gd +++ b/Archipelago/client.gd
@@ -92,6 +92,7 @@ var _last_new_item = -1
92var _progressive_progress = {} 92var _progressive_progress = {}
93var _has_colors = ["white"] 93var _has_colors = ["white"]
94var _received_indexes = [] 94var _received_indexes = []
95var _puzzle_skips = 0
95 96
96signal could_not_connect 97signal could_not_connect
97signal connect_status 98signal connect_status
@@ -539,6 +540,7 @@ func mapFinishedLoading():
539 _received_indexes.clear() 540 _received_indexes.clear()
540 _progressive_progress.clear() 541 _progressive_progress.clear()
541 _has_colors = ["white"] 542 _has_colors = ["white"]
543 _puzzle_skips = 0
542 emit_signal("evaluate_solvability") 544 emit_signal("evaluate_solvability")
543 545
544 for item in _held_items: 546 for item in _held_items:
@@ -632,6 +634,8 @@ func processItem(item, index, from, flags):
632 effects_node.trigger_iceland_trap() 634 effects_node.trigger_iceland_trap()
633 if item_name == "Atbash Trap": 635 if item_name == "Atbash Trap":
634 effects_node.trigger_atbash_trap() 636 effects_node.trigger_atbash_trap()
637 if item_name == "Puzzle Skip":
638 _puzzle_skips += 1
635 639
636 640
637func doorIsVanilla(door): 641func doorIsVanilla(door):
@@ -646,6 +650,14 @@ func evaluateSolvability():
646 emit_signal("evaluate_solvability") 650 emit_signal("evaluate_solvability")
647 651
648 652
653func getAvailablePuzzleSkips():
654 return _puzzle_skips
655
656
657func usePuzzleSkip():
658 _puzzle_skips -= 1
659
660
649func colorForItemType(flags): 661func colorForItemType(flags):
650 var int_flags = int(flags) 662 var int_flags = int(flags)
651 if int_flags & 1: # progression 663 if int_flags & 1: # progression