Module:EncounterTable: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 95: Line 95:
     end
     end


     return EncounterTable.formatTable(finalTable)
     return EncounterTable.formatTable(finalTable, bHideQuantity)
end
end


function EncounterTable.formatTable(final)
function EncounterTable.formatTable(final, bHideQuantity)
     local TABLE_HEADER = '<tr><th>Item</th><th>Quantity</th><th>Weight</th><th>Chance</th></tr>'
     local TABLE_HEADER = '<tr><th>Item</th><th>Quantity</th><th>Weight</th><th>Chance</th></tr>'
     local tableRows = ''
     local tableRows = ''