Skip to content

Commit

Permalink
Revert "Improved Gravity Chamber Stalactite grapple point patch (#61)"
Browse files Browse the repository at this point in the history
This reverts commit f99e09a.
  • Loading branch information
toasterparty committed Feb 28, 2024
1 parent 7b125e4 commit 892dd36
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/patches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8605,17 +8605,8 @@ fn patch_gravity_chamber_stalactite_grapple_point<'r>(_ps: &mut PatcherState, ar
let scly = area.mrea().scly_section_mut();
let layer = &mut scly.layers.as_mut_vec()[0];

// Enable grapple point when detecting grapple beam
layer.objects.as_mut_vec().iter_mut()
.find(|obj| obj.instance_id & 0x00FFFFFF == 0x00350127)
.unwrap().connections.as_mut_vec()
.push(
structs::Connection {
target_object_id: 0x00350123,
state: structs::ConnectionState::ZERO,
message: structs::ConnectionMsg::ACTIVATE,
}
);
// Remove the object that turns off the stalactites layer
layer.objects.as_mut_vec().retain(|obj| obj.instance_id != 3473722);

Ok(())
}
Expand Down

0 comments on commit 892dd36

Please sign in to comment.