• 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
More bugs
Line 44: Line 44:  
10
 
10
 
},
 
},
_consumed_equipment_label = "Consumes: ${list}",
+
_consumed_equipment_label = "<small>Consumes: ${list}</small>",
_produced_equipment_label = "Produces: 1x ${icon}${name}",
+
_produced_equipment_label = "<small>Produces: 1x ${icon}${name}</small>",
 
_equipment_item = "${count}x ${icon}${name}",
 
_equipment_item = "${count}x ${icon}${name}",
 
_material_cell_content = "${normal}/${slider}",
 
_material_cell_content = "${normal}/${slider}",
Line 92: Line 92:  
table.insert(consumed_equipment, format{self._equipment_item, count = count, icon = Formatting:format_image{Formatting:format_equipment_icon_simple(equipment:icon())}, name = Formatting:format_link(equipment:link())})
 
table.insert(consumed_equipment, format{self._equipment_item, count = count, icon = Formatting:format_image{Formatting:format_equipment_icon_simple(equipment:icon())}, name = Formatting:format_link(equipment:link())})
 
end
 
end
table.insert(result, format{self._consumed_equipment_label, list = table.concat(consumed_equipment, "<br />")})
+
if #consumed_equipment > 0 then
 +
table.insert(result, format{self._consumed_equipment_label, list = table.concat(consumed_equipment, "<br />")})
 +
end
 
if row_data.stars == self._improvement_brackets[#self._improvement_brackets] and row_data.product then
 
if row_data.stars == self._improvement_brackets[#self._improvement_brackets] and row_data.product then
 
local product = Equipment(row_data.product)
 
local product = Equipment(row_data.product)
 
table.insert(result, format{self._produced_equipment_label, icon = Formatting:format_image{Formatting:format_equipment_icon_simple(product:icon())}, name = Formatting:format_link(product:link())})
 
table.insert(result, format{self._produced_equipment_label, icon = Formatting:format_image{Formatting:format_equipment_icon_simple(product:icon())}, name = Formatting:format_link(product:link())})
 
end
 
end
value = table.concat(result, "<br />")
+
if #result > 0 then
 +
value = table.concat(result, "<br />")
 +
end
 
end
 
end
 
return {values = {value = value}, bg_color = self._transparent, text_align = self._center_align}
 
return {values = {value = value}, bg_color = self._transparent, text_align = self._center_align}
Anonymous user

Navigation menu