Module:Skills/Agility: Difference between revisions

Following up change to getModifierText in Constants.
(Added p.getObstaclesForItem (which will be needed for Items/UseTables)
(Following up change to getModifierText in Constants.)
Line 58: Line 58:
     --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
       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