about summary refs log tree commit diff stats
path: root/Archipelago
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-07-14 08:48:09 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-07-14 08:48:09 -0400
commitc78ed66e4997da9ebf071deb257d38c5aa11eb6e (patch)
treecbec6b42d6e1ffc41e4abfa4516713512d7a8f28 /Archipelago
parent9e763bede998c86d23240c09b63f1dae2ad832da (diff)
downloadlingo-archipelago-c78ed66e4997da9ebf071deb257d38c5aa11eb6e.tar.gz
lingo-archipelago-c78ed66e4997da9ebf071deb257d38c5aa11eb6e.tar.bz2
lingo-archipelago-c78ed66e4997da9ebf071deb257d38c5aa11eb6e.zip
Fixed localdata not being reset for new slots
Diffstat (limited to 'Archipelago')
-rw-r--r--Archipelago/client.gd15
1 files changed, 5 insertions, 10 deletions
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():
343 setValue("PlayerPos", null) 343 setValue("PlayerPos", null)
344 344
345 _puzzle_skips = 0 345 _puzzle_skips = 0
346 _last_new_item = -1
347 _cached_slowness = 0
348 _cached_iceland = 0
349 _cached_atbash = 0
350 _geronimo_skip = false
346 351
347 _localdata_file = "user://archipelago_data/%s_%d" % [_seed, _slot] 352 _localdata_file = "user://archipelago_data/%s_%d" % [_seed, _slot]
348 var ap_file = File.new() 353 var ap_file = File.new()
@@ -357,31 +362,21 @@ func _on_data():
357 362
358 if localdata.size() > 0: 363 if localdata.size() > 0:
359 _last_new_item = localdata[0] 364 _last_new_item = localdata[0]
360 else:
361 _last_new_item = -1
362 365
363 if localdata.size() > 1: 366 if localdata.size() > 1:
364 _puzzle_skips = localdata[1] 367 _puzzle_skips = localdata[1]
365 368
366 if localdata.size() > 2: 369 if localdata.size() > 2:
367 _cached_slowness = localdata[2] 370 _cached_slowness = localdata[2]
368 else:
369 _cached_slowness = 0
370 371
371 if localdata.size() > 3: 372 if localdata.size() > 3:
372 _cached_iceland = localdata[3] 373 _cached_iceland = localdata[3]
373 else:
374 _cached_iceland = 0
375 374
376 if localdata.size() > 4: 375 if localdata.size() > 4:
377 _cached_atbash = localdata[4] 376 _cached_atbash = localdata[4]
378 else:
379 _cached_atbash = 0
380 377
381 if localdata.size() > 5: 378 if localdata.size() > 5:
382 _geronimo_skip = localdata[5] 379 _geronimo_skip = localdata[5]
383 else:
384 _geronimo_skip = false
385 380
386 requestSync() 381 requestSync()
387 382