• 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 15: Line 15:  
hell_offset_l1 = {image = "Hell plane 2.png", style = {top = "9px", left = "44px"}, size = "30x30px"},
 
hell_offset_l1 = {image = "Hell plane 2.png", style = {top = "9px", left = "44px"}, size = "30x30px"},
 
hell_offset_r1 = {image = "Hell plane 2.png", style = {top = "9px", left = "109px"}, size = "30x30px"},
 
hell_offset_r1 = {image = "Hell plane 2.png", style = {top = "9px", left = "109px"}, size = "30x30px"},
flagship = {image = "Flagship battle card icon.png", style = {top = "3px", left = "139px"}},
+
flagship = {image = "Flagship battle card icon.png", style = {top = "3px", left = "139px", size = "18x18px"}},
 +
flagship_hd = {image = "Flagship battle card icon.png", style = {top = "3px", left = "139px"}},
 
revenge_r2 = {image = "Hell plane 3.png", style = {top = "3px", left = "130px"}, size = "30x33px"},
 
revenge_r2 = {image = "Hell plane 3.png", style = {top = "3px", left = "130px"}, size = "30x33px"},
 
revenge_kai_l2 = {image = "Abyssal Revenge Torpedo Bomber Kai.png", style = {top = "0px", left = "60px"}, size = "35x44px"},
 
revenge_kai_l2 = {image = "Abyssal Revenge Torpedo Bomber Kai.png", style = {top = "0px", left = "60px"}, size = "35x44px"},
Line 70: Line 71:  
function ShipBattleCardKai:get_source(ship, args)
 
function ShipBattleCardKai:get_source(ship, args)
 
return args.damaged and ship:battle_card_damaged(true) or ship:battle_card(true)
 
return args.damaged and ship:battle_card_damaged(true) or ship:battle_card(true)
 +
end
 +
 +
function ShipBattleCardKai:get_layer(hd, layer)
 +
    return hd and self._battle_card_layers[layer .. "_hd"] or self._battle_card_layers[layer]
 
end
 
end
   Line 92: Line 97:  
if ship_layers then
 
if ship_layers then
 
for _, layer in ipairs(ship_layers) do
 
for _, layer in ipairs(ship_layers) do
self:_add_layer(stack, self._battle_card_layers[layer], ship, args, link)
+
self:_add_layer(stack, self:get_layer(args.hd, layer), ship, args, link)
 
end
 
end
 
end
 
end
 
if args.flagship then
 
if args.flagship then
self:_add_layer(stack, self._battle_card_layers.flagship, ship, args, link)
+
self:_add_layer(stack, self:get_layer(args.hd, "flagship"), ship, args, link)
 
end
 
end
 
if args.layers then
 
if args.layers then
 
for _, layer in ipairs(split(args.layers)) do
 
for _, layer in ipairs(split(args.layers)) do
if self._battle_card_layers[layer] then
+
if self:get_layer(args.hd, layer) then
self:_add_layer(stack, self._battle_card_layers[layer], ship, args, link)
+
self:_add_layer(stack, self:get_layer(args.hd, layer), ship, args, link)
 
end
 
end
 
end
 
end
cssedit, gkautomate
6,928

edits

Navigation menu