CommonFun

CommonFun.calcAttrBlindRate

Dataset · 20251127_update

Formula Source

function CommonFun.calcAttrBlindRate(srcUser, targetUser)
  local Int = srcUser:GetProperty("Int")
  local Vit = targetUser:GetProperty("Vit")
  local Int2 = targetUser:GetProperty("Int")
  local A = math.min(0.8, Int * 0.3 / 100)
  local B = math.min(1, (Vit * 0.2 + Int2 * 0.2) / 100)
  local Rate = 1 + A - B
  if Rate <= 0 then
    Rate = 0
  end
  return Rate
end
No formula links

Version History

Loading dependencies...
Loading usage...