diff options
Diffstat (limited to 'Archipelago/load.gd')
| -rw-r--r-- | Archipelago/load.gd | 27 |
1 files changed, 27 insertions, 0 deletions
| diff --git a/Archipelago/load.gd b/Archipelago/load.gd index e3ae24e..76015e9 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd | |||
| @@ -175,6 +175,33 @@ func _load(): | |||
| 175 | var chosen_painting = remaining[rng.randi_range(0, remaining.size() - 1)] | 175 | var chosen_painting = remaining[rng.randi_range(0, remaining.size() - 1)] |
| 176 | instantiate_painting(painting, chosen_painting) | 176 | instantiate_painting(painting, chosen_painting) |
| 177 | 177 | ||
| 178 | # If door shuffle is on, we need to make some changes to the Art Gallery. | ||
| 179 | # The player should always have access to the backroom, but they shouldn't | ||
| 180 | # have access to ORDER until getting the fifth floor, so will move the | ||
| 181 | # backroom door. Also, the paintings in the backroom should only show up as | ||
| 182 | # the player gets the progressive art gallery items. | ||
| 183 | if apclient._door_shuffle: | ||
| 184 | var backroom_door = get_node("Doors/Tower Room Area Doors/Door_painting_backroom") | ||
| 185 | backroom_door.translation.x = 97 | ||
| 186 | backroom_door.translation.y = 0 | ||
| 187 | backroom_door.translation.z = 39 | ||
| 188 | backroom_door.scale.x = 2 | ||
| 189 | backroom_door.scale.y = 2.5 | ||
| 190 | backroom_door.scale.z = 1 | ||
| 191 | |||
| 192 | for i in range(2, 6): | ||
| 193 | var painting_path = "Decorations/Paintings/scenery_painting_%db" % i | ||
| 194 | var painting_node = get_node(painting_path) | ||
| 195 | var rotate = painting_node.rotate | ||
| 196 | var target = painting_node.target | ||
| 197 | painting_node.set_script(load("res://scripts/painting_eye.gd")) | ||
| 198 | painting_node.rotate = rotate | ||
| 199 | painting_node.target = target | ||
| 200 | painting_node.move_to_x = painting_node.translation.x | ||
| 201 | painting_node.move_to_z = painting_node.translation.z | ||
| 202 | painting_node.translation.x = 88 | ||
| 203 | painting_node.translation.z = 39 | ||
| 204 | |||
| 178 | # Attach a script to every panel so that we can do things like conditionally | 205 | # Attach a script to every panel so that we can do things like conditionally |
| 179 | # disable them. | 206 | # disable them. |
| 180 | var panel_script = ResourceLoader.load("user://maps/Archipelago/panel.gd") | 207 | var panel_script = ResourceLoader.load("user://maps/Archipelago/panel.gd") |
