战斗同步
parent
fad68b0002
commit
2b6c6496a7
|
@ -1487,5 +1487,25 @@ local passivityList = {
|
|||
end
|
||||
BattleLogic.Event:AddEvent(BattleEventName.BattleOrderEnd, OnEnd)
|
||||
end,
|
||||
--战斗中,若自己是[a],[d]改变[b]属性[c]。-- 2020/3/6 高鑫
|
||||
--a[元素],b[属性],c[float],d[改变类型]
|
||||
[80] = function(role, args)
|
||||
local i1 = args[1]
|
||||
local pro = args[2]
|
||||
local f1 = args[3]
|
||||
local ct = args[4]
|
||||
|
||||
if role.roleData.element == i1 then
|
||||
if ct == 1 then --加算
|
||||
role.data:AddValue(propertyList[pro], f1)
|
||||
elseif ct == 2 then --乘加算(百分比属性加算)
|
||||
role.data:AddPencentValue(propertyList[pro], f1)
|
||||
elseif ct == 3 then --减算
|
||||
role.data:SubValue(propertyList[pro], f1)
|
||||
elseif ct == 4 then --乘减算(百分比属性减算)
|
||||
role.data:SubPencentValue(propertyList[pro], f1)
|
||||
end
|
||||
end
|
||||
end,
|
||||
}
|
||||
return passivityList
|
Loading…
Reference in New Issue