feat: add a way to get pocket id
This commit is contained in:
parent
a95c562a7f
commit
9d85fb2827
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue