Changes

make difference between enemy submarines and player submarines
Line 551: Line 551:  
return false
 
return false
 
end
 
end
 +
local is_enemy_submarine = self._ship:id() > 1500 and self:_is_submarine()
 +
local is_player_submarine = self._ship:id() <= 1500 and self:_is_submarine()
 
     if
 
     if
         self:_find_equipment(Self._is_active_midget_submarine) or
+
         not is_enemy_submarine and self:_find_equipment(Self._is_active_midget_submarine) or
         self:_is_submarine() and self._ship:level() and self._ship:level() >= 10 or
+
         is_player_submarine and self._ship:level() and self._ship:level() >= 10 or
         self:_is_submarine() and self._ship:suffix() and self._ship:suffix():match("Elite") or
+
         is_enemy_submarine and self._ship:suffix() and (self._ship:suffix():match("Elite") or self._ship:suffix():match("Flagship"))
        self:_is_submarine() and self._ship:suffix() and self._ship:suffix():match("Flagship")
   
     then
 
     then
 
         torpedo = self:_fold_equipment(torpedo, function(equipment, torpedo)
 
         torpedo = self:_fold_equipment(torpedo, function(equipment, torpedo)
Anonymous user