892
edits
m (gsheets is dumb) |
m (special attacks) |
||
Line 22: | Line 22: | ||
'NormalType', | 'NormalType', | ||
'HasSpecial', | 'HasSpecial', | ||
'SpecialAttacksNames', | |||
'SpecialAttacksChance', | |||
'Accuracy', | 'Accuracy', | ||
'MeleeEvasion', | 'MeleeEvasion', | ||
Line 55: | Line 57: | ||
table.insert(rowTxt, monster.attackType) | table.insert(rowTxt, monster.attackType) | ||
table.insert(rowTxt, tostring(not #(monster.specialAttack or {}))) | table.insert(rowTxt, tostring(not #(monster.specialAttack or {}))) | ||
local hasSpecialAttack = false | |||
local spAtks = {} | |||
local spAtksChance = {} | |||
for _, spAtk in ipairs(monster.specialAttack) do | |||
hasSpecialAttack = true | |||
table.insert(spAtk, spAtk.name) | |||
table.insert(spAtksChance, spAtk.chance/100) | |||
end | |||
table.insert(rowTxt, hasSpecialAttack) | |||
table.insert(rowTxt, table.concat(spAtks, ";")) | |||
table.insert(rowTxt, table.concat(spAtksChance, ";")) | |||
table.insert(rowTxt, Monsters._getMonsterAR(monster)) | table.insert(rowTxt, Monsters._getMonsterAR(monster)) | ||
table.insert(rowTxt, Monsters._getMonsterER(monster, 'Melee')) | table.insert(rowTxt, Monsters._getMonsterER(monster, 'Melee')) |
edits