From 280a191198613c5b282dd8c092f3a50ec7650362 Mon Sep 17 00:00:00 2001 From: dyceron Date: Wed, 27 Dec 2023 21:10:15 -0500 Subject: [PATCH] Last conditional fix :stuck_out_tongue: --- src/open_samus_returns_rando/files/levels/s070_area7.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/open_samus_returns_rando/files/levels/s070_area7.lua b/src/open_samus_returns_rando/files/levels/s070_area7.lua index 445477de..a041cdd1 100644 --- a/src/open_samus_returns_rando/files/levels/s070_area7.lua +++ b/src/open_samus_returns_rando/files/levels/s070_area7.lua @@ -896,8 +896,8 @@ function s070_area7.OnStartManicMinerBotDeathCutscene() Game.AddEntityToUpdateInCutscene("LE_ManicMinerWall") Game.AddEntityToUpdateInCutscene("LE_PowerUp_Powerbomb") Scenario.WriteToBlackboard("manicMinerDead", "b", true) - if PBLauncher > 0 then - Game.SetItemAmount(Game.GetPlayerName(), "ITEM_WEAPON_POWER_BOMB", PBLauncher) + if PBLauncher + Game.GetItemAmount(Game.GetPlayerName(), "ITEM_WEAPON_POWER_BOMB") > 0 then + Game.SetItemAmount(Game.GetPlayerName(), "ITEM_WEAPON_POWER_BOMB", 1) Game.SetItemAmount(Game.GetPlayerName(), "ITEM_WEAPON_POWER_BOMB_MAX", "ITEM_POWER_BOMB_TANKS") Game.SetItemAmount(Game.GetPlayerName(), "ITEM_POWER_BOMB_TANKS", 0) end