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