• 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
Fix equipment card image
Line 189: Line 189:     
function EquipmentInfoKai:image()
 
function EquipmentInfoKai:image()
local card = EquipmentCardKai:card{equipment = self._equipment}
+
local caption = nil
if card == false then
  −
card = self._empty_card
  −
end
   
local card_name = self._equipment:card_name()
 
local card_name = self._equipment:card_name()
 
if card_name then
 
if card_name then
Line 205: Line 202:  
table.insert(card_caption, Formatting:format_stat_with_max(self._equipment:card_japanese_name(), self._equipment:card_reading()))
 
table.insert(card_caption, Formatting:format_stat_with_max(self._equipment:card_japanese_name(), self._equipment:card_reading()))
   −
return Formatting:format_image{card,
+
caption = table.concat(card_caption)
caption = table.concat(card_caption)
  −
}
   
end
 
end
self._vars.card = Formatting:format_image{card}
+
self._vars.card = EquipmentCardKai:card{self._equipment, caption = caption}
 
end
 
end
  
Anonymous user

Navigation menu