Formula

CommonFun.calcBuff_8490

function CommonFun.calcBuff_8490(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local SecretLandGemLv = srcUser:GetSecretLandGemLv(a)
  local A = 0
  A = SecretLandGemLv * 100 + math.max(SecretLandGemLv - 30, 0) * 100 + math.max(SecretLandGemLv - 50, 0) * 100
  A = A + math.max(SecretLandGemLv - 60, 0) * 100 + math.max(SecretLandGemLv - 70, 0) * 200
  A = A + math.max(SecretLandGemLv - 80, 0) * 200 + math.max(SecretLandGemLv - 90, 0) * 400
  return A
end