Module:Attacks/Tables: Difference between revisions

Further fixes
No edit summary
(Further fixes)
Line 113: Line 113:
table.insert(spAttTable, { id = familiar.id, source = 'Familiar', sourceSort = familiar.name, sourceText = Icons.Icon({ familiar.name, type = 'item' }), chance = famChance or 0, descType = 'player' })
table.insert(spAttTable, { id = familiar.id, source = 'Familiar', sourceSort = familiar.name, sourceText = Icons.Icon({ familiar.name, type = 'item' }), chance = famChance or 0, descType = 'player' })
-- Slap a dummy entry into the attacks table for this familiar
-- Slap a dummy entry into the attacks table for this familiar
attacks[famIdx] = { id = familiar.id, name = familiar.name .. ' (Familiar)', description = { player = famDesc } }
attacks[famIdx] = { id = familiar.id, name = familiar.name .. ' (Familiar)', description = famDesc }
famIdx = famIdx + 1
famIdx = famIdx + 1
end
end
Line 210: Line 210:
spAttDesc = spAttDesc..')'
spAttDesc = spAttDesc..')'
end
end
table.insert(resultPart, '\r\n' .. rowSuffix .. '| ' .. (spAttDesc or ''))
table.insert(resultPart, '\r\n' .. rowSuffix .. '| ' .. spAttDesc)
end
end
end
end