generic_cv_fighter = {
	category = air

	roles = {
		air_cv_fighter
	}

	priority = {
		base = 0
		modifier = {
			add = 1000
			is_eligible_for_cv_aircraft_production = yes
		}
	}

	early_cv_fighter_1933 = {
		priority = {
			factor = 1
			modifier = {
				has_tech = basic_small_airframe
				factor = 0 #let's not waste XP here
			}
		}

		target_variant = {
			match_value = 1000
			type = cv_small_plane_airframe_0
			modules = {
				fixed_main_weapon_slot = light_mg_4x
				fixed_auxiliary_weapon_slot_1 = light_mg_4x
				engine_type_slot = engine_1_1x
				special_type_slot_1 = empty
				special_type_slot_2 = empty	
			}
		}
	}

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

		target_variant = {
			match_value = 2000
			type = cv_small_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = {
					any_of = {
						heavy_mg_4x
						light_mg_4x
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = {
						heavy_mg_4x
						light_mg_4x
					}
				}
				engine_type_slot = engine_2_1x
				special_type_slot_1 = self_sealing_fuel_tanks_small
				special_type_slot_2 = empty	
			}
		}
	}

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

		target_variant = {
			match_value = 3000
			type = cv_small_plane_airframe_2
			modules = {
				fixed_main_weapon_slot = {
					any_of = {
						heavy_mg_4x
						light_mg_4x
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = {
						heavy_mg_4x
						light_mg_4x
					}
				}
				fixed_auxiliary_weapon_slot_2 = {
					any_of = {
						heavy_mg_4x
						light_mg_4x
					}
				}
				engine_type_slot = engine_3_1x
				special_type_slot_1 = self_sealing_fuel_tanks_small 
				special_type_slot_2 = empty	
			}
		}
	}

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

		target_variant = {
			match_value = 4000
			type = cv_small_plane_airframe_3
			modules = {
				fixed_main_weapon_slot = {
					any_of = {
						aircraft_cannon_1_2x
						heavy_mg_4x
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = {
						aircraft_cannon_1_2x
						heavy_mg_4x
					}
				}
				fixed_auxiliary_weapon_slot_2 = {
					any_of = {
						aircraft_cannon_1_2x
						heavy_mg_4x
					}
				}
				engine_type_slot = engine_4_1x
				special_type_slot_1 = self_sealing_fuel_tanks_small 
				special_type_slot_2 = empty	
			}
		}
	}

	modern_cv_fighter_1945 = {
		priority = {
			factor = 100
		}

		target_variant = {
			match_value = 4000
			type = cv_small_plane_airframe_4
			modules = {
				fixed_main_weapon_slot = {
					any_of = {
						aircraft_cannon_2_2x
						aircraft_cannon_1_2x
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = {
						aircraft_cannon_2_2x
						aircraft_cannon_1_2x
					}
				}
				fixed_auxiliary_weapon_slot_2 = {
					any_of = {
						aircraft_cannon_2_2x
						aircraft_cannon_1_2x
					}
				}
				fixed_auxiliary_weapon_slot_3 = {
					any_of = {
						aircraft_cannon_2_2x
						aircraft_cannon_1_2x
					}
				}
				engine_type_slot = jet_engine_2x
				special_type_slot_1 = self_sealing_fuel_tanks_small 
				special_type_slot_2 = empty	
			}
		}
	}
}
