Module:Pets: Difference between revisions

_getPetChance: Improve grammar
(Fix drop chance issue)
(_getPetChance: Improve grammar)
Line 104: Line 104:
-- Flaky logic for determining if pet is guaranteed or not
-- Flaky logic for determining if pet is guaranteed or not
if source.weight <= 10 then
if source.weight <= 10 then
return 'Guaranteed after ' .. Shared.formatnum(source.weight) .. ' clears'
return 'Guaranteed after ' .. Shared.formatnum(source.weight) .. (source.weight == 1 and ' clear' or ' clears')
else
else
return '1 in ' .. Shared.formatnum(source.weight) .. ' (' .. Shared.round(100 / source.weight, 2, 2) .. '%)'
return '1 in ' .. Shared.formatnum(source.weight) .. ' (' .. Shared.round(100 / source.weight, 2, 2) .. '%)'