From 3a78350a4c85ebe022e2b07b030d59436029c856 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 12 Jan 2024 15:00:43 -0500 Subject: Remove black block from THE RED --- Archipelago/load.gd | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Archipelago') diff --git a/Archipelago/load.gd b/Archipelago/load.gd index a2051c3..edfeb3c 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd @@ -186,6 +186,10 @@ func _load(): set_gridmap_tile(-88.5, 4.5, -41.5, "MeshInstance8") set_gridmap_tile(-89.5, 4.5, -41.5, "MeshInstance4") + # Remove black block from THE RED. + clear_gridmap_tile(68.5, 6.5, 76.5) + get_node("Decorations/PanelSign/sign19").queue_free() + if apclient.confusify_world: # Remove welcome back / color hallway / sunwarp indicators. get_node("Decorations/Signs/Welcome Back Signs").queue_free() @@ -621,6 +625,14 @@ func set_gridmap_tile(x, y, z, tile): gridmap.set_cell_item(mapvec.x, mapvec.y, mapvec.z, mesh_library.find_item_by_name(tile)) +func clear_gridmap_tile(x, y, z): + var gridmap = self.get_node("GridMap") + var mesh_library = gridmap.mesh_library + var mapvec = gridmap.world_to_map(gridmap.to_local(Vector3(x, y, z))) + + gridmap.set_cell_item(mapvec.x, mapvec.y, mapvec.z, GridMap.INVALID_CELL_ITEM) + + func set_small_gridmap_tile(x, y, z, tile): var gridmap = self.get_node("GridMapSmall") var mesh_library = gridmap.mesh_library -- cgit 1.4.1