• 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
Add kai takoyaki overlay, damaged card support
Line 10: Line 10:  
takoyaki = {image = "Hell plane 2.png", top = "5px", left = "50px", size = "30x30px"},
 
takoyaki = {image = "Hell plane 2.png", top = "5px", left = "50px", size = "30x30px"},
 
flagship = {image = "Flagship battle card icon.png", top = "3px", left = "139px"},
 
flagship = {image = "Flagship battle card icon.png", top = "3px", left = "139px"},
 +
takoyaki_kai = {image = "Abyssal Hell Dive Bomber Kai.png", top = "5px", left = "50px", size = "30x30px"},
 
},
 
},
 
_battle_card_wrapper = [[<span style="display: inline-block; position: relative;">${layers}</span>]],
 
_battle_card_wrapper = [[<span style="display: inline-block; position: relative;">${layers}</span>]],
Line 20: Line 21:  
ship = args.ship
 
ship = args.ship
 
end
 
end
return Formatting:format_image{ship:card(), size = args.size or self._card_size, link = args.link, caption = args.caption}
+
return Formatting:format_image{args.damaged and ship:card_damaged() or ship:card(), size = args.size or self._card_size, link = args.link, caption = args.caption}
 
end
 
end
   Line 33: Line 34:  
ship = args.ship
 
ship = args.ship
 
end
 
end
local image = Formatting:format_image{ship:battle_card(), size = args.size or self._battle_card_size, link = args.link, caption = args.caption}
+
local image = Formatting:format_image{args.damaged and ship:battle_card_damaged() or ship:battle_card(), size = args.size or self._battle_card_size, link = args.link, caption = args.caption}
 
local ship_layers = ship:battle_card_layers()
 
local ship_layers = ship:battle_card_layers()
 
if ship_layers or args.flagship then
 
if ship_layers or args.flagship then
Anonymous user

Navigation menu