Skip to content

Commit

Permalink
Set defaults for Missile/Power Bomb Launcher when increase not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
UltiNaruto committed Sep 17, 2024
1 parent 74801f5 commit 0f8b363
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/patches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2499,8 +2499,10 @@ fn patch_add_item<'r>(
0
} else if pickup_config.curr_increase.is_some() {
pickup_config.curr_increase.unwrap()
} else if pickup_type == PickupType::Missile {
} else if [PickupType::Missile, PickupType::MissileLauncher].contains(&pickup_type) {
5
} else if pickup_type == PickupType::PowerBombLauncher {
4
} else if pickup_type == PickupType::HealthRefill {
50
} else {
Expand Down Expand Up @@ -4636,8 +4638,10 @@ fn update_pickup(
0
} else if pickup_config.curr_increase.is_some() {
pickup_config.curr_increase.unwrap()
} else if pickup_type == PickupType::Missile {
} else if [PickupType::Missile, PickupType::MissileLauncher].contains(&pickup_type) {
5
} else if pickup_type == PickupType::PowerBombLauncher {
4
} else if pickup_type == PickupType::HealthRefill {
50
} else {
Expand Down

0 comments on commit 0f8b363

Please sign in to comment.