fix calc_loot export

This commit is contained in:
EsPaKira 2026-08-02 21:39:33 +04:00
parent 4be73acc61
commit 74cefdafbd

View file

@ -12,7 +12,7 @@ function util.drop(ppos, itemid, count, data, pickup_delay)
}})
end
function calc_loot(loot_table)
function util.calc_loot(loot_table)
local results = {}
for _, loot in ipairs(loot_table) do
local chance = loot.chance or 1