修新的事件系统问题

This commit is contained in:
MrZ_26
2024-08-10 14:42:18 +08:00
parent 4d1caa7fe0
commit 8779abef9a
5 changed files with 48 additions and 52 deletions

View File

@@ -570,16 +570,6 @@ function applyCustomGame()-- Apply CUSTOMENV, BAG, MISSION
GAME.modeEnv.mission=nil
end
end
local defaultAttackRule={
extraEvent={
{'attack',4},
},
extraEventHandler={
attack=function(P,P2,...)
P:beAttacked(P2,...)
end,
},
}
function loadGame(mode,ifQuickPlay,ifNet)-- Load a mode and go to game scene
freshDate()
if legalGameTime() then
@@ -587,7 +577,6 @@ function loadGame(mode,ifQuickPlay,ifNet)-- Load a mode and go to game scene
MODES[mode]=require('parts.modes.'..mode)
MODES[mode].name=mode
end
TABLE.complete(defaultAttackRule,MODES[mode])
if MODES[mode].score then
STAT.lastPlay=mode
end