Module:Mazunki/Monsters: Difference between revisions

m
nil values can't be stringed
m (test)
m (nil values can't be stringed)
Line 122: Line 122:
isNormalLocation = true
isNormalLocation = true
end
end
table.insert(locations, location.name)
table.insert(locations, tostring(location.name))
end
end
table.insert(rowTxt, table.concat(locations, arraySeparatorInSheets))
table.insert(rowTxt, table.concat(locations, arraySeparatorInSheets))
Line 135: Line 135:
else
else
slayer = {
slayer = {
["id"] = nil,
["id"] = notext,
["display"] = "None",
["display"] = notext,
["cost"] = "cost",
["cost"] = notext,
["slayerLevel"] = "level",
["slayerLevel"] = notext,
["minQuantity"] = "min",
["minQuantity"] = notext,
["maxQuantity"] = "max",
["maxQuantity"] = notext,
["reward"] = "price"
["reward"] = notext
}
}
rowTxt = rowTxt
end
end
table.insert(rowTxt, slayer.id)
table.insert(rowTxt, tostring(slayer.id))
table.insert(rowTxt, slayer.display)
table.insert(rowTxt, tostring(slayer.display))
table.insert(rowTxt, slayer.cost)
table.insert(rowTxt, tostring(slayer.cost))
table.insert(rowTxt, slayer.slayerLevel)
table.insert(rowTxt, tostring(slayer.slayerLevel))
table.insert(rowTxt, slayer.minQuantity)
table.insert(rowTxt, tostring(slayer.minQuantity))
table.insert(rowTxt, slayer.maxQuantity)
table.insert(rowTxt, tostring(slayer.maxQuantity))
table.insert(rowTxt, slayer.reward)
table.insert(rowTxt, tostring(slayer.reward))


local itemIds = {}
local itemIds = {}
892

edits