允许运行中加载模式文件(仅限不在地图上的,故目前只用于彩蛋模式)

移除所有隐藏模式的名称翻译,只认内部名
This commit is contained in:
MrZ626
2021-10-12 01:59:42 +08:00
parent 993866ab5b
commit 6868d53224
12 changed files with 30 additions and 128 deletions

View File

@@ -312,6 +312,10 @@ end
function loadGame(mode,ifQuickPlay,ifNet)--Load a mode and go to game scene
freshDate()
if legalGameTime()then
if not MODES[mode]and love.filesystem.getRealDirectory('parts/modes/'..mode)~=SAVEDIR then
MODES[mode]=require('parts.modes.'..mode)
MODES[mode].name=mode
end
if MODES[mode].score then
STAT.lastPlay=mode
end