Skip to content

Commit

Permalink
Merge pull request #233 from randovania/fix-rando-id
Browse files Browse the repository at this point in the history
Disable Idle Screen if rando id doesnt match
  • Loading branch information
ThanatosGit authored Dec 23, 2023
2 parents a9c302f + fdab16e commit 7c57236
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/open_samus_returns_rando/files/custom_scenario.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ function Scenario.UpdateDNACounter()
local scenario = Init.tScenarioMapping[Scenario.CurrentScenarioID]
local maxDNA = Init.tDNAPerArea[scenario] or 0
local currentDNA = Blackboard.GetProp("GAME", scenario .."_acquired_dna") or 0

GUILib.UpdateDNACounter(currentDNA, maxDNA)
end

Expand Down Expand Up @@ -102,15 +101,16 @@ end
local fatal_messages_seen = 0
local fatal_messages
function Scenario._ShowNextFatalErrorMessage()
fatal_messages_seen = fatal_messages_seen + 1
if fatal_messages_seen > #fatal_messages then
Scenario.FadeOutAndGoToMainMenu(0.3)
return
end
GUI.LaunchMessage(fatal_messages[fatal_messages_seen], "Scenario._ShowNextFatalErrorMessage", "")
fatal_messages_seen = fatal_messages_seen + 1
if fatal_messages_seen > #fatal_messages then
Scenario.FadeOutAndGoToMainMenu(0.3)
return
end
GUI.LaunchMessage(fatal_messages[fatal_messages_seen], "Scenario._ShowNextFatalErrorMessage", "")
end
function Scenario.ShowFatalErrorMessage(messageBoxes)
fatal_messages_seen = 0
fatal_messages = messageBoxes
Game.AddSF(0.8, Scenario._ShowNextFatalErrorMessage, "")
Game.HUDIdleScreenLeave()
fatal_messages_seen = 0
fatal_messages = messageBoxes
Game.AddSF(0.8, Scenario._ShowNextFatalErrorMessage, "")
end

0 comments on commit 7c57236

Please sign in to comment.