Module:Sandbox/One Bar: Difference between revisionsGive feedback
No edit summary |
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 = math.floor(hero[property] * 100) / 100 | local base = math.floor((hero[property] or 0) * 100) / 100 | ||
local level = math.floor(hero["LevelScaling"][property] * 100) / 100 | local level = math.floor(hero["LevelScaling"][property] * 100) / 100 | ||
local shots = hero["BulletsPerShot"] | local shots = hero["BulletsPerShot"] | ||