From c78ed66e4997da9ebf071deb257d38c5aa11eb6e Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 14 Jul 2024 08:48:09 -0400 Subject: Fixed localdata not being reset for new slots --- Archipelago/client.gd | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'Archipelago') diff --git a/Archipelago/client.gd b/Archipelago/client.gd index 8921c3e..7cc8645 100644 --- a/Archipelago/client.gd +++ b/Archipelago/client.gd @@ -343,6 +343,11 @@ func _on_data(): setValue("PlayerPos", null) _puzzle_skips = 0 + _last_new_item = -1 + _cached_slowness = 0 + _cached_iceland = 0 + _cached_atbash = 0 + _geronimo_skip = false _localdata_file = "user://archipelago_data/%s_%d" % [_seed, _slot] var ap_file = File.new() @@ -357,31 +362,21 @@ func _on_data(): if localdata.size() > 0: _last_new_item = localdata[0] - else: - _last_new_item = -1 if localdata.size() > 1: _puzzle_skips = localdata[1] if localdata.size() > 2: _cached_slowness = localdata[2] - else: - _cached_slowness = 0 if localdata.size() > 3: _cached_iceland = localdata[3] - else: - _cached_iceland = 0 if localdata.size() > 4: _cached_atbash = localdata[4] - else: - _cached_atbash = 0 if localdata.size() > 5: _geronimo_skip = localdata[5] - else: - _geronimo_skip = false requestSync() -- cgit 1.4.1