Formula

CommonFun.calcEquipStrengthCost

function CommonFun.calcEquipStrengthCost(site, lv)
  local qparam = 3.2
  local tparam = GameConfig.StrengthCost.Type[site]
  if qparam == nil or tparam == nil then
    return 0
  end
  local a1 = lv % 10
  local b1 = GameConfig.StrengthCost.Remainder[a1]
  local a2 = math.floor(lv / 10)
  local b2 = GameConfig.StrengthCost.Quotient[a2]
  local result = GameConfig.StrengthCost.BaseCost * b1 * b2 * qparam * tparam
  result = result - result % 10
  return result
end