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 145604e commit 9d5a68e
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 @@ -2520,8 +2520,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 @@ -4657,8 +4659,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 9d5a68e

Please sign in to comment.