Skip to content

Commit

Permalink
Merge pull request #405 from randovania/ra8-metroid-count
Browse files Browse the repository at this point in the history
Increment Metroid count if going through A8 Backwards
  • Loading branch information
ThanatosGit authored Jul 10, 2024
2 parents 2e66614 + bcc3405 commit e6035ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/open_samus_returns_rando/files/levels/s100_area10.lua
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ end
function s100_area10.OnMetroidDead()
-- Disable the intro and the camera change triggers if a Metroid has been defeated, which means that Reverse Area 8 should be enabled
Game.DisableTrigger("TG_Intro_Larva")
-- If going backwards, increment the Metroid counter on the first Metroid death only
if Blackboard.GetProp("DEFEATED_ENEMIES", "Metroid") == 1 and s100_area10.iMetroidTotalCountIncrements == 0 then
Game.AddSF(0.15, "s100_area10.IncrementMetroidTotalCount", "")
end
if Game.GetEntity("TG_ChangeCamera_IntroLarva") ~= nil then
Game.GetEntity("TG_ChangeCamera_IntroLarva").TRIGGER:DisableTrigger()
end
Expand Down

0 comments on commit e6035ca

Please sign in to comment.