Anonymous

Module:Pets: Difference between revisions

From Melvor Idle
Fix drop chance issue
(getPet: Amend to (hopefully) avoid errors with ampersands)
(Fix drop chance issue)
Line 14: Line 14:
local areas = Areas.getAreas(function(area) return area.pet ~= nil end)
local areas = Areas.getAreas(function(area) return area.pet ~= nil end)
for i, area in ipairs(areas) do
for i, area in ipairs(areas) do
result[area.pet.petID] = { id = area.id, name = area.name, type = area.type, weight = area.weight }
result[area.pet.petID] = { id = area.id, name = area.name, type = area.type, weight = area.pet.weight }
end
end
return result
return result