Module:Skills/Agility: Difference between revisions

Tweaks to make sure all bonuses are properly processed
(fixed span definition, hiding text on items)
(Tweaks to make sure all bonuses are properly processed)
Line 33: Line 33:
     --After that, adding the bonuses
     --After that, adding the bonuses
     for bonusName, bonusValue in pairs(obst.modifiers) do
     for bonusName, bonusValue in pairs(obst.modifiers) do
       table.insert(bonuses, Constants.getModifierText(bonusName, bonusValue))
       if type(bonusValue) == 'table' then
        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