diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-04-16 23:40:39 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-04-16 23:40:39 -0400 |
commit | c6770ac83c49f4adb7e2c2a6ee6290f0487a3873 (patch) | |
tree | 0b3b52f31ba5663d33aa7cef02d1621d9dceeb5b /Archipelago/client.gd | |
parent | 7aa62e5c0ac0d86e5aed2ead2a7116ea0edbffde (diff) | |
download | lingo-archipelago-c6770ac83c49f4adb7e2c2a6ee6290f0487a3873.tar.gz lingo-archipelago-c6770ac83c49f4adb7e2c2a6ee6290f0487a3873.tar.bz2 lingo-archipelago-c6770ac83c49f4adb7e2c2a6ee6290f0487a3873.zip |
Implemented panel shuffle
Diffstat (limited to 'Archipelago/client.gd')
-rw-r--r-- | Archipelago/client.gd | 12 |
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 | ||
13 | const kTHE_END = 0 | ||
14 | const kTHE_MASTER = 1 | ||
15 | |||
16 | const kNO_PANEL_SHUFFLE = 0 | ||
17 | const kREARRANGE_PANELS = 1 | ||
18 | |||
13 | var _client = WebSocketClient.new() | 19 | var _client = WebSocketClient.new() |
14 | var _last_state = WebSocketPeer.STATE_CLOSED | 20 | var _last_state = WebSocketPeer.STATE_CLOSED |
15 | var _should_process = false | 21 | var _should_process = false |
@@ -41,6 +47,8 @@ var _death_link = false | |||
41 | var _victory_condition = 0 # THE END, THE MASTER | 47 | var _victory_condition = 0 # THE END, THE MASTER |
42 | var _door_shuffle = false | 48 | var _door_shuffle = false |
43 | var _color_shuffle = false | 49 | var _color_shuffle = false |
50 | var _panel_shuffle = 0 # none, rearrange | ||
51 | var _slot_seed = 0 | ||
44 | 52 | ||
45 | var _map_loaded = false | 53 | var _map_loaded = false |
46 | var _held_items = [] | 54 | var _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() |