Formula

CommonFun.calcBuff_8060

function CommonFun.calcBuff_8060(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Str = srcUser:GetProperty("Str")
  local Int = srcUser:GetProperty("Int")
  local Dex = srcUser:GetProperty("Dex")
  local Agi = srcUser:GetProperty("Agi")
  local Vit = srcUser:GetProperty("Vit")
  local Luk = srcUser:GetProperty("Luk")
  local Fullcapacity = math.max(math.min(Str, Int, Dex, Agi, Vit, Luk), 0)
  local A = (math.floor(Fullcapacity / a) * b + d) / 100
  return A
end