17,101
edits
(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 |