[战斗]=============272被动修改 根据配置回合数开始计算概率
parent
74ebe19f74
commit
130a7d6548
|
@ -5844,16 +5844,19 @@ local passivityList = {
|
|||
end
|
||||
role.Event:AddEvent(BattleEventName.PassiveBeDamaging, onPassiveBeDamaging)
|
||||
end,
|
||||
-- 战斗第回合概率无敌,回合数每增加1,概率是之前的[a]
|
||||
-- a[float]
|
||||
-- 战斗第[a]回合开始概率无敌,回合数每增加1,概率是之前的[b]
|
||||
-- a[int] b[float]
|
||||
[272] = function(role, args)
|
||||
local i1 = args[1]
|
||||
local p1 =args[2]
|
||||
local buff=nil
|
||||
local isTrigger=true
|
||||
BattleLogic.Event:AddEvent(BattleEventName.BattleRoundChange, function(curRound)
|
||||
local pro=0
|
||||
if curRound>0 then
|
||||
pro=i1^(curRound-1)
|
||||
if curRound>i1 then
|
||||
pro=p1^(curRound-i1)
|
||||
else
|
||||
pro=1
|
||||
end
|
||||
if isTrigger then
|
||||
local isAdd=BattleUtil.RandomAction(pro, function ()
|
||||
|
|
Loading…
Reference in New Issue