• 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 22: Line 22:  
"shelling_accuracy",
 
"shelling_accuracy",
 
"evasion",
 
"evasion",
 +
"anti_bomber",
 +
"interception",
 
"speed",
 
"speed",
 
"range",
 
"range",
Line 39: Line 41:  
"shelling_accuracy",
 
"shelling_accuracy",
 
"evasion",
 
"evasion",
 +
"anti_bomber",
 +
"interception",
 
"speed",
 
"speed",
 
"range",
 
"range",
Line 53: Line 57:  
shelling_accuracy = "darkseagreen",
 
shelling_accuracy = "darkseagreen",
 
evasion = "violet",
 
evasion = "violet",
 +
anti_bomber = "darkseagreen",
 +
interception = "violet",
 
speed = "#72E6E6",
 
speed = "#72E6E6",
 
range = "lightseagreen",
 
range = "lightseagreen",
Line 142: Line 148:  
function EquipmentComparisonKai:shelling_accuracy(equipment)
 
function EquipmentComparisonKai:shelling_accuracy(equipment)
 
local shelling_accuracy = equipment:shelling_accuracy()
 
local shelling_accuracy = equipment:shelling_accuracy()
 +
if equipment:type() == 48 then
 +
    shelling_accuracy = false
 +
end
 
if shelling_accuracy ~= false then
 
if shelling_accuracy ~= false then
 
self._shown_stats.shelling_accuracy = true
 
self._shown_stats.shelling_accuracy = true
Line 148: Line 157:  
end
 
end
 
return {values = {value = Formatting:format_stat(shelling_accuracy)}, bg_color = self:get_bg_color(self._cell_color.shelling_accuracy, shelling_accuracy, self._args.shelling_accuracy_operator, self._args.shelling_accuracy_outstanding, self._args.shelling_accuracy_good, self._args.shelling_accuracy_bad), text_align = self._center_align}
 
return {values = {value = Formatting:format_stat(shelling_accuracy)}, bg_color = self:get_bg_color(self._cell_color.shelling_accuracy, shelling_accuracy, self._args.shelling_accuracy_operator, self._args.shelling_accuracy_outstanding, self._args.shelling_accuracy_good, self._args.shelling_accuracy_bad), text_align = self._center_align}
 +
end
 +
 +
function EquipmentComparisonKai:anti_bomber(equipment)
 +
local anti_bomber = equipment:shelling_accuracy()
 +
if equipment:type() ~= 48 then
 +
    anti_bomber = false
 +
end
 +
if anti_bomber ~= false then
 +
self._shown_stats.anti_bomber = true
 +
else
 +
anti_bomber = 0
 +
end
 +
return {values = {value = Formatting:format_stat(anti_bomber)}, bg_color = self:get_bg_color(self._cell_color.anti_bomber, anti_bomber, self._args.anti_bomber_operator, self._args.anti_bomber_outstanding, self._args.anti_bomber_good, self._args.anti_bomber_bad), text_align = self._center_align}
 
end
 
end
    
function EquipmentComparisonKai:evasion(equipment)
 
function EquipmentComparisonKai:evasion(equipment)
 
local evasion = equipment:evasion()
 
local evasion = equipment:evasion()
 +
if equipment:type() == 48 then
 +
    evasion = false
 +
end
 
if evasion ~= false then
 
if evasion ~= false then
 
self._shown_stats.evasion = true
 
self._shown_stats.evasion = true
Line 158: Line 183:  
end
 
end
 
return {values = {value = Formatting:format_stat(evasion)}, bg_color = self:get_bg_color(self._cell_color.evasion, evasion, self._args.evasion_operator, self._args.evasion_outstanding, self._args.evasion_good, self._args.evasion_bad), text_align = self._center_align}
 
return {values = {value = Formatting:format_stat(evasion)}, bg_color = self:get_bg_color(self._cell_color.evasion, evasion, self._args.evasion_operator, self._args.evasion_outstanding, self._args.evasion_good, self._args.evasion_bad), text_align = self._center_align}
 +
end
 +
 +
function EquipmentComparisonKai:interception(equipment)
 +
local interception = equipment:evasion()
 +
if equipment:type() ~= 48 then
 +
    interception = false
 +
end
 +
if interception ~= false then
 +
self._shown_stats.interception = true
 +
else
 +
interception = 0
 +
end
 +
return {values = {value = Formatting:format_stat(interception)}, bg_color = self:get_bg_color(self._cell_color.interception, interception, self._args.interception_operator, self._args.interception_outstanding, self._args.interception_good, self._args.interception_bad), text_align = self._center_align}
 
end
 
end
  
Anonymous user

Navigation menu