Changes
Fix empty stat cells, fix torpedo cells
if firepower ~= false then
if firepower ~= false then
self._shown_stats.firepower = true
self._shown_stats.firepower = true
else
firepower = 0
end
end
return {values = {value = Formatting:format_stat(firepower)}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = Formatting:format_stat(firepower)}, bg_color = self._transparent, text_align = self._center_align}
if torpedo ~= false then
if torpedo ~= false then
self._shown_stats.torpedo = true
self._shown_stats.torpedo = true
else
torpedo = 0
end
end
return {values = {value = Formatting:format_stat()}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = Formatting:format_stat(torpedo)}, bg_color = self._transparent, text_align = self._center_align}
end
end
if bombing ~= false then
if bombing ~= false then
self._shown_stats.bombing = true
self._shown_stats.bombing = true
else
bombing = 0
end
end
return {values = {value = Formatting:format_stat(bombing)}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = Formatting:format_stat(bombing)}, bg_color = self._transparent, text_align = self._center_align}
if aa ~= false then
if aa ~= false then
self._shown_stats.aa = true
self._shown_stats.aa = true
else
aa = 0
end
end
return {values = {value = Formatting:format_stat(aa)}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = Formatting:format_stat(aa)}, bg_color = self._transparent, text_align = self._center_align}
if asw ~= false then
if asw ~= false then
self._shown_stats.asw = true
self._shown_stats.asw = true
else
asw = 0
end
end
return {values = {value = Formatting:format_stat(asw)}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = Formatting:format_stat(asw)}, bg_color = self._transparent, text_align = self._center_align}
if los ~= false then
if los ~= false then
self._shown_stats.los = true
self._shown_stats.los = true
else
los = 0
end
end
return {values = {value = Formatting:format_stat(los)}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = Formatting:format_stat(los)}, bg_color = self._transparent, text_align = self._center_align}
if luck ~= false then
if luck ~= false then
self._shown_stats.luck = true
self._shown_stats.luck = true
else
luck = 0
end
end
return {values = {value = Formatting:format_stat(luck)}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = Formatting:format_stat(luck)}, bg_color = self._transparent, text_align = self._center_align}
if armor ~= false then
if armor ~= false then
self._shown_stats.armor = true
self._shown_stats.armor = true
else
armor = 0
end
end
return {values = {value = Formatting:format_stat(armor)}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = Formatting:format_stat(armor)}, bg_color = self._transparent, text_align = self._center_align}
if shelling_accuracy ~= false then
if shelling_accuracy ~= false then
self._shown_stats.shelling_accuracy = true
self._shown_stats.shelling_accuracy = true
else
shelling_accuracy = 0
end
end
return {values = {value = Formatting:format_stat(shelling_accuracy)}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = Formatting:format_stat(shelling_accuracy)}, bg_color = self._transparent, text_align = self._center_align}
if evasion ~= false then
if evasion ~= false then
self._shown_stats.evasion = true
self._shown_stats.evasion = true
else
evasion = 0
end
end
return {values = {value = Formatting:format_stat(evasion)}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = Formatting:format_stat(evasion)}, bg_color = self._transparent, text_align = self._center_align}
if speed ~= false then
if speed ~= false then
self._shown_stats.speed = true
self._shown_stats.speed = true
else
speed = 0
end
end
return {values = {value = Formatting:format_speed(speed)}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = Formatting:format_speed(speed)}, bg_color = self._transparent, text_align = self._center_align}
if range ~= false then
if range ~= false then
self._shown_stats.range = true
self._shown_stats.range = true
else
range = 0
end
end
return {values = {value = Formatting:format_range(range)}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = Formatting:format_range(range)}, bg_color = self._transparent, text_align = self._center_align}