Formula

CommonFun.calcAttrSilenceRate

formula.lua
1function CommonFun.calcAttrSilenceRate(srcUser, targetUser)
2  local Dex = srcUser:GetProperty("Dex")
3  local Vit = targetUser:GetProperty("Vit")
4  local Str = targetUser:GetProperty("Str")
5  local A = math.min(1, Dex * 0.3 / 100)
6  local B = math.min(1, (Vit * 0.3 + Str * 0.3) / 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.calcAttrSilenceRate

commonfun-calcattrsilencerate

Nodes

0

Edges

0

Related Nodes

Select at least one node type.