• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
m
no edit summary
Line 6: Line 6:  
local Tabber = require('Module:Tabber')
 
local Tabber = require('Module:Tabber')
   −
local format = require('Module:Utils').format
+
local U = require('Module:Utils')
 +
local format = U.format
    
local EquipmentInfoKai = BaseData{
 
local EquipmentInfoKai = BaseData{
Line 28: Line 29:  
| colspan="2" style="text-align: center; background-color: LightSkyBlue;" | '''Bonus''']],
 
| colspan="2" style="text-align: center; background-color: LightSkyBlue;" | '''Bonus''']],
 
     _bonus_row = [=[|-
 
     _bonus_row = [=[|-
| style="width: 190px; text-align: center;" | [[${ship}]]
+
| style="width: 190px; text-align: center;" | ${ship}
 
| style="width: 190px; text-align: center;" | ${stats}]=],
 
| style="width: 190px; text-align: center;" | ${stats}]=],
 
--|-
 
--|-
Line 329: Line 330:  
function EquipmentInfoKai:bonus_details()
 
function EquipmentInfoKai:bonus_details()
 
     local result = { self._bonus_header }
 
     local result = { self._bonus_header }
     for ship, stats in pairs(self._equipment._bonus or {}) do
+
     for _, ship in ipairs(U.isort(U.keys(self._equipment._bonus or {}))) do
         local s = stats or {}
+
         local s = self._equipment._bonus[ship] or {}
 
         table.insert(result, format{
 
         table.insert(result, format{
 
             self._bonus_row,
 
             self._bonus_row,
             ship = ship,
+
             ship = string.sub(ship, 1, 1) == "@" and string.sub(ship, 2) or ("[[" .. ship .. "]]"),
 
             stats = Formatting:format_stat_bonuses({
 
             stats = Formatting:format_stat_bonuses({
 
        firepower = s._firepower or false,
 
        firepower = s._firepower or false,
cssedit, gkautomate
6,928

edits

Navigation menu