Module:Attacks/Tables: Difference between revisions

Adding notes to the Special Attack table with the delay between each attack
(getCombatTriangleTable: Initial creation)
(Adding notes to the Special Attack table with the delay between each attack)
Line 183: Line 183:
         if firstRow.descType then
         if firstRow.descType then
             rowSuffix = (rowCounts[spIdx][spAttRow.descType]['rows'] > 1 and '|rowspan="' .. rowCounts[spIdx][spAttRow.descType]['rows'] .. '"') or ''
             rowSuffix = (rowCounts[spIdx][spAttRow.descType]['rows'] > 1 and '|rowspan="' .. rowCounts[spIdx][spAttRow.descType]['rows'] .. '"') or ''
             table.insert(resultPart, '\r\n' .. rowSuffix .. '| ' .. spAtt['description'][spAttRow.descType])
            local spAttDesc = spAtt['description'][spAttRow.descType]
            --Adding the time between hits as a note at the end of the special attack description
            local spAttInterval = spAtt.attackInterval ~= nil and spAtt.attackInterval or -1
            if(spAttInterval ~= -1) then
            spAttDesc = spAttDesc..'<br/>'..'('..Shared.round(spAttInterval / 1000, 1, 1)..'s delay between attacks)'
            end
             table.insert(resultPart, '\r\n' .. rowSuffix .. '| ' .. spAttDesc)
         end
         end
     end
     end