Anonymous

Module:Skills/Agility: Difference between revisions

From Melvor Idle
Applied same change to getModifierText to the PassivePillars function
(Following up change to getModifierText in Constants.)
(Applied same change to getModifierText to the PassivePillars function)
Line 106: Line 106:
     local bonuses = {}
     local bonuses = {}
     for bonusName, bonusValue in pairs(pill.modifiers) do
     for bonusName, bonusValue in pairs(pill.modifiers) do
       if type(bonusValue) == 'table' then
       table.insert(bonuses, Constants.getModifierText(bonusName, bonusValue))
        for j, trueBonus in pairs(bonusValue) do
          table.insert(bonuses, Constants.getModifierText(bonusName, trueBonus))
        end
      else
        table.insert(bonuses, Constants.getModifierText(bonusName, bonusValue))
      end
     end
     end
     if Shared.tableCount(bonuses) == 0 then
     if Shared.tableCount(bonuses) == 0 then