Formula

CommonFun.calcAttrStoneRate

formula.lua
1function CommonFun.calcAttrStoneRate(srcUser, targetUser)
2  local Int = srcUser:GetProperty("Int")
3  local Int2 = targetUser:GetProperty("Int")
4  local Dex = targetUser:GetProperty("Dex")
5  local A = math.min(0.6, Int * 0.2 / 100)
6  local B = math.min(1, (Int2 * 0.2 + Dex * 0.2) / 100)
7  local Rate = 1 + A - B
8  if Rate <= 0 then
9    Rate = 0
10  end
11  return Rate
12end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.calcAttrStoneRate

commonfun-calcattrstonerate

Nodes

0

Edges

0

Related Nodes

Select at least one node type.