Changes

Line 24: Line 24:  
! style="text-align:left;" | Notes
 
! style="text-align:left;" | Notes
 
! style="text-align:left;" | OASW
 
! style="text-align:left;" | OASW
! style="text-align:left;" | Opening Torpedo]],
+
! style="text-align:left;" | Opening Torpedo
 +
! style="text-align:left;" | Night Bombing]],
 
_columns = {
 
_columns = {
 
"card",
 
"card",
Line 39: Line 40:  
"notes",
 
"notes",
 
"oasw",
 
"oasw",
"otorp"
+
"otorp",
 +
"nightbombing",
 
},
 
},
 
_cell = [[|style="text-align:${text_align};background-color:${bg_color}"|${value}]],
 
_cell = [[|style="text-align:${text_align};background-color:${bg_color}"|${value}]],
Line 163: Line 165:  
         end
 
         end
 
table.insert(roles, ap_text)
 
table.insert(roles, ap_text)
end
  −
if ShipCapabilities:_is_night_bombing(ship) then
  −
table.insert(roles, self._night_bombing_label)
   
end
 
end
 
if sonar or dc then
 
if sonar or dc then
Line 230: Line 229:     
return {value = table.concat(roles, ", "), bg_color = can_otorp and "green" or "self._transparent", text_align = self._start_align}
 
return {value = table.concat(roles, ", "), bg_color = can_otorp and "green" or "self._transparent", text_align = self._start_align}
 +
end
 +
 +
function EnemyShipListKai:nightbombing(ship)
 +
local roles = {}
 +
local can_night = false
 +
 +
if ShipCapabilities:_is_night_bombing(ship) then
 +
can_night = true
 +
end
 +
table.insert(roles, can_night and "Yes" or "No")
 +
 +
return {value = table.concat(roles, ", "), bg_color = can_night and "green" or "self._transparent", text_align = self._start_align}
 
end
 
end
  
1,025

edits