mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
fix calc_loot export
This commit is contained in:
parent
4be73acc61
commit
74cefdafbd
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ function util.drop(ppos, itemid, count, data, pickup_delay)
|
||||||
}})
|
}})
|
||||||
end
|
end
|
||||||
|
|
||||||
function calc_loot(loot_table)
|
function util.calc_loot(loot_table)
|
||||||
local results = {}
|
local results = {}
|
||||||
for _, loot in ipairs(loot_table) do
|
for _, loot in ipairs(loot_table) do
|
||||||
local chance = loot.chance or 1
|
local chance = loot.chance or 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue