Formula

CommonFun.calcArtifactMaterialItemCount

formula.lua
1function CommonFun.calcArtifactMaterialItemCount(type, num, count)
2  if type == 1 then
3    return num
4  elseif type == 2 then
5    if count == 0 then
6      return num
7    elseif count == 1 then
8      return num
9    elseif count == 2 then
10      return math.ceil(num * 1.5)
11    else
12      return num * 2
13    end
14  elseif count == 0 then
15    return num
16  elseif count == 1 then
17    return num
18  elseif count == 2 then
19    return math.ceil(num * 1.5)
20  else
21    return num * 2
22  end
23end
Formula Graph

Connected Archive Data

See which cards, equipment, headwears, buffs, and other archived records connect to this formula.

Loading graph filters

CommonFun.calcArtifactMaterialItemCount

commonfun-calcartifactmaterialitemcount

Nodes

0

Edges

0

Related Nodes

Select at least one node type.