Changes

m
no edit summary
Line 271: Line 271:  
            --Fleets are of variable size, so we append onto a string until we hit the next node declaration
 
            --Fleets are of variable size, so we append onto a string until we hit the next node declaration
 
            local id = tonumber(item_key)
 
            local id = tonumber(item_key)
 +
            local isVita = self._params.fullpagename:sub(1, 13) == 'KanColle Kai:'
 
            if id then
 
            if id then
                local isVita = self._params.fullpagename:sub(1, 13) == 'KanColle Kai:'
   
                if isVita then
 
                if isVita then
 
                    local vitaName = VitaShipsByApiId[id]
 
                    local vitaName = VitaShipsByApiId[id]
Line 299: Line 299:  
            local ship_caption =
 
            local ship_caption =
 
                (ship:name() or "?")
 
                (ship:name() or "?")
                .. " (" .. Formatting:format_stat(ship:api_id()) .. "): "
+
                .. " (" .. Formatting:format_enemy_stat(ship:api_id(), isVita) .. "): "
 
                .. (ship:armor() or "?") .. " Armor, " .. (ship:hp() or "?") .. " HP"
 
                .. (ship:armor() or "?") .. " Armor, " .. (ship:hp() or "?") .. " HP"
 
                .. (ship_air_power ~= 0 and ", " .. (ship_air_power or "?") .. " AP" or "")
 
                .. (ship_air_power ~= 0 and ", " .. (ship_air_power or "?") .. " AP" or "")
cssedit, gkautomate
7,064

edits