battlemain修改
parent
4320ed3650
commit
331e8849ff
|
@ -212,7 +212,7 @@ function BattleMain.Execute(args, fightData, optionData)
|
||||||
local errorCache
|
local errorCache
|
||||||
if xpcall(function ()
|
if xpcall(function ()
|
||||||
Random.SetSeed(args.seed)
|
Random.SetSeed(args.seed)
|
||||||
BattleLogic.Init(args.maxTime, fightData, optionData)
|
BattleLogic.Init(fightData, optionData)
|
||||||
BattleLogic.Type = _type
|
BattleLogic.Type = _type
|
||||||
if _type == 9 or _type == 10 then
|
if _type == 9 or _type == 10 then
|
||||||
AddRecord(fightData)
|
AddRecord(fightData)
|
||||||
|
@ -249,7 +249,8 @@ function BattleMain.Execute(args, fightData, optionData)
|
||||||
-- print("hp:"..resultList[i])
|
-- print("hp:"..resultList[i])
|
||||||
--end
|
--end
|
||||||
--print("最终运行帧数:"..BattleLogic.CurFrame())
|
--print("最终运行帧数:"..BattleLogic.CurFrame())
|
||||||
if BattleLogic.CurFrame() > BattleLogic.GameFrameRate * args.maxTime and _type == 9 then
|
local curRound, maxRound = BattleLogic.GetCurRound()
|
||||||
|
if curRound > maxRound and _type == 9 then
|
||||||
local playerDamage=0
|
local playerDamage=0
|
||||||
local enemyDamage=0
|
local enemyDamage=0
|
||||||
for k,v in pairs(BattleRecord)do
|
for k,v in pairs(BattleRecord)do
|
||||||
|
|
Loading…
Reference in New Issue