housing und dj
This commit is contained in:
parent
112c7b1761
commit
10a5d168d4
731 changed files with 506993 additions and 0 deletions
|
@ -0,0 +1,25 @@
|
|||
if Config.Inventory ~= 'codem-inventory' then
|
||||
return
|
||||
end
|
||||
|
||||
function openStash(customData, uniq)
|
||||
local data = customData or Config.DefaultStashData
|
||||
local house = CurrentHouse
|
||||
local houseData = Config.Houses[house]
|
||||
if not customData then
|
||||
if houseData.ipl then
|
||||
data = houseData.ipl.stash or data
|
||||
else
|
||||
local shellData = Config.Shells[houseData.tier]
|
||||
if shellData then
|
||||
data = shellData.stash or data
|
||||
end
|
||||
end
|
||||
end
|
||||
uniq = uniq or house
|
||||
uniq = uniq:gsub('-', '_')
|
||||
local name = uniq
|
||||
local maxweight = data.maxweight or 10000
|
||||
local slot = data.slots or 30
|
||||
exports['codem-inventory']:OpenStash(name, maxweight, slot)
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue