From 4302e550cde189d8bc1d111e81270ed7960ad77c Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 16 Apr 2024 16:29:02 -0400 Subject: Better compatibility mode --- Archipelago/client.gd | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Archipelago') diff --git a/Archipelago/client.gd b/Archipelago/client.gd index 63c82f4..6fe2cab 100644 --- a/Archipelago/client.gd +++ b/Archipelago/client.gd @@ -315,13 +315,12 @@ func _on_data(): if _slot_data.has("shuffle_colors"): _color_shuffle = _slot_data["shuffle_colors"] if _slot_data.has("shuffle_doors"): - # TODO: This assumes that panels mode will be releaed in 0.4.6, which is untrue. - if wasGeneratedBeforeVersion({"major": 0, "minor": 4, "build": 6}): - _door_shuffle = (_slot_data["shuffle_doors"] > 0) - _panel_door_shuffle = false - else: + if _slot_data.has("group_doors"): _door_shuffle = (_slot_data["shuffle_doors"] == 2) _panel_door_shuffle = (_slot_data["shuffle_doors"] == 1) + else: + _door_shuffle = (_slot_data["shuffle_doors"] > 0) + _panel_door_shuffle = false if _slot_data.has("shuffle_paintings"): _painting_shuffle = _slot_data["shuffle_paintings"] if _slot_data.has("shuffle_panels"): -- cgit 1.4.1