Module:Calculator/AgilityObstacle: Difference between revisions
From Melvor Idle
(Add total bonusses) |
No edit summary |
||
Line 239: | Line 239: | ||
-- Add all bonuses together from all obstacles | -- Add all bonuses together from all obstacles | ||
local bonuses = {} | local bonuses = {} | ||
for _, obstacle in pairs( | for _, obstacle in pairs(obstacles) do | ||
for bonusName, bonusValue in pairs(obstacle.modifiers) do | for bonusName, bonusValue in pairs(obstacle.modifiers) do | ||
Shared.addOrUpdate(bonuses, bonusName, | Shared.addOrUpdate(bonuses, bonusName, |