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.gd12
1 files changed, 12 insertions, 0 deletions
diff --git a/Archipelago/client.gd b/Archipelago/client.gd index 8f20d0a..c5f1488 100644 --- a/Archipelago/client.gd +++ b/Archipelago/client.gd
@@ -10,6 +10,12 @@ const color_items = [
10 "White", "Black", "Red", "Blue", "Green", "Brown", "Gray", "Orange", "Purple", "Yellow" 10 "White", "Black", "Red", "Blue", "Green", "Brown", "Gray", "Orange", "Purple", "Yellow"
11] 11]
12 12
13const kTHE_END = 0
14const kTHE_MASTER = 1
15
16const kNO_PANEL_SHUFFLE = 0
17const kREARRANGE_PANELS = 1
18
13var _client = WebSocketClient.new() 19var _client = WebSocketClient.new()
14var _last_state = WebSocketPeer.STATE_CLOSED 20var _last_state = WebSocketPeer.STATE_CLOSED
15var _should_process = false 21var _should_process = false
@@ -41,6 +47,8 @@ var _death_link = false
41var _victory_condition = 0 # THE END, THE MASTER 47var _victory_condition = 0 # THE END, THE MASTER
42var _door_shuffle = false 48var _door_shuffle = false
43var _color_shuffle = false 49var _color_shuffle = false
50var _panel_shuffle = 0 # none, rearrange
51var _slot_seed = 0
44 52
45var _map_loaded = false 53var _map_loaded = false
46var _held_items = [] 54var _held_items = []
@@ -165,6 +173,10 @@ func _on_data():
165 _color_shuffle = _slot_data["shuffle_colors"] 173 _color_shuffle = _slot_data["shuffle_colors"]
166 if _slot_data.has("shuffle_doors"): 174 if _slot_data.has("shuffle_doors"):
167 _door_shuffle = (_slot_data["shuffle_doors"] > 0) 175 _door_shuffle = (_slot_data["shuffle_doors"] > 0)
176 if _slot_data.has("shuffle_panels"):
177 _panel_shuffle = _slot_data["shuffle_panels"]
178 if _slot_data.has("seed"):
179 _slot_seed = _slot_data["seed"]
168 180
169 _localdata_file = "user://archipelago/%s_%d" % [_seed, _slot] 181 _localdata_file = "user://archipelago/%s_%d" % [_seed, _slot]
170 var ap_file = File.new() 182 var ap_file = File.new()