# AI plane design for testing

generic_fighter = {
	category = air

	  

	available_for = {}

	roles = {
		air_fighter
	}

	priority = {
		factor = 1000
	}

#Dont need these because we start with better
#	great_war_fighter_default = {
#		priority = {
#			factor = 1
#			modifier = { 
#				has_tech = basic_small_airframe
#				factor = 0 #let's not waste XP here
#			}
#		}
#
#		target_variant = {
#			match_value = 1000
#			type = small_plane_airframe_0
#			modules = {
#				fixed_main_weapon_slot = light_mg_4x
#				fixed_auxiliary_weapon_slot_1 = light_mg_4x
#				engine_type_slot = engine_2_1x
#				special_type_slot_1 = empty
#				special_type_slot_2 = empty	
#			}
#		}
#
#		allowed_modules = {
#			engine_2_1x
#			light_mg_4x
#		}
#	}

	basic_fighter_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_small_airframe
				factor = 0 #let's not waste XP here
			}
		}

		target_variant = {
			match_value = 2000
			type = small_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = light_mg_4x
				fixed_auxiliary_weapon_slot_1 = light_mg_4x
				engine_type_slot = engine_2_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = empty	
			}
		}

		allowed_modules = {
			light_mg_4x
			engine_2_1x
			armor_plate_small
		}
	}

	improved_fighter_default = {
		priority = {
			factor = 10
			modifier = { 
				has_tech = advanced_small_airframe 
				factor = 0 #let's not waste XP here
			}
		}

		target_variant = {
			match_value = 3000
			type = small_plane_airframe_2
			modules = {
				fixed_main_weapon_slot = light_mg_4x
				fixed_auxiliary_weapon_slot_1 = light_mg_4x
				fixed_auxiliary_weapon_slot_2 = light_mg_4x
				engine_type_slot = {
					any_of = {
						engine_4_1x
						engine_3_1x
						engine_2_1x
					}
				} 	
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = {
					any_of = {
						radio_navigation_2
						radio_navigation_1						
					}
				} 	
				special_type_slot_3= {
					any_of = {
						air_air_radar_2
						air_air_radar_1						
					}
				} 
			}
		}

		allowed_modules = {
			light_mg_4x		
			engine_4_1x	
			engine_3_1x
			engine_2_1x
			armor_plate_small
			radio_navigation_1
			radio_navigation_2
			air_air_radar_1
			air_air_radar_2
		}
	}

	advanced_fighter_default = {
		priority = {
			factor = 10
		}

		target_variant = {
			match_value = 4000
			type = small_plane_airframe_3
			modules = {
				fixed_main_weapon_slot = light_mg_4x
				fixed_auxiliary_weapon_slot_1 = light_mg_4x
				fixed_auxiliary_weapon_slot_2 = light_mg_4x
				fixed_auxiliary_weapon_slot_3 = light_mg_4x
				engine_type_slot = {
					any_of = {
						engine_4_1x
						engine_3_1x
						engine_2_1x
					}
				} 	
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = {
					any_of = {
						radio_navigation_2
						radio_navigation_1
					}
				} 	
				special_type_slot_3= {
					any_of = {
						air_air_radar_2
						air_air_radar_1
					}
				} 
			}
		}

		allowed_modules = { 
			light_mg_4x		
			engine_4_1x	
			engine_3_1x
			engine_2_1x
			armor_plate_small
			radio_navigation_1
			radio_navigation_2
			air_air_radar_1
			air_air_radar_2
		}
	}
	jet_fighter_default = {
		priority = {
			factor = 10
		}

		target_variant = {
			match_value = 4000
			type = small_plane_airframe_4
			modules = {
				fixed_main_weapon_slot = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_1 = aircraft_cannon_2_2x
				engine_type_slot = jet_engine_2x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = empty	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_2_2x
			jet_engine_2x
			armor_plate_small
		}
	}
}

generic_cas = {
	category = air

	  

	available_for = {}

	roles = {
		air_cas
	}

	priority = {
		factor = 100
	}
	cas_1 = {
		priority = {
			factor = 100	
		}
		target_variant = {
			match_value = 1000
			type = small_plane_cas_airframe_1
			modules = {
				fixed_main_weapon_slot = bomb_locks
				fixed_auxiliary_weapon_slot_1 = bomb_locks
				engine_type_slot = engine_2_1x
				special_type_slot_1 = dive_brakes_small
				special_type_slot_2 = self_sealing_fuel_tanks_small	
			}
			
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			self_sealing_fuel_tanks_small
		}
	}
	cas_2 = {
		priority = {
			factor = 200
		}
		target_variant = {
			match_value = 1500
			type = small_plane_cas_airframe_2
			modules = {
				fixed_main_weapon_slot = bomb_locks
				fixed_auxiliary_weapon_slot_1 = bomb_locks
				fixed_auxiliary_weapon_slot_2 = bomb_locks
				engine_type_slot = {
					any_of = {
						engine_4_1x
						engine_3_1x
						engine_2_1x
					}
				} 	
				special_type_slot_1 = dive_brakes_small
				special_type_slot_2 = self_sealing_fuel_tanks_small	
			}
		}
		allowed_modules = {
			bomb_locks
			engine_4_1x
			engine_3_1x
			engine_2_2x
			dive_brakes_small
			self_sealing_fuel_tanks_small
		}
	}
	cas_3 = {
		priority = {
			factor = 200
		}
		target_variant = {
			match_value = 2500
			type = small_plane_cas_airframe_3
			modules = {
				fixed_main_weapon_slot = bomb_locks
				fixed_auxiliary_weapon_slot_1 = bomb_locks
				fixed_auxiliary_weapon_slot_2 = bomb_locks
				fixed_auxiliary_weapon_slot_3 = bomb_locks
				engine_type_slot = {
					any_of = {
						engine_4_1x
						engine_3_1x
						engine_2_1x
					}
				} 
				special_type_slot_1 = dive_brakes_small
				special_type_slot_2 = self_sealing_fuel_tanks_small	
				special_type_slot_3 = armor_plate_small
			}
		}

		allowed_modules = {
			bomb_locks
			engine_4_1x
			engine_3_1x
			engine_2_1x
			armor_plate_small
			dive_brakes_small
			self_sealing_fuel_tanks_small
		}
	}
}

