Anonymous

Module:Calculator/AgilityObstacle: Difference between revisions

From Melvor Idle
no edit summary
(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(obstables) do
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,  
2,875

edits