• 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 139: Line 139:     
function ImprovementTableKai:development_material(row_data)
 
function ImprovementTableKai:development_material(row_data)
return {values = {value = format{self._material_cell_content, normal = row_data.resources.devmat, slider = row_data.resources_x.devmat}}, bg_color = self._transparent, text_align = self._center_align}
+
if row_data.resources then
 +
return {values = {value = format{self._material_cell_content, normal = row_data.resources.devmat, slider = row_data.resources_x.devmat}}, bg_color = self._transparent, text_align = self._center_align}
 +
else
 +
return {values = {value = "-"}, bg_color = self._transparent, text_align = self._center_align}
 +
end
 
end
 
end
    
function ImprovementTableKai:improvement_material(row_data)
 
function ImprovementTableKai:improvement_material(row_data)
return {values = {value = format{self._material_cell_content, normal = row_data.resources.screw, slider = row_data.resources_x.screw}}, bg_color = self._transparent, text_align = self._center_align}
+
if row_data.resources then
 +
return {values = {value = format{self._material_cell_content, normal = row_data.resources.screw, slider = row_data.resources_x.screw}}, bg_color = self._transparent, text_align = self._center_align}
 +
else
 +
return {values = {value = "-"}, bg_color = self._transparent, text_align = self._center_align}
 +
end
 
end
 
end
  
Anonymous user

Navigation menu