diff --git a/src/open_samus_returns_rando/files/pickups/randomizerreservetanka.lua b/src/open_samus_returns_rando/files/pickups/randomizerreservetanka.lua index 6b341f3..c5d7409 100644 --- a/src/open_samus_returns_rando/files/pickups/randomizerreservetanka.lua +++ b/src/open_samus_returns_rando/files/pickups/randomizerreservetanka.lua @@ -7,6 +7,7 @@ function RandomizerReserveTankA.OnPickedUp(progression) RandomizerPowerup.OnPickedUp(progression) Blackboard.SetProp("GAME", "ITEM_RESERVE_TANK_SPECIAL_ENERGY_ACTIVE", "b", true) Blackboard.SetProp("GAME", "ITEM_RESERVE_TANK_SPECIAL_ENERGY_FULL", "b", true) - Game.AddSF(0.0, "Game.HUDIdleScreenGo", "") - Game.AddSF(0.5, "Game.HUDIdleScreenLeave", "") + local reserve = GUI.GetDisplayObject("IngameMenuRoot.IngameMenuComposition.UpperComposition.StatusComposition.ReserveTankS") + GUI.SetProperties(reserve, { Enabled = true }) + Game.GetPlayerInfo():FillSpecialEnergyReserveTank() end \ No newline at end of file diff --git a/src/open_samus_returns_rando/files/pickups/randomizerreservetanke.lua b/src/open_samus_returns_rando/files/pickups/randomizerreservetanke.lua index 799422d..f5fcf6b 100644 --- a/src/open_samus_returns_rando/files/pickups/randomizerreservetanke.lua +++ b/src/open_samus_returns_rando/files/pickups/randomizerreservetanke.lua @@ -7,6 +7,7 @@ function RandomizerReserveTankE.OnPickedUp(progression) RandomizerPowerup.OnPickedUp(progression) Blackboard.SetProp("GAME", "ITEM_RESERVE_TANK_LIFE_ACTIVE", "b", true) Blackboard.SetProp("GAME", "ITEM_RESERVE_TANK_LIFE_FULL", "b", true) - Game.AddSF(0.0, "Game.HUDIdleScreenGo", "") - Game.AddSF(0.5, "Game.HUDIdleScreenLeave", "") + local reserve = GUI.GetDisplayObject("IngameMenuRoot.IngameMenuComposition.UpperComposition.StatusComposition.ReserveTankE") + GUI.SetProperties(reserve, { Enabled = true }) + Game.GetPlayerInfo():FillLifeReserveTank() end diff --git a/src/open_samus_returns_rando/files/templates/randomizerpowerup.lua b/src/open_samus_returns_rando/files/templates/randomizerpowerup.lua index 844a7a5..9131ea9 100644 --- a/src/open_samus_returns_rando/files/templates/randomizerpowerup.lua +++ b/src/open_samus_returns_rando/files/templates/randomizerpowerup.lua @@ -153,6 +153,7 @@ end function RandomizerPowerup.EnableMissileReserveTank() Blackboard.SetProp("GAME", "ITEM_RESERVE_TANK_MISSILE_ACTIVE", "b", true) Blackboard.SetProp("GAME", "ITEM_RESERVE_TANK_MISSILE_FULL", "b", true) - Game.AddSF(0.0, "Game.HUDIdleScreenGo", "") - Game.AddSF(0.5, "Game.HUDIdleScreenLeave", "") + local reserve = GUI.GetDisplayObject("IngameMenuRoot.IngameMenuComposition.UpperComposition.StatusComposition.ReserveTankM") + GUI.SetProperties(reserve, { Enabled = true }) + Game.GetPlayerInfo():FillMissileReserveTank() end