Final push

This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-01-02 19:02:43 +07:00
parent 478eb0774f
commit b3ca43fa69
7 changed files with 48 additions and 15 deletions

View File

@@ -593,7 +593,8 @@ function loadGame(mode,ifQuickPlay,ifNet)-- Load a mode and go to game scene
end
end
end
function gameOver()-- Save record
function gameOver()
-- Save record
if GAME.replaying then
local R=GAME.curMode.getRank
if R then
@@ -665,6 +666,14 @@ function gameOver()-- Save record
end
end
end
-- Kill mod patching function
if GAME.ApplyModsTask then
TASK.removeTask_code(GAME.ApplyModsTask)
TABLE.cut(GAME.modCodeList)
GAME.modCodeList=nil
GAME.ApplyModsTask=nil
end
end
function trySave()
if not GAME.statSaved and PLAYERS[1] and PLAYERS[1].type=='human' and (PLAYERS[1].frameRun>300 or GAME.result) then