Changes

no edit summary
Line 101: Line 101:  
function EnemyShipListKai:armament(ship)
 
function EnemyShipListKai:armament(ship)
 
local icons, roles = {}, {}
 
local icons, roles = {}, {}
local sonar, dc, air_power = false, false, false
+
local sonar, dc, air_power, midget_submarine = false, false, false
    
for i = 1, ship:slots_length() do
 
for i = 1, ship:slots_length() do
Line 114: Line 114:  
elseif ShipCapabilities:_is_depth_charge(equipment) then
 
elseif ShipCapabilities:_is_depth_charge(equipment) then
 
dc = true
 
dc = true
 +
elseif ShipCapabilities:_is_midget_submarine(equipment) then
 +
midget_submarine = true
 
end
 
end
 
equipment_link, equipment = Formatting:format_link(equipment:link())
 
equipment_link, equipment = Formatting:format_link(equipment:link())
Anonymous user