CommonFun

CommonFun.calcArtifactMaterialItemCount

Dataset · 20251127_update

Formula Source

function CommonFun.calcArtifactMaterialItemCount(type, num, count)
  if type == 1 then
    return num
  elseif type == 2 then
    if count == 0 then
      return num
    elseif count == 1 then
      return num
    elseif count == 2 then
      return math.ceil(num * 1.5)
    else
      return num * 2
    end
  elseif count == 0 then
    return num
  elseif count == 1 then
    return num
  elseif count == 2 then
    return math.ceil(num * 1.5)
  else
    return num * 2
  end
end
No formula links

Version History

Loading dependencies...
Loading usage...