Changes

Add capabilities
Line 55: Line 55:  
| colspan="5" style="text-align: center; background-color: LightSkyBlue;"| '''Equipment'''
 
| colspan="5" style="text-align: center; background-color: LightSkyBlue;"| '''Equipment'''
 
| style="text-align: center; background-color: LightSkyBlue; width: 50px;" | '''Space'''
 
| style="text-align: center; background-color: LightSkyBlue; width: 50px;" | '''Space'''
${slot_details}
+
${slot_details}|-
 +
| colspan="6" style="text-align: center; padding: 0px;" | <div class="mw-collapsible mw-collapsed">
 +
<div style="background-color: lightskyblue; text-align: center; margin: 0px;">'''Extra Statistics'''</div>
 +
<div class="mw-collapsible-content">
 +
<div style="text-align: left; display: flex; margin: 2px 0px;">
 +
<div margin-right: 1px; flex-basis: 120px; background-color: whitesmoke;">'''${icons.aircraft} Opening Airstrike'''</div>
 +
<div margin-left: 1px; flex-grow: 1; background-color: whitesmoke;">'''${opening_airstrike}'''</div>
 +
</div>
 +
<div style="text-align: left; display: flex; margin: 2px 0px;">
 +
<div margin-right: 1px; flex-basis: 120px; background-color: whitesmoke;">'''${icons.torpedo} Opening Torpedo'''</div>
 +
<div margin-left: 1px; flex-grow: 1; background-color: whitesmoke;">'''${opening_torpedo}'''</div>
 +
</div>
 +
<div style="text-align: left; display: flex; margin: 2px 0px;">
 +
<div margin-right: 1px; flex-basis: 120px; background-color: whitesmoke; color: dodgerblue;">'''${icons.firepower} Day Battle'''</div>
 +
<div margin-left: 1px; flex-grow: 1; background-color: whitesmoke;">'''${day_battle}'''</div>
 +
</div>
 +
<div style="text-align: left; display: flex; margin: 2px 0px;">
 +
<div margin-right: 1px; flex-basis: 120px; background-color: whitesmoke; color: forestgreen;">'''${icons.firepower} Artillery Spotting'''</div>
 +
<div margin-left: 1px; flex-grow: 1; background-color: whitesmoke;">'''${artillery_spotting}'''</div>
 +
</div>
 +
<div style="text-align: left; display: flex; margin: 2px 0px;">
 +
<div margin-right: 1px; flex-basis: 120px; background-color: whitesmoke;">'''${icons.torpedo} Closing Torpedo'''</div>
 +
<div margin-left: 1px; flex-grow: 1; background-color: whitesmoke;">'''${closing_torpedo}'''</div>
 +
</div>
 +
<div style="text-align: left; display: flex; margin: 2px 0px;">
 +
<div margin-right: 1px; flex-basis: 120px; background-color: whitesmoke;">'''${icons.asw} ASW Attack'''</div>
 +
<div margin-left: 1px; flex-grow: 1; background-color: whitesmoke;">'''${asw_attack}'''</div>
 +
</div>
 +
<div style="text-align: left; display: flex; margin: 2px 0px;">
 +
<div margin-right: 1px; flex-basis: 120px; background-color: whitesmoke;">'''${icons.firepower}${icons.torpedo} Night Battle'''</div>
 +
<div margin-left: 1px; flex-grow: 1; background-color: whitesmoke;">'''${night_battle}'''</div>
 +
</div>
 +
</div>
 +
</div>
 
|}]],
 
|}]],
 
_abyssal_class = "Abyssal",
 
_abyssal_class = "Abyssal",
Line 227: Line 260:  
function EnemyShipInfoKai:air_power()
 
function EnemyShipInfoKai:air_power()
 
self._vars.air_power = Formatting:format_stat(self._ship:air_power())
 
self._vars.air_power = Formatting:format_stat(self._ship:air_power())
 +
end
 +
 +
function EnemyShipInfoKai:capabilities()
 +
local capabilities = ShipCapabilities{ship = self._ship}
 +
self._vars.opening_airstrike = capabilities:opening_airstrike()
 +
self._vars.opening_torpedo = capabilities:opening_torpedo()
 +
self._vars.day_battle = capabilities:day_battle()
 +
self._vars.artillery_spotting = capabilities:artillery_spotting()
 +
self._vars.closing_torpedo = capabilities:closing_torpedo()
 +
self._vars.asw_attack = capabilities:asw_attack()
 +
self._vars.night_battle = capabilities:night_battle()
 
end
 
end
   Line 235: Line 279:  
function EnemyShipInfoKai:add_fields()
 
function EnemyShipInfoKai:add_fields()
 
table.insert(self._fields, "air_power")
 
table.insert(self._fields, "air_power")
 +
table.insert(self._fields, "capabilities")
 
end
 
end
    
return EnemyShipInfoKai
 
return EnemyShipInfoKai
Anonymous user