Module:Items/ComparisonTables: Difference between revisions

Abbreviated some things
(Added new function for getting a comparison for a list of items.)
(Abbreviated some things)
Line 70: Line 70:
   end
   end
   if strBonusCols > 0 then
   if strBonusCols > 0 then
     result = result..'\r\n!colspan="'..strBonusCols..'"style="padding:0 0.5em 0 0.5em;"|Strength Bonus'
     result = result..'\r\n!colspan="'..strBonusCols..'"style="padding:0 0.5em 0 0.5em;"|Str. Bonus'
   end
   end
   if Shared.contains(statColumns, 'magicDamageBonus') then
   if Shared.contains(statColumns, 'magicDamageBonus') then
Line 79: Line 79:
   end
   end
   if Shared.contains(statColumns, 'damageReduction') then
   if Shared.contains(statColumns, 'damageReduction') then
     result = result..'\r\n!colspan="1"style="padding:0 0.5em 0 0.5em;"|Damage Reduction'
     result = result..'\r\n!colspan="1"style="padding:0 0.5em 0 0.5em;"|DR'
   end
   end
   if lvlReqCols > 0 then
   if lvlReqCols > 0 then