17,101
edits
(getMonsterDrops: Fix logic for excluding zero weighted drops, and only include table of drops when loot table isn't empty) |
m (Remove debug logging) |
||
Line 1,076: | Line 1,076: | ||
local lootTable = GameData.getEntities(monster.lootTable, | local lootTable = GameData.getEntities(monster.lootTable, | ||
function(loot) | function(loot) | ||
return lootChance > 0 and loot.weight ~= nil and loot.weight > 0 | return lootChance > 0 and loot.weight ~= nil and loot.weight > 0 | ||
end) | end) |