Anonymous

Module:Monsters: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 1,072: Line 1,072:
--Show fraction as long as it isn't going to be 1/1
--Show fraction as long as it isn't going to be 1/1
result = result..'||style="text-align:right" data-sort-value="'..row.weight..'"'
result = result..'||style="text-align:right" data-sort-value="'..row.weight..'"'
result = result..'|'..Shared.fraction(row.weight * lootChance, totalWt * 100)
result = result..'|'..Num.fraction(row.weight * lootChance, totalWt * 100)
result = result..'||'
result = result..'||'
else
else
2,875

edits