Module:Sandbox/One Bar: Difference between revisions

One Bar (talk | contribs)
rounding
One Bar (talk | contribs)
No edit summary
Line 75: Line 75:
local filtered_heroes = filtered_heroes()
local filtered_heroes = filtered_heroes()
for _, hero in ipairs(filtered_heroes) do
for _, hero in ipairs(filtered_heroes) do
local base = floor(hero[property] * 100) / 100
local base = math.floor(hero[property] * 100) / 100
local level = floor(hero["LevelScaling"][property] * 100) / 100
local level = math.floor(hero["LevelScaling"][property] * 100) / 100
local shots = hero["BulletsPerShot"]
local shots = hero["BulletsPerShot"]
local burst = hero["BulletsPerBurst"]
local burst = hero["BulletsPerBurst"]