Module:EncounterTable: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 99: Line 99:


function EncounterTable.formatTable(final, bHideQuantity)
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 = bHideQuantity and
'<tr><th>Item</th><th>Weight</th><th>Chance</th></tr>' or
'<tr><th>Item</th><th>Quantity</th><th>Chance</th></tr>'
     local tableRows = ''
     local tableRows = ''
     local headerhtml = ''
     local headerhtml = ''