about summary refs log tree commit diff stats
path: root/Archipelago/client.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Archipelago/client.gd')
-rw-r--r--Archipelago/client.gd16
1 files changed, 16 insertions, 0 deletions
diff --git a/Archipelago/client.gd b/Archipelago/client.gd index ad37ef0..17c6063 100644 --- a/Archipelago/client.gd +++ b/Archipelago/client.gd
@@ -48,6 +48,14 @@ const kLEVEL_2 = 2
48const kNO_PANEL_SHUFFLE = 0 48const kNO_PANEL_SHUFFLE = 0
49const kREARRANGE_PANELS = 1 49const kREARRANGE_PANELS = 1
50 50
51const kCLASSIFICATION_LOCAL_NORMAL = 1
52const kCLASSIFICATION_LOCAL_REDUCED = 2
53const kCLASSIFICATION_LOCAL_INSANITY = 4
54
55const kCLASSIFICATION_REMOTE_NORMAL = 0
56const kCLASSIFICATION_REMOTE_REDUCED = 1
57const kCLASSIFICATION_REMOTE_INSANITY = 2
58
51var _client = WebSocketClient.new() 59var _client = WebSocketClient.new()
52var _should_process = false 60var _should_process = false
53var _initiated_disconnect = false 61var _initiated_disconnect = false
@@ -83,6 +91,7 @@ var _panel_shuffle = 0 # none, rearrange
83var _painting_shuffle = false 91var _painting_shuffle = false
84var _mastery_achievements = 21 92var _mastery_achievements = 21
85var _level_2_requirement = 223 93var _level_2_requirement = 223
94var _location_classification_bit = 0
86var _slot_seed = 0 95var _slot_seed = 0
87 96
88var _map_loaded = false 97var _map_loaded = false
@@ -248,6 +257,13 @@ func _on_data():
248 _mastery_achievements = _slot_data["mastery_achievements"] 257 _mastery_achievements = _slot_data["mastery_achievements"]
249 if _slot_data.has("level_2_requirement"): 258 if _slot_data.has("level_2_requirement"):
250 _level_2_requirement = _slot_data["level_2_requirement"] 259 _level_2_requirement = _slot_data["level_2_requirement"]
260 if _slot_data.has("location_checks"):
261 if _slot_data["location_checks"] == kCLASSIFICATION_REMOTE_NORMAL:
262 _location_classification_bit = kCLASSIFICATION_LOCAL_NORMAL
263 elif _slot_data["location_checks"] == kCLASSIFICATION_REMOTE_REDUCED:
264 _location_classification_bit = kCLASSIFICATION_LOCAL_REDUCED
265 elif _slot_data["location_checks"] == kCLASSIFICATION_REMOTE_INSANITY:
266 _location_classification_bit = kCLASSIFICATION_LOCAL_INSANITY
251 267
252 _puzzle_skips = 0 268 _puzzle_skips = 0
253 269