战斗更新

back_recharge
mashiyu 2019-03-28 11:56:26 +08:00
parent 7471064777
commit 3676c49c2b
1 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,8 @@ BattleLogic.TotalOrder = 0
--当前波次
BattleLogic.CurOrder = 0
local maxFrame = BattleLogic.GameFrameRate * 300 --战斗最大用时5分钟超时判负
local actionPool = BattleObjectPool.New(function ()
return { 0, 0 }
end)
@ -317,6 +319,10 @@ local tmpObj, index, bMyAllDead, bEnemyAllDead
function BattleLogic.Update()
curFrame = curFrame + 1
if curFrame > maxFrame then
BattleLogic.BattleEnd(0)
return
end
for i=1, #optionRecord do
if optionRecord[i][1] == curFrame then