2,869
edits
No edit summary |
No edit summary |
||
Line 146: | Line 146: | ||
:css('text-align', 'right') | :css('text-align', 'right') | ||
:attr('data-sort-value', itemDef.weight) | :attr('data-sort-value', itemDef.weight) | ||
:wikitext( | :wikitext(Num.fraction(itemDef.weight, totalWt)) | ||
row:tag('td') | row:tag('td') | ||
:css('text-align', 'right') | :css('text-align', 'right') | ||
Line 641: | Line 641: | ||
table.insert(normalTxt, '\r\n|-class="sortbottom" \r\n!colspan="3"|Total:') | table.insert(normalTxt, '\r\n|-class="sortbottom" \r\n!colspan="3"|Total:') | ||
if lootChance < 100 then | if lootChance < 100 then | ||
table.insert(normalTxt, '\r\n|style="text-align:right"|'.. | table.insert(normalTxt, '\r\n|style="text-align:right"|'..Num.fraction(lootChance, 100)..'||') | ||
else | else | ||
table.insert(normalTxt, '\r\n|colspan="2" ') | table.insert(normalTxt, '\r\n|colspan="2" ') |
edits