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