• 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 63: Line 63:  
function EnemyShipListKai:card(ship)
 
function EnemyShipListKai:card(ship)
 
local value
 
local value
local bg_color, extra_style = EnemyColors:rarity_colors(ship)
+
local bg_color, background_image = EnemyColors:rarity_colors(ship)
extra_style = EnemyColors:variant_background_image(ship, extra_style)
+
background_image = EnemyColors:variant_background_image(ship, extra_style)
 
if ship == false then
 
if ship == false then
 
value = Formatting:format_image{self._blank, size = self._size}
 
value = Formatting:format_image{self._blank, size = self._size}
Line 70: Line 70:  
value = ShipBattleCardKai:get{ship = ship, size = self._size, link = ship:link(), caption = ship:name()}
 
value = ShipBattleCardKai:get{ship = ship, size = self._size, link = ship:link(), caption = ship:name()}
 
end
 
end
return {value = value, bg_color = bg_color, extra_style = extra_style, text_align = self._center_align}
+
return {value = value, bg_color = bg_color, background_image = background_image or self._none, text_align = self._center_align}
 
end
 
end
  
Anonymous user

Navigation menu