Formula

CommonFun.calcBuff_3010

formula.lua
1function CommonFun.calcBuff_3010(srcUser, targetUser, a, b, c, d, lv)
2  if srcUser == nil or targetUser == nil then
3    return 0
4  end
5  local Dex = srcUser:GetProperty("Dex")
6  local Vit = targetUser:GetProperty("Vit")
7  local Dex2 = targetUser:GetProperty("Dex")
8  local m = math.min(0.3, Dex * 0.2 / 100)
9  local n = math.min(1, (Vit * 0.4 + Dex2 * 0.4) / 100)
10  local Time = 1 + m - n
11  if Time <= 0 then
12    Time = 0
13  end
14  local A = (lv * a + b) * Time
15  if A <= 0 then
16    return 0
17  end
18  return A
19end
Formula Graph

Connected Archive Data

See which cards, equipment, headwears, buffs, and other archived records connect to this formula.

Loading graph filters

CommonFun.calcBuff_3010

commonfun-calcbuff_301

Nodes

0

Edges

0

Related Nodes

Select at least one node type.