Changes

no edit summary
Line 40: Line 40:  
_icon_caption_template = "${equipment} - ${equipment_type}",
 
_icon_caption_template = "${equipment} - ${equipment_type}",
 
_installation_label = "Installation",
 
_installation_label = "Installation",
 +
_opening_torpedo_label = "Opening Torpedo",
 
_air_power_template = "${air_power} Air Power",
 
_air_power_template = "${air_power} Air Power",
 
_night_bombing_label = "Night Bombing",
 
_night_bombing_label = "Night Bombing",
Line 101: Line 102:  
function EnemyShipListKai:armament(ship)
 
function EnemyShipListKai:armament(ship)
 
local icons, roles = {}, {}
 
local icons, roles = {}, {}
local sonar, dc, air_power, midget_submarine = false, false, false
+
local sonar, dc, air_power, midget_submarine = false, false, false, false
    
for i = 1, ship:slots_length() do
 
for i = 1, ship:slots_length() do
Line 134: Line 135:  
table.insert(roles, self._opening_torpedo_label)
 
table.insert(roles, self._opening_torpedo_label)
 
end
 
end
else
+
elseif midget_submarine then
if midget_submarine then
+
table.insert(roles, self._opening_torpedo_label)
table.insert(roles, self._opening_torpedo_label)
  −
end
   
end
 
end
 
if air_power then
 
if air_power then
Anonymous user