Formula

CommonFun.CalcCrackEquipRefineLv

formula.lua
1function CommonFun.CalcCrackEquipRefineLv()
2  local a = {
3    [0] = 3000,
4    [1] = 1500,
5    [2] = 1500,
6    [3] = 1200,
7    [4] = 1000,
8    [5] = 850,
9    [6] = 550,
10    [7] = 265,
11    [8] = 100,
12    [9] = 25,
13    [10] = 10
14  }
15  local weight = 0
16  for k, v in pairs(a) do
17    weight = weight + v
18    a[k] = weight
19  end
20  local randnum = math.random(1, weight)
21  for k, v in pairs(a) do
22    if v >= randnum then
23      return k
24    end
25  end
26  return 0
27end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.CalcCrackEquipRefineLv

commonfun-calccrackequiprefinelv

Nodes

0

Edges

0

Related Nodes

Select at least one node type.