Module:Pets: Difference between revisions

Added override for Into the Mist specifically
(Added p.getDungeonBoxPetText)
(Added override for Into the Mist specifically)
Line 186: Line 186:
     result = result..Icons.Icon({pet.name, type='pet'})
     result = result..Icons.Icon({pet.name, type='pet'})


     local odds = pet.obtained.dungeonCompletion[1][2]
     local dropChance = ''
    local dropChance = '1 in '..odds..' ('..Shared.round(100 / odds, 2, 2)..'%)'
    if dung.name == 'Into the Mist' then
      dropChance = 'Guaranteed after 5 clears'
    else
      local odds = pet.obtained.dungeonCompletion[1][2]
      dropChance = '1 in '..odds..' ('..Shared.round(100 / odds, 2, 2)..'%)'
    end
     result = result.."<br/>Drop Chance: "..dropChance
     result = result.."<br/>Drop Chance: "..dropChance
   end
   end