From 8c5ef677f690f1c41261fbcdfc0318bf726a4dd8 Mon Sep 17 00:00:00 2001 From: toasterparty Date: Sat, 10 Aug 2024 13:12:46 -0700 Subject: [PATCH] Fix reverse frigate granting pre-floaty --- src/patches.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/patches.rs b/src/patches.rs index f985920b..dd01f295 100644 --- a/src/patches.rs +++ b/src/patches.rs @@ -8796,6 +8796,24 @@ fn patch_purge_debris_extended( Ok(()) } +fn patch_reshape_biotech_water( + _ps: &mut PatcherState, + area: &mut mlvl_wrapper::MlvlArea, +) -> Result<(), String> { + let scly = area.mrea().scly_section_mut(); + let layer = &mut scly.layers.as_mut_vec()[0]; + let objects = layer.objects.as_mut_vec(); + let obj = objects + .iter_mut() + .find(|obj| obj.instance_id == 0x00200011) + .expect("Couldn't find biotech research area 1 water"); + let water = obj.property_data.as_water_mut().unwrap(); + water.position = [-62.0382, 219.6796, -38.5024].into(); + water.scale = [59.062996, 72.790009, 98.012009].into(); + + Ok(()) +} + fn patch_fix_deck_beta_security_hall_crash( _ps: &mut PatcherState, area: &mut mlvl_wrapper::MlvlArea, @@ -14263,6 +14281,10 @@ fn patch_qol_game_breaking( resource_info!("05_under_intro_zoo.MREA").into(), patch_purge_debris_extended, ); + patcher.add_scly_patch( + resource_info!("05_under_intro_specimen_chamber.MREA").into(), + patch_reshape_biotech_water, + ); patcher.add_scly_patch( resource_info!("00p_mines_connect.MREA").into(), patch_fix_pca_crash,