Changes
mLine 124:
Line 124:
− +
Line 140:
Line 140:
− +
− +
try to fix
elseif ShipCapabilities:_is_depth_charge(equipment) then
elseif ShipCapabilities:_is_depth_charge(equipment) then
dc = true
dc = true
elseif ShipCapabilities:_is_active_midget_submarine(equipment) then
elseif equipment:id() == 41 or equipment:id() == 541 then
active_midget_submarine = true
active_midget_submarine = true
end
end
table.insert(icons, icon)
table.insert(icons, icon)
end
end
if --[[ShipCapabilities:_is_submarine(ship)]] true then
if ShipCapabilities:_is_submarine(ship) then
if --[[ship:suffix() and (ship:suffix():match("Elite") or ship:suffix():match("Flagship"))]] true then
if ship:suffix() and (ship:suffix():match("Elite") or ship:suffix():match("Flagship")) then
table.insert(roles, self._opening_torpedo_label)
table.insert(roles, self._opening_torpedo_label)
end
end