• 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
Fix empty stat cells, fix torpedo cells
Line 157: Line 157:  
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}
Line 165: Line 167:  
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
   Line 173: Line 177:  
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}
Line 181: Line 187:  
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}
Line 189: Line 197:  
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}
Line 197: Line 207:  
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}
Line 205: Line 217:  
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}
Line 213: Line 227:  
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}
Line 221: Line 237:  
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}
Line 229: Line 247:  
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}
Line 237: Line 257:  
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}
Line 245: Line 267:  
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}
Anonymous user

Navigation menu