【山河社稷图】条件:5回合内打出8万伤害,如果我在第三回合打出7万伤害,第四回合直接秒杀怪物,面板总计造成12万伤害但是不给星星
parent
a1ba397b9c
commit
c8a8683be0
|
@ -33,12 +33,10 @@ local _ConditionConfig = {
|
||||||
local v2 = condition[2]
|
local v2 = condition[2]
|
||||||
local record = HardStageEventManager.GetRoundDamageRecord()
|
local record = HardStageEventManager.GetRoundDamageRecord()
|
||||||
if record then
|
if record then
|
||||||
for key, value in pairs(record) do
|
if record[v1] and record[v1] >= v2 then
|
||||||
if key<=v1 and value[2]>=v2 then
|
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
return 0
|
return 0
|
||||||
end,
|
end,
|
||||||
--使用指定[a]系神将[b]名
|
--使用指定[a]系神将[b]名
|
||||||
|
|
|
@ -82,20 +82,12 @@ function this.OnRecordDamage(atkRole,defRole,damage)
|
||||||
end
|
end
|
||||||
local curRound,maxRound=BattleLogic.GetCurRound()
|
local curRound,maxRound=BattleLogic.GetCurRound()
|
||||||
CurRound=curRound
|
CurRound=curRound
|
||||||
--如果进入下一回合,记录上一回合的伤害
|
|
||||||
if CurRound==recordRound+1 then
|
|
||||||
table.insert(recordRoundDamage,{recordRound,roundDamage})
|
|
||||||
recordRound=CurRound
|
|
||||||
end
|
|
||||||
roundDamage=roundDamage+damage
|
roundDamage=roundDamage+damage
|
||||||
|
recordRoundDamage[CurRound] = roundDamage
|
||||||
end
|
end
|
||||||
|
|
||||||
--获取回合伤害记录
|
--获取回合伤害记录
|
||||||
function this.GetRoundDamageRecord()
|
function this.GetRoundDamageRecord()
|
||||||
--如果一回合就结束战斗了,就直接把记录的回合数伤害加进去
|
|
||||||
if CurRound==1 then
|
|
||||||
table.insert(recordRoundDamage,{recordRound,roundDamage})
|
|
||||||
end
|
|
||||||
return recordRoundDamage
|
return recordRoundDamage
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue