Skip to content

Commit

Permalink
Make Heat Zone Damage Sound play if you have Gravity again
Browse files Browse the repository at this point in the history
  • Loading branch information
f-raZ0R authored Jan 26, 2025
1 parent 96e282a commit 29c2370
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/open_samus_returns_rando/files/custom/heatzone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function HeatZone.PlaySound()
end

function HeatZone.OnEnter()
if Game.GetPlayerInfo().iHeatZoneCount == 0 and Game.GetEntity("Samus").MODELUPDATER.sModelAlias == "Default" then
if Game.GetPlayerInfo().iHeatZoneCount == 0 and Game.GetVariaSuitOn() < 1 then
Game.AddSF(0.0, "HeatZone.PlaySound", "")
guicallbacks.OnPlayerContinuousDamageStart()
utils.LOG(utils.LOGTYPE_LOGIC, "heatzoneenter")
Expand All @@ -37,4 +37,4 @@ function HeatZone.OnExit()
elseif Game.GetPlayerInfo().iHeatZoneCount < 0 then
Game.GetPlayerInfo():ResetHeatZoneCount()
end
end
end

0 comments on commit 29c2370

Please sign in to comment.