• 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 fit group for large caliber main guns
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><br />
+
<div>${icon} <b>${eq_type}</b>${fit_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})",
 
_library_name_label = "Library name",
 
_library_name_label = "Library name",
 
_list_name_label = "List name",
 
_list_name_label = "List name",
Line 210: Line 211:     
function EquipmentInfoKai:eq_type()
 
function EquipmentInfoKai:eq_type()
self._vars.eq_type = Formatting:format_equipment_type(self._equipment:type())
+
local eq_type = self._equipment:type()
 +
self._vars.eq_type = Formatting:format_equipment_type(eq_type)
 
local album_type = self._equipment:album_type()
 
local album_type = self._equipment:album_type()
 
if album_type then
 
if album_type then
 
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
 +
if eq_type == 3 or eq_type == 38 then
 +
self._vars.fit_group = format{self._fit_group_template, fit_group = self._equipment:gun_fit_group()}
 +
else
 +
self._vars.fit_group = ""
 
end
 
end
 
end
 
end
Anonymous user

Navigation menu