Formula

CommonFun.calcBuff_2441

formula.lua
1function CommonFun.calcBuff_2441(srcUser, targetUser, a, b, c, d, lv)
2  if srcUser == nil or targetUser == nil then
3    return 0
4  end
5  local Rate = 20
6  local skilllv_1 = 10
7  local skilllv_2 = 10
8  local Luk = srcUser:GetProperty("Luk")
9  local Dex = srcUser:GetProperty("Dex")
10  if 0 < skilllv_1 then
11    Rate = 5 + math.min(10 + 5 * skilllv_1, (Luk + Dex) / 5) / 4
12  end
13  local pos = 0
14  if CommonFun.IsInRate(Rate, srcUser:GetRandom()) then
15    pos = 7
16    if 0 < skilllv_2 and CommonFun.IsInRate(skilllv_2 * 10, srcUser:GetRandom()) then
17      pos = 107
18    end
19  end
20  return pos
21end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.calcBuff_2441

commonfun-calcbuff_2441

Nodes

0

Edges

0

Related Nodes

Select at least one node type.