Module:Pets: Difference between revisions

_getPetChance: Special case for Peri/Otto
(Ensure consistent pet drop chance logic by creating _getPetChance())
(_getPetChance: Special case for Peri/Otto)
Line 129: Line 129:
     elseif pet.name == 'Bone' then
     elseif pet.name == 'Bone' then
         -- Special handling for Impending Darkness/Bone
         -- Special handling for Impending Darkness/Bone
        return 'Guaranteed after 1 clear'
return 'Guaranteed after 1 clear'
    elseif pet.name == 'Peri' or pet.name == 'Otto' then
-- Slayer area pets
local odds = 7500
return '1 in ' .. odds .. ' (' .. Shared.round(100 / odds, 2, 2) .. '%)'
     else
     else
         -- Skill pet or other
         -- Skill pet or other