Skip to content

Commit

Permalink
Last conditional fix 😛
Browse files Browse the repository at this point in the history
  • Loading branch information
dyceron committed Dec 28, 2023
1 parent 75001e6 commit 280a191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/open_samus_returns_rando/files/levels/s070_area7.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 280a191

Please sign in to comment.