• 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
Add concentrated aa gun and air radar detection.
Line 16: Line 16:  
|-
 
|-
 
| colspan="2" style="text-align: center; background-color: whitesmoke;" |
 
| colspan="2" style="text-align: center; background-color: whitesmoke;" |
<div>${icon} <b>${eq_type}</b>${fit_group}<br />
+
<div>${icon} <b>${eq_type}</b>${eq_group}<br />
 
<b>Effects: ${effects}</b>${flight_stats}</div>
 
<b>Effects: ${effects}</b>${flight_stats}</div>
 
<p>'''Scrap value: ${scrap}''' (${buildable})</p>${alternative_names}  
 
<p>'''Scrap value: ${scrap}''' (${buildable})</p>${alternative_names}  
Line 45: Line 45:  
-- _collapsed_content_row = [[<div style="text-align: center; background-color: whitesmoke; margin:2px 0px 2px;">${content}</div>]],
 
-- _collapsed_content_row = [[<div style="text-align: center; background-color: whitesmoke; margin:2px 0px 2px;">${content}</div>]],
 
_alternative_name_template = [[<div style="display: inline-block; vertical-align: middle;"><small>''${label}:''</small></div> <div style="display: inline-block; vertical-align: middle;"><small>''${name}<br />${japanese_name}''</small></div>]],
 
_alternative_name_template = [[<div style="display: inline-block; vertical-align: middle;"><small>''${label}:''</small></div> <div style="display: inline-block; vertical-align: middle;"><small>''${name}<br />${japanese_name}''</small></div>]],
_fit_group_template = " (${fit_group})",
+
_eq_group_template = " (${eq_group})",
 
_fit_group_tooltip = "Fit group based on experimental findings",
 
_fit_group_tooltip = "Fit group based on experimental findings",
 +
_concentrated_label = "Concentrated",
 +
_air_radar_label = "Air Radar",
 
_library_name_label = "Library name",
 
_library_name_label = "Library name",
 
_list_name_label = "List name",
 
_list_name_label = "List name",
Line 218: Line 220:  
self._vars.eq_type = Formatting:tooltip(self._vars.eq_type, album_type)
 
self._vars.eq_type = Formatting:tooltip(self._vars.eq_type, album_type)
 
end
 
end
 +
self._vars.eq_group = ""
 
if eq_type == 3 or eq_type == 38 then
 
if eq_type == 3 or eq_type == 38 then
self._vars.fit_group = format{self._fit_group_template, fit_group = Formatting:tooltip(Formatting:format_stat(self._equipment:gun_fit_group()), self._fit_group_tooltip)}
+
self._vars.eq_group = format{self._eq_group_template, eq_group = Formatting:tooltip(Formatting:format_stat(self._equipment:gun_fit_group()), self._fit_group_tooltip)}
else
+
elseif eq_type == 21 then
self._vars.fit_group = ""
+
local aa = self._equipment:aa()
 +
if aa and aa >= 9 then
 +
self._vars.eq_group = format{self._eq_group_template, eq_group = self._concentrated_label}
 +
end
 +
elseif eq_type == 12 or eq_type == 13 or eq_type == 93 then
 +
local aa = self._equipment:aa()
 +
if aa and aa >= 2 then
 +
self._vars.eq_group = format{self._eq_group_template, eq_group = self._air_radar_label}
 +
end
 
end
 
end
 
end
 
end
Anonymous user

Navigation menu