Formula

CommonFun.CalcBossSceneEquipRefineLv

formula.lua
1function CommonFun.CalcBossSceneEquipRefineLv()
2  local a = {
3    [0] = 4500,
4    [5] = 2800,
5    [6] = 1600,
6    [7] = 750,
7    [8] = 350
8  }
9  local weight = 0
10  for k, v in pairs(a) do
11    weight = weight + v
12    a[k] = weight
13  end
14  local randnum = math.random(1, weight)
15  for k, v in pairs(a) do
16    if v >= randnum then
17      return k
18    end
19  end
20  return 0
21end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.CalcBossSceneEquipRefineLv

commonfun-calcbosssceneequiprefinelv

Nodes

0

Edges

0

Related Nodes

Select at least one node type.