about summary refs log tree commit diff stats
path: root/Archipelago/load.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-06-02 20:19:48 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-06-02 20:19:48 -0400
commit1a6f4c74af4e2c92239a7687dbb2852fbe1451b0 (patch)
tree87209cea1ef4952df2d2338cc1b2cfee990cc7c8 /Archipelago/load.gd
parent5217af39cd151b65717c144c6fc2472888dd45a1 (diff)
downloadlingo-archipelago-1a6f4c74af4e2c92239a7687dbb2852fbe1451b0.tar.gz
lingo-archipelago-1a6f4c74af4e2c92239a7687dbb2852fbe1451b0.tar.bz2
lingo-archipelago-1a6f4c74af4e2c92239a7687dbb2852fbe1451b0.zip
Reveal snipes in panel shuffle
Diffstat (limited to 'Archipelago/load.gd')
-rw-r--r--Archipelago/load.gd22
1 files changed, 22 insertions, 0 deletions
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index a734459..436198f 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd
@@ -127,6 +127,20 @@ func _load():
127 127
128 set_gridmap_tile(-20.5, 1.5, -79.5, "MeshInstance9") 128 set_gridmap_tile(-20.5, 1.5, -79.5, "MeshInstance9")
129 129
130 # Remove opaque wall in front of FOURTH.
131 set_gridmap_tile(-71.5, 1.5, -64.5, "MeshInstance18")
132
133 # Move The Lab's OPEN out of the wall.
134 panels_parent.get_node("Chemistry Room/Panel_open").translation.x = -87.001
135
136 # Move ZERO out of the wall and change the wall to be white.
137 panels_parent.get_node("Backside Room/Panel_zero_zero").translation.z = 16.499
138
139 set_small_gridmap_tile(-76.25, 1.75, 16.75, "SmallMeshInstance5")
140 set_small_gridmap_tile(-76.75, 1.75, 16.75, "SmallMeshInstance5")
141 set_small_gridmap_tile(-76.25, 1.25, 16.75, "SmallMeshInstance5")
142 set_small_gridmap_tile(-76.75, 1.25, 16.75, "SmallMeshInstance5")
143
130 if apclient._panel_shuffle == apclient.kREARRANGE_PANELS: 144 if apclient._panel_shuffle == apclient.kREARRANGE_PANELS:
131 # Do the actual shuffling. 145 # Do the actual shuffling.
132 var panel_pools = {} 146 var panel_pools = {}
@@ -420,6 +434,14 @@ func set_gridmap_tile(x, y, z, tile):
420 gridmap.set_cell_item(mapvec.x, mapvec.y, mapvec.z, mesh_library.find_item_by_name(tile)) 434 gridmap.set_cell_item(mapvec.x, mapvec.y, mapvec.z, mesh_library.find_item_by_name(tile))
421 435
422 436
437func set_small_gridmap_tile(x, y, z, tile):
438 var gridmap = self.get_node("GridMapSmall")
439 var mesh_library = gridmap.mesh_library
440 var mapvec = gridmap.world_to_map(gridmap.to_local(Vector3(x, y, z)))
441
442 gridmap.set_cell_item(mapvec.x, mapvec.y, mapvec.z, mesh_library.find_item_by_name(tile))
443
444
423func archipelago_disconnected(reason): 445func archipelago_disconnected(reason):
424 var messages_node = self.get_node("Messages") 446 var messages_node = self.get_node("Messages")
425 messages_node.show_message(reason) 447 messages_node.show_message(reason)