Changes

no edit summary
Line 392: Line 392:     
function EquipmentData:is_lbas_plane()
 
function EquipmentData:is_lbas_plane()
local eq_type = self:type()
+
self:_load_compatibility()
return eq_type == 6 -- Carrier-based Fighter Aircraft
+
return EquipmentCompatibility.AirBase[self:type()] or false
or eq_type == 7 -- Carrier-based Dive Bomber
+
-- local eq_type = self:type()
or eq_type == 8 -- Carrier-based Torpedo Bomber
+
-- return eq_type == 6 -- Carrier-based Fighter Aircraft
or eq_type == 9 -- Carrier-based Reconnaissance Aircraft
+
-- or eq_type == 7 -- Carrier-based Dive Bomber
or eq_type == 10 -- Reconnaissance Seaplane
+
-- or eq_type == 8 -- Carrier-based Torpedo Bomber
or eq_type == 11 -- Seaplane Bomber
+
-- or eq_type == 9 -- Carrier-based Reconnaissance Aircraft
or eq_type == 25 -- Rotorcraft
+
-- or eq_type == 10 -- Reconnaissance Seaplane
or eq_type == 26 -- Anti-submarine Patrol Aircraft
+
-- or eq_type == 11 -- Seaplane Bomber
or eq_type == 41 -- Large Flying Boat
+
-- or eq_type == 25 -- Rotorcraft
or eq_type == 45 -- Seaplane Fighter
+
-- or eq_type == 26 -- Anti-submarine Patrol Aircraft
or eq_type == 47 -- Land-based Attack Aircraft
+
-- or eq_type == 41 -- Large Flying Boat
or eq_type == 48 -- Land-based Fighter
+
-- or eq_type == 45 -- Seaplane Fighter
or eq_type == 49 -- Land-based Reconnaissance Aircraft
+
-- or eq_type == 47 -- Land-based Attack Aircraft
or eq_type == 53 -- Large Land-based Aircraft
+
-- or eq_type == 48 -- Land-based Fighter
or eq_type == 56 -- Jet-powered Fighter Aircraft
+
-- or eq_type == 49 -- Land-based Reconnaissance Aircraft
or eq_type == 57 -- Jet-powered Fighter-Bomber
+
-- or eq_type == 53 -- Large Land-based Aircraft
or eq_type == 58 -- Jet-powered Attack Aircraft
+
-- or eq_type == 56 -- Jet-powered Fighter Aircraft
or eq_type == 59 -- Jet-powered Recon Aircraft
+
-- or eq_type == 57 -- Jet-powered Fighter-Bomber
or eq_type == 94 -- Carrier-based Reconnaissance Aircraft (II)
+
-- or eq_type == 58 -- Jet-powered Attack Aircraft
 +
-- or eq_type == 59 -- Jet-powered Recon Aircraft
 +
-- or eq_type == 94 -- Carrier-based Reconnaissance Aircraft (II)
 
end
 
end
  
cssedit, gkautomate
7,064

edits