Skip to content

Commit

Permalink
Cleanup conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
dyceron authored Feb 21, 2024
1 parent c26c058 commit 05d195d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/open_samus_returns_rando/files/templates/custom_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ function Init.InitGameBlackboard()
Blackboard.SetProp("PLAYER_INVENTORY", "ITEM_ADN", "f", current_amount + 1)
end
if string.sub(_FORV_3_, 1, 17) == "ITEM_RESERVE_TANK" then
if _FORV_3_ == "ITEM_RESERVE_TANK_MISSILE" and Blackboard.GetProp("PLAYER_INVENTORY", "ITEM_WEAPON_MISSILE_LAUNCHER") then
Blackboard.SetProp("GAME", "ITEM_RESERVE_TANK_MISSILE_ACTIVE", "b", true)
Blackboard.SetProp("GAME", "ITEM_RESERVE_TANK_MISSILE_FULL", "b", true)
elseif _FORV_3_ ~= "ITEM_RESERVE_TANK_MISSILE" then
if (_FORV_3_ == "ITEM_RESERVE_TANK_MISSILE" and Blackboard.GetProp("PLAYER_INVENTORY", "ITEM_WEAPON_MISSILE_LAUNCHER")) or _FORV_3_ ~= "ITEM_RESERVE_TANK_MISSILE" then
Blackboard.SetProp("GAME", _FORV_3_ .. "_ACTIVE", "b", true)
Blackboard.SetProp("GAME", _FORV_3_ .. "_FULL", "b", true)
end
Expand Down Expand Up @@ -98,4 +95,4 @@ Game.SetForceSkipCutscenes(true)
-- "s100_area10",
-- "s110_surfaceb",
-- }
-- NextScenario = 1
-- NextScenario = 1

0 comments on commit 05d195d

Please sign in to comment.