提取自定义游戏加载用函数

This commit is contained in:
MrZ626
2020-12-08 13:57:38 +08:00
parent 62a039b672
commit d018265175
3 changed files with 18 additions and 31 deletions

View File

@@ -446,6 +446,21 @@ end
function resumeGame()
SCN.swapTo("play","none")
end
function applyCustomGame()
for k,v in next,CUSTOMENV do
GAME.modeEnv[k]=v
end
if BAG[1]then
GAME.modeEnv.bag=BAG
else
GAME.modeEnv.bag=nil
end
if MISSION[1]then
GAME.modeEnv.mission=MISSION
else
GAME.modeEnv.mission=nil
end
end
function loadGame(M,ifQuickPlay)
freshDate()
if legalGameTime()then