about summary refs log tree commit diff stats
path: root/Archipelago/client.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-04-14 08:49:09 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-04-14 08:49:09 -0400
commitd33fe6b78912e7c70e3739de38fe5d9c86645c25 (patch)
tree62af88eb3fd3588dec3cad948318118c865c5d58 /Archipelago/client.gd
parent42e1da049f6c3e84f9e6a8cfec29ee93c0d8401a (diff)
downloadlingo-archipelago-d33fe6b78912e7c70e3739de38fe5d9c86645c25.tar.gz
lingo-archipelago-d33fe6b78912e7c70e3739de38fe5d9c86645c25.tar.bz2
lingo-archipelago-d33fe6b78912e7c70e3739de38fe5d9c86645c25.zip
Fixed doubling up of progressive items on relaunch
Diffstat (limited to 'Archipelago/client.gd')
-rw-r--r--Archipelago/client.gd5
1 files changed, 4 insertions, 1 deletions
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():
148 # We are being sent all of our items, so lets reset any progress 148 # We are being sent all of our items, so lets reset any progress
149 # on progressive items. 149 # on progressive items.
150 _tower_floors = 0 150 _tower_floors = 0
151 _held_items = []
151 152
152 for item in message["items"]: 153 for item in message["items"]:
153 if _map_loaded: 154 if _map_loaded:
@@ -260,7 +261,9 @@ func processItem(item):
260 261
261 # Handle progressively opening up the tower. 262 # Handle progressively opening up the tower.
262 if _item_name_to_id["Progressive Orange Tower"] == item and _tower_floors < orange_tower.size(): 263 if _item_name_to_id["Progressive Orange Tower"] == item and _tower_floors < orange_tower.size():
263 processItem(_item_name_to_id["Orange Tower - %s Floor" % orange_tower[_tower_floors]]) 264 var subitem_name = "Orange Tower - %s Floor" % orange_tower[_tower_floors]
265 global._print(subitem_name)
266 processItem(_item_name_to_id[subitem_name])
264 _tower_floors += 1 267 _tower_floors += 1
265 268
266 269