• 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
Remove more width restrictions, add remodel column
Line 1: Line 1:  
local BaseTable = require('Module:BaseTable')
 
local BaseTable = require('Module:BaseTable')
 
local Formatting = require('Module:Formatting')
 
local Formatting = require('Module:Formatting')
 +
local MiscIcons = require('Module:MiscIcons')
 
local StatIcons = require('Module:StatIcons')
 
local StatIcons = require('Module:StatIcons')
 
local Ship = require('Module:Ship')
 
local Ship = require('Module:Ship')
Line 7: Line 8:     
local ShipModernizationListKai = BaseTable{
 
local ShipModernizationListKai = BaseTable{
_header_template = [[! style="width: 75px;" | Class
+
_header_template = [[! Class
 
! Name
 
! Name
 
! style="text-align: center; vertical-align: middle; background-color: lightcoral;" | ${firepower}
 
! style="text-align: center; vertical-align: middle; background-color: lightcoral;" | ${firepower}
Line 15: Line 16:  
! style="text-align: center; vertical-align: middle; background-color: palegreen;" | ${luck}
 
! style="text-align: center; vertical-align: middle; background-color: palegreen;" | ${luck}
 
! Name
 
! Name
 +
! ${remodel}
 
! style="text-align: center; vertical-align: middle; background-color: lightcoral;" | ${firepower}
 
! style="text-align: center; vertical-align: middle; background-color: lightcoral;" | ${firepower}
 
! style="text-align: center; vertical-align: middle; background-color: lightskyblue;" | ${torpedo}
 
! style="text-align: center; vertical-align: middle; background-color: lightskyblue;" | ${torpedo}
Line 29: Line 31:  
"luck_mod1",
 
"luck_mod1",
 
"name2",
 
"name2",
 +
"remodel",
 
"firepower_mod2",
 
"firepower_mod2",
 
"torpedo_mod2",
 
"torpedo_mod2",
Line 227: Line 230:  
end
 
end
 
return {values = {value = table.concat(value, " ")}, bg_color = self._transparent, text_align = self._start_align}
 
return {values = {value = table.concat(value, " ")}, bg_color = self._transparent, text_align = self._start_align}
 +
end
 +
 +
function ShipModernizationListKai:remodel()
 +
if self._right then
 +
local remodel_level = self._right:remodel_level()
 +
return {values = {value = Formatting:format_stat(remodel_level == false and self._dash or remodel_level)}, bg_color = self._transparent, text_align = self._center_align}
 +
else
 +
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._center_align}
 +
end
 
end
 
end
   Line 285: Line 297:  
armor = StatIcons.armor,
 
armor = StatIcons.armor,
 
luck = StatIcons.luck,
 
luck = StatIcons.luck,
 +
remodel = MiscIcons.remodel,
 
}
 
}
 
for key, value in pairs(header_icons) do
 
for key, value in pairs(header_icons) do
Anonymous user

Navigation menu