From d33fe6b78912e7c70e3739de38fe5d9c86645c25 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 14 Apr 2023 08:49:09 -0400 Subject: Fixed doubling up of progressive items on relaunch --- Archipelago/client.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Archipelago') diff --git a/Archipelago/client.gd b/Archipelago/client.gd index 2dcd375..4e3ca75 100644 --- a/Archipelago/client.gd +++ b/Archipelago/client.gd @@ -148,6 +148,7 @@ func _on_data(): # We are being sent all of our items, so lets reset any progress # on progressive items. _tower_floors = 0 + _held_items = [] for item in message["items"]: if _map_loaded: @@ -260,7 +261,9 @@ func processItem(item): # Handle progressively opening up the tower. if _item_name_to_id["Progressive Orange Tower"] == item and _tower_floors < orange_tower.size(): - processItem(_item_name_to_id["Orange Tower - %s Floor" % orange_tower[_tower_floors]]) + var subitem_name = "Orange Tower - %s Floor" % orange_tower[_tower_floors] + global._print(subitem_name) + processItem(_item_name_to_id[subitem_name]) _tower_floors += 1 -- cgit 1.4.1