Skip to content

Commit b08c277

Browse files
authored
Merge pull request #408 from randovania/credits-item
Store a variable to indicate when game was beaten
2 parents e871263 + 9a41278 commit b08c277

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/open_dread_rando/files/levels/s080_shipyard.lc.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,8 @@ function s080_shipyard.OnEnter_trigger_EndGame(_ARG_0_, _ARG_1_)
417417

418418
local oActor2 = Game.GetActor("cutsceneplayer_112")
419419
if oActor2 ~= nil then
420+
Init.bBeatenSinceLastReboot = true
421+
RL.UpdateRDVClient(false)
420422
oActor2.CUTSCENE:LaunchCutsceneImmediate()
421423
end
422424
end

src/open_dread_rando/files/templates/custom_init.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Game.ImportLibrary("system/scripts/init_original.lua")
33
local initOk, errorMsg = pcall(function()
44

55
RemoteLua = RemoteLua or {
6-
-- defined by exlaunch
6+
-- defined by open-dread-rando-exlaunch
7+
-- Somewhere around here: https://github.com/randovania/open-dread-rando-exlaunch/blob/main/source/program/main.cpp#L264
78
Init = function() end,
89
Update = function() end,
910
SendLog = function(message) end,
@@ -74,6 +75,7 @@ Init.sLayoutUUID = TEMPLATE("layout_uuid")
7475
Init.tMaxGameProgressStats = {
7576
NumTanksPickedUp = 149
7677
}
78+
Init.bBeatenSinceLastReboot = false
7779

7880
local preViewedCutscenes = {
7981
"CutScenePlayed[cutscenes/0001gameintro_arrivalatrium/0001gameintro_arrivalatrium.bmscu]",

0 commit comments

Comments
 (0)