• 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 26: Line 26:  
"speed",
 
"speed",
 
"range",
 
"range",
 +
"combat_radius",
 +
"deployment_cost",
 
"compatibility",
 
"compatibility",
 
"buildable",
 
"buildable",
Line 45: Line 47:  
"speed",
 
"speed",
 
"range",
 
"range",
 +
"combat_radius",
 +
"deployment_cost",
 
},
 
},
 
_stat_colors = {
 
_stat_colors = {
Line 59: Line 63:  
anti_bomber = "darkseagreen",
 
anti_bomber = "darkseagreen",
 
interception = "violet",
 
interception = "violet",
 +
combat_radius = "lightseagreen",
 +
deployment_cost = "#D4B390",
 
speed = "#72E6E6",
 
speed = "#72E6E6",
 
range = "lightseagreen",
 
range = "lightseagreen",
Line 216: Line 222:  
end
 
end
 
return {values = {value = Formatting:format_range(range)}, bg_color = self:get_bg_color(self._cell_color.range, range, self._args.range_operator, self._args.range_outstanding, self._args.range_good, self._args.range_bad), text_align = self._center_align}
 
return {values = {value = Formatting:format_range(range)}, bg_color = self:get_bg_color(self._cell_color.range, range, self._args.range_operator, self._args.range_outstanding, self._args.range_good, self._args.range_bad), text_align = self._center_align}
 +
end
 +
 +
function EquipmentComparisonKai:combat_radius(equipment)
 +
    local combat_radius = equipment:combat_radius()
 +
    if combat_radius then
 +
        self._shown_stats.combat_radius = true
 +
    else
 +
        combat_radius = "-"
 +
    end
 +
    return {values = {value = Formatting:format_stat(combat_radius)}, bg_color = self:get_bg_color(self._cell_color.combat_radius, combat_radius, self._args.combat_radius_operator, self._args.combat_radius_outstanding, self._args.combat_radius_good, self._args.combat_radius_bad), text_align = self._center_align}
 +
end
 +
 +
function EquipmentComparisonKai:deployment_cost(equipment)
 +
    local deployment_cost = equipment:deployment_cost()
 +
    if deployment_cost then
 +
        self._shown_stats.deployment_cost = true
 +
    else
 +
        deployment_cost = "-"
 +
    end
 +
    return {values = {value = Formatting:format_stat(deployment_cost)}, bg_color = self:get_bg_color(self._cell_color.deployment_cost, deployment_cost, self._args.deployment_cost_operator, self._args.deployment_cost_outstanding, self._args.deployment_cost_good, self._args.deployment_cost_bad), text_align = self._center_align}
 
end
 
end
  
Anonymous user

Navigation menu