From 05d195dd0a56500ab5e9b913e6ef2bd693f29f0f Mon Sep 17 00:00:00 2001 From: dyceron <38679103+dyceron@users.noreply.github.com> Date: Wed, 21 Feb 2024 06:49:27 -0500 Subject: [PATCH] Cleanup conditional --- .../files/templates/custom_init.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/open_samus_returns_rando/files/templates/custom_init.lua b/src/open_samus_returns_rando/files/templates/custom_init.lua index b116f89..df6f15a 100644 --- a/src/open_samus_returns_rando/files/templates/custom_init.lua +++ b/src/open_samus_returns_rando/files/templates/custom_init.lua @@ -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 @@ -98,4 +95,4 @@ Game.SetForceSkipCutscenes(true) -- "s100_area10", -- "s110_surfaceb", -- } --- NextScenario = 1 \ No newline at end of file +-- NextScenario = 1