Changes
no edit summary
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