Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increment Metroid count if going through A8 Backwards #405

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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