Skip to content

Commit

Permalink
DisableTrigger
Browse files Browse the repository at this point in the history
  • Loading branch information
dyceron committed Apr 14, 2024
1 parent 19befe8 commit 6950b75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/open_samus_returns_rando/files/levels/s000_surface.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function s000_surface.InitFromBlackboard()
Game.SaturateSpawnGroup("SpawnGroup008")
end
if Scenario.ReadFromBlackboard("AlphaIntroPlayed", false) then
Game.DisableEntity("TG_Intro_Alpha")
Game.DisableTrigger("TG_Intro_Alpha")
end
-- if not Blackboard.GetProp("DEFEATED_ENEMIES", "Queen") or not (Blackboard.GetProp("DEFEATED_ENEMIES", "Queen") > 0) then
Game.DisableEntity("LE_Queen_Door")
Expand Down Expand Up @@ -524,7 +524,6 @@ function s000_surface.LaunchMeleeTutoCutscene()
end
function s000_surface.OnDnaAbsorbAnimation()
Game.SetInGameMusicState("DEATH")
Game.DisableEntity("TG_Intro_Alpha")
Scenario.WriteToBlackboard("alpha_killed", "b", true)
end
function s000_surface.OnMeleeTutoButtonPressed()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function Metroid.RemoveMetroid(_ARG_0_)
end
Game.SetInGameMusicState("RELAX")
if scenario == "s000_surface" then
Game.DisableEntity("TG_Intro_Alpha")
Game.DisableTrigger("TG_Intro_Alpha")
Scenario.WriteToBlackboard("alpha_killed", "b", true)
end
Game.SaveGame("checkpoint", "AfterNewAbilityAcquired", "", true)
Expand Down

0 comments on commit 6950b75

Please sign in to comment.