Module:Mazunki/Monsters: Difference between revisions

m
name not table
m (typo)
m (name not table)
Line 163: Line 163:
for _, droppable in pairs(monster.lootTable) do
for _, droppable in pairs(monster.lootTable) do
table.insert(itemIds, droppable[1])
table.insert(itemIds, droppable[1])
table.insert(itemNames, Items.getItemByID(droppable[1]))
table.insert(itemNames, Items.getItemByID(droppable[1]).name)
local numerator = droppable[2]
local numerator = droppable[2]
table.insert(itemWeights, numerator)
table.insert(itemWeights, numerator)
892

edits