Formula

CommonFun.calcBoothMaxPendingCout

function CommonFun.calcBoothMaxPendingCout(srcUser)
  if srcUser == nil then
    return 0
  end
  local skilllv_1 = srcUser:GetLernedSkillLevel(278)
  local skilllv_2 = srcUser:GetLernedSkillLevel(1477)
  local basecount = 0
  if GameConfig.Booth ~= nil then
    basecount = GameConfig.Booth.base_pending_count
  end
  return basecount + skilllv_1 + skilllv_2
end