战斗提交
parent
ed20d889cb
commit
c946d3d106
|
@ -20,7 +20,7 @@ local propertyList = {
|
|||
RoleDataName.CritDamageFactor,
|
||||
RoleDataName.TreatFacter,
|
||||
RoleDataName.MaxHp,
|
||||
RoleDataName.MaxHp,
|
||||
RoleDataName.Hp,
|
||||
RoleDataName.CureFacter,
|
||||
RoleDataName.Tenacity,
|
||||
}
|
||||
|
@ -837,5 +837,36 @@ local passivityList = {
|
|||
role.data:SubPencentValue(propertyList[pro], f1)
|
||||
end
|
||||
end,
|
||||
|
||||
--战斗中,[c]改变[a]属性[b],[f]改变[d]属性[e]。
|
||||
--a[属性],b[float],c[改变类型],d[属性],e[float],f[改变类型]
|
||||
[48] = function(role, args)
|
||||
local pro = args[1]
|
||||
local f1 = args[2]
|
||||
local ct = args[3]
|
||||
local pro2 = args[4]
|
||||
local f2 = args[5]
|
||||
local ct2 = args[6]
|
||||
|
||||
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
|
||||
|
||||
if ct2 == 1 then --加算
|
||||
role.data:AddValue(propertyList[pro2], f2)
|
||||
elseif ct2 == 2 then --乘加算(百分比属性加算)
|
||||
role.data:AddPencentValue(propertyList[pro2], f2)
|
||||
elseif ct2 == 3 then --减算
|
||||
role.data:SubValue(propertyList[pro2], f2)
|
||||
elseif ct2 == 4 then --乘减算(百分比属性减算)
|
||||
role.data:SubPencentValue(propertyList[pro2], f2)
|
||||
end
|
||||
end,
|
||||
}
|
||||
return passivityList
|
Loading…
Reference in New Issue