Anonymous

Module:Skills/Gathering: Difference between revisions

From Melvor Idle
no edit summary
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(Shared.fraction(itemDef.weight, totalWt))
: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"|'..Shared.fraction(lootChance, 100)..'||')
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" ')
2,869

edits