• 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 18: Line 18:  
<div>${icon} <b>${eq_type}</b><br />
 
<div>${icon} <b>${eq_type}</b><br />
 
<b>Effects: ${effects}</b></div>
 
<b>Effects: ${effects}</b></div>
<p>'''Scrap value: ${scrap}''' (${buildable})</p>${alternative_names}  
+
<p>'''Scrap value: ${scrap}''' (${buildable})</p>${flight_stats}${alternative_names}  
 
|-  
 
|-  
 
| colspan="2" style="text-align: center;" | ${card}
 
| colspan="2" style="text-align: center;" | ${card}
Line 36: Line 36:  
_compatibility_cell = [[| style="width: 190px; text-align: center; background-color: ${bg_color};" | ${label}]],
 
_compatibility_cell = [[| style="width: 190px; text-align: center; background-color: ${bg_color};" | ${label}]],
 
_localized_name_template = "<p>''${localized_name}''</p>",
 
_localized_name_template = "<p>''${localized_name}''</p>",
 +
_flight_stats_template = [[
 +
|-
 +
| colspan="2" style="text-align: center; padding: 0px;" | Flight Range: ${flight_range}]],
 
_alternative_names_template = [[  
 
_alternative_names_template = [[  
 
|-
 
|-
Line 72: Line 75:  
"name",
 
"name",
 
"localized_name",
 
"localized_name",
 +
"flight_stats",
 
"alternative_names",
 
"alternative_names",
 
"id",
 
"id",
Line 115: Line 119:  
self._vars.localized_name = ""
 
self._vars.localized_name = ""
 
end
 
end
 +
end
 +
 +
function EquipmentInfoKai:flight_stats()
 +
    local eq_type = self._equipment:type()
 +
    if eq_type == 8 or eq_type == 9 or eq_type == 11 or eq_type == 10 or eq_type == 41 or eq_type == 45 or eq_type == 47 or eq_type == 48 or eq_type == 94 then
 +
        self._vars.flight_stats = format{self._flight_stats_template, flight_range = Formatting:format_stat(self._equipment:flight_range())}
 +
    else
 +
        self._vars.flight_stats = ""
 +
    end
 
end
 
end
  
Anonymous user

Navigation menu