mod系统初版(三个mod未完成)

This commit is contained in:
MrZ626
2020-11-21 20:20:48 +08:00
parent c38ef7c487
commit 046d173090
12 changed files with 401 additions and 143 deletions

View File

@@ -433,6 +433,13 @@ function loadGame(M,ifQuickPlay)
STAT.lastPlay=M
GAME.curMode=MODES[M]
GAME.modeEnv=GAME.curMode.env
GAME.unranked=false
for _,mod in next,MODOPT do
if mod.sel>0 and mod.unranked then
GAME.unranked=true
end
end
print(GAME.unranked)
drawableText.modeName:set(text.modes[M][1])
drawableText.levelName:set(text.modes[M][2])
GAME.init=true