Changes

no edit summary
Line 36: Line 36:  
_equipment_data_documentation = "Template:EquipmentDataDocumentation/EditIntro",
 
_equipment_data_documentation = "Template:EquipmentDataDocumentation/EditIntro",
 
_edit_link_text = "Edit",
 
_edit_link_text = "Edit",
 +
_empty_card = "Empty equipment card slot.png",
 
_shown_ship_types = {
 
_shown_ship_types = {
 
2,
 
2,
Line 184: Line 185:     
function EquipmentInfoKai:card(equipment)
 
function EquipmentInfoKai:card(equipment)
 +
local card = equipment:card()
 +
if card == false then
 +
card = self._empty_card
 +
end
 
local card_name = equipment:card_name()
 
local card_name = equipment:card_name()
 
if card_name then
 
if card_name then
Line 196: Line 201:  
table.insert(card_caption, Formatting:format_stat_with_max(equipment:card_japanese_name(), equipment:card_reading()))
 
table.insert(card_caption, Formatting:format_stat_with_max(equipment:card_japanese_name(), equipment:card_reading()))
   −
return Formatting:format_image{equipment:card(),
+
return Formatting:format_image{card,
 
caption = table.concat(card_caption)
 
caption = table.concat(card_caption)
 
}
 
}
 
end
 
end
return Formatting:format_image{equipment:card()}
+
return Formatting:format_image{card}
 
end
 
end
  
Anonymous user