local K=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local N=require(K.Lib.Looty)local y=N.LootPool.new({name="\084\101\115\116\082\101\102\080\111\111\108";rolls=3;items={{type="\073\116\101\109";identifier="\103\111\108\100",weight=-1;predicates={function()return false end}},{type="\073\116\101\109";identifier="\115\105\108\118\101\114",weight=-1}};state={luck=0}})local l=N.LootPool.new({name="\084\101\115\116\080\111\111\108",rolls=1,items={{type="\076\111\111\116\082\101\102\101\114\101\110\099\101";reference=y,weight=-1}},predicates={},state={luck=0}})for K,N in ipairs(l:roll())do print(N.item)end
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Looty = require(ReplicatedStorage.Lib.Looty)

local reference = Looty.LootPool.new({
    name = "TestRefPool",
    rolls = 3,
    items = {
        {
            type = "Item",
            identifier = "gold",
            weight = -1,
            predicates = {
                function ()
                    return false
                end
            }
        },
        {
            type = "Item",
            identifier = "silver",
            weight = -1,
        }
    },
    state = { luck = 0 },
})

local pool = Looty.LootPool.new({
    name = "TestPool",
    rolls = 1,
    items = {
        {
            type = "LootReference",
            reference = reference,
            weight = -1,
        }
    },
    predicates = {},
    state = { luck = 0 },
})

for _, t in ipairs(pool:roll()) do
    print(t.item)
end