From 0f8b3636b126d0d7bac1351fbed13437b7d9f01f Mon Sep 17 00:00:00 2001 From: UltiNaruto Date: Tue, 17 Sep 2024 16:58:01 +0200 Subject: [PATCH] Set defaults for Missile/Power Bomb Launcher when increase not specified --- src/patches.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/patches.rs b/src/patches.rs index f3c5f7f6..c39373f5 100644 --- a/src/patches.rs +++ b/src/patches.rs @@ -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 { @@ -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 {