Module:Monsters: Difference between revisions

m
Remove debug logging
(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)
mw.logObject(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)