Changes

no edit summary
Line 19: Line 19:  
! style="width: 30px; text-align: center; vertical-align: middle; background-color: #F2E279;" | ${armor}
 
! style="width: 30px; text-align: center; vertical-align: middle; background-color: #F2E279;" | ${armor}
 
! style="width: 30px; text-align: center; vertical-align: middle; background-color: violet;" | ${evasion}
 
! style="width: 30px; text-align: center; vertical-align: middle; background-color: violet;" | ${evasion}
! style="text-align: center; vertical-align: middle;" | Equipment
+
! style="text-align: center; vertical-align: middle;" | Armament
 
! style="text-align:left;" | Notes]],
 
! style="text-align:left;" | Notes]],
 
_columns = {
 
_columns = {
Line 32: Line 32:  
"armor",
 
"armor",
 
"evasion",
 
"evasion",
"equipment",
+
"armament",
 
"notes",
 
"notes",
 
},
 
},
Line 41: Line 41:  
_installation_label = "Installation",
 
_installation_label = "Installation",
 
_air_power_template = "${air_power} Air Power",
 
_air_power_template = "${air_power} Air Power",
 +
_night_bombing_label = "Night Bombing",
 
_asw_label = "ASW",
 
_asw_label = "ASW",
 
_high_asw_label = "High ASW",
 
_high_asw_label = "High ASW",
Line 98: Line 99:  
end
 
end
   −
function EnemyShipListKai:equipment(ship)
+
function EnemyShipListKai:armament(ship)
 
local icons, roles = {}, {}
 
local icons, roles = {}, {}
local sonar, dc = false, false
+
local sonar, dc, air_power = false, false, false
    
for i = 1, ship:slots_length() do
 
for i = 1, ship:slots_length() do
Line 138: Line 139:  
if air_power then
 
if air_power then
 
table.insert(roles, format{self._air_power_template, air_power = Formatting:format_stat(ship:air_power())})
 
table.insert(roles, format{self._air_power_template, air_power = Formatting:format_stat(ship:air_power())})
 +
end
 +
if ShipCapabilities:_is_aviation_ship(ship) then
 +
if ship:night_bombing() then
 +
table.insert(roles, self._night_bombing_label)
 +
end
 
end
 
end
 
if sonar or dc then
 
if sonar or dc then
Anonymous user