• 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
no edit summary
Line 1: Line 1:  
local EnemyShip = require('Module:EnemyShip')
 
local EnemyShip = require('Module:EnemyShip')
 
local ShipCapabilities = require('Module:ShipCapabilities')
 
local ShipCapabilities = require('Module:ShipCapabilities')
 +
local ShipGraphicKai = require('Module:ShipGraphicKai')
 
local ShipInfoKai = require('Module:ShipInfoKai')
 
local ShipInfoKai = require('Module:ShipInfoKai')
 
local Formatting = require('Module:Formatting')
 
local Formatting = require('Module:Formatting')
 +
local Tabber = require('Module:Tabber')
    
local format = require('Module:StringInterpolation').format
 
local format = require('Module:StringInterpolation').format
Line 212: Line 214:     
function EnemyShipInfoKai:image()
 
function EnemyShipInfoKai:image()
self._vars.image = Formatting:format_image{self._ship:cg(), size = self._args.cg_size or self._cg_size}
+
self._vars.image = ShipGraphicKai:get{ship = self._ship, size = self._args.cg_size or self._cg_size}
 +
if self._ship:can_debuff() then
 +
local tabber = Tabber()
 +
tabber:add_tab("Normal", ShipGraphicKai:get{ship = self._ship})
 +
tabber:add_tab("Armor Broken", ShipGraphicKai:get{ship = self._ship, damaged = true})
 +
self._vars.image = tostring(tabber)
 +
end
 
end
 
end
  
Anonymous user

Navigation menu