Anonymous

Module:CombatAreas/AreaTables: Difference between revisions

From Melvor Idle
Added pet drop chance to dungeon table
(Use printError function)
(Added pet drop chance to dungeon table)
Line 9: Line 9:
local Items = require('Module:Items')
local Items = require('Module:Items')
local Monsters = require('Module:Monsters')
local Monsters = require('Module:Monsters')
local Pets = require('Module:Pets')
local Areas = require('Module:CombatAreas')
local Areas = require('Module:CombatAreas')


Line 153: Line 154:
if pet ~= nil then
if pet ~= nil then
result = result..'||data-sort-value="'..pet.name..'"|'..Icons.Icon({pet.name, type='pet'})
result = result..'||data-sort-value="'..pet.name..'"|'..Icons.Icon({pet.name, type='pet'})
local petDrop = Pets._getPetChance(pet)
if petDrop ~= nil then
result = result..'<br/>('..petDrop..')'
end
end
end
else
else