【战斗】添加超时检测
parent
0548b16015
commit
2331c8d013
|
@ -345,6 +345,12 @@ end
|
|||
|
||||
function BattleLogic.Update()
|
||||
curFrame = curFrame + 1
|
||||
-- 强制退出
|
||||
if curFrame > BattleMaxFrame then
|
||||
assert(false, "Battle Time Out !!!")
|
||||
BattleLogic.BattleEnd(-1)
|
||||
return
|
||||
end
|
||||
local roleResult = RoleManager.GetResult()
|
||||
if roleResult == 0 then
|
||||
BattleLogic.BattleEnd(0)
|
||||
|
|
|
@ -129,6 +129,9 @@ BattleEventName = {
|
|||
ShowHintText = indexAdd(),
|
||||
}
|
||||
|
||||
BattleMaxFrame = 1000000
|
||||
|
||||
|
||||
index = 0
|
||||
RoleDataName = {
|
||||
Level = indexAdd(), --等级
|
||||
|
|
Loading…
Reference in New Issue