Changes
no edit summary
function ImprovementTableKai:development_material(row_data)
function ImprovementTableKai:development_material(row_data)
if row_data.resources then
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}
return {values = {value = format{self._material_cell_content, normal = Formatting:format_stat(row_data.resources.devmat), slider = Formatting:format_stat(row_data.resources_x.devmat)}}, bg_color = self._transparent, text_align = self._center_align}
else
else
return {values = {value = "-"}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = "-"}, bg_color = self._transparent, text_align = self._center_align}
function ImprovementTableKai:improvement_material(row_data)
function ImprovementTableKai:improvement_material(row_data)
if row_data.resources then
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}
return {values = {value = format{self._material_cell_content, normal = Formatting:format_stat(row_data.resources.screw), slider = Formatting:format_stat(row_data.resources_x.screw)}}, bg_color = self._transparent, text_align = self._center_align}
else
else
return {values = {value = "-"}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = "-"}, bg_color = self._transparent, text_align = self._center_align}