feat: add a way to get pocket id

This commit is contained in:
Kazhnuz 2021-03-13 13:51:43 +01:00
parent a95c562a7f
commit 9d85fb2827

View file

@ -36,6 +36,10 @@ function LootManager:generatePockets()
end end
end end
function LootManager:getPocketIdByName(name)
return self.pocketIndex[name]
end
function LootManager:getPocketById(id) function LootManager:getPocketById(id)
return self.inventory[id] return self.inventory[id]
end end