战斗同步

back_recharge
lvxinran 2020-03-08 18:28:09 +08:00
parent fad68b0002
commit 2b6c6496a7
1 changed files with 20 additions and 0 deletions

View File

@ -1487,5 +1487,25 @@ local passivityList = {
end end
BattleLogic.Event:AddEvent(BattleEventName.BattleOrderEnd, OnEnd) BattleLogic.Event:AddEvent(BattleEventName.BattleOrderEnd, OnEnd)
end, 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 return passivityList