892
edits
m (typo) |
m (whoos csv) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 75: | Line 75: | ||
end | end | ||
table.insert(rowTxt, tostring(hasSpecialAttack)) | table.insert(rowTxt, tostring(hasSpecialAttack)) | ||
table.insert(rowTxt, table.concat(spAtks, | table.insert(rowTxt, table.concat(spAtks, arraySeparatorInSheets)) | ||
table.insert(rowTxt, table.concat(spAtksChance, | table.insert(rowTxt, table.concat(spAtksChance, arraySeparatorInSheets)) | ||
table.insert(rowTxt, Monsters._getMonsterAR(monster)) | table.insert(rowTxt, Monsters._getMonsterAR(monster)) | ||
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 = { | ||
["display"] = " | ["id"] = notext, | ||
["reward"] = | ["display"] = notext, | ||
["cost"] = notext, | |||
["slayerLevel"] = notext, | |||
["minQuantity"] = notext, | |||
["maxQuantity"] = notext, | |||
["reward"] = notext | |||
} | } | ||
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 = {} | ||
Line 163: | Line 167: | ||
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) |
edits