light_aircraft_production_default = {
	enable = {
		is_eligible_for_light_aircraft_production = yes
	}
	abort_when_not_enabled = yes

	ai_strategy = { type = air_factory_balance value = 30 }
	ai_strategy = { type = unit_ratio id = fighter value = 65 }
	ai_strategy = { type = unit_ratio id = cas value = 35 }
}

light_aircraft_production_losing_air_war = {
	enable = {
		is_eligible_for_light_aircraft_production = yes
		has_war = yes
		any_enemy_country = {
			has_deployed_air_force_size = {
				size > ROOT.num_deployed_planes_with_type@small_plane_airframe
				type = fighter
			}
		}
	}
	abort_when_not_enabled = yes

	ai_strategy = { type = unit_ratio id = fighter value = 15 }
	ai_strategy = { type = unit_ratio id = cas value = -15 }
}

light_aircraft_production_winning_air_war = {
	enable = {
		is_eligible_for_light_aircraft_production = yes
		has_war = yes
		NOT = {
			any_enemy_country = {
				has_deployed_air_force_size = {
					size > ROOT.num_deployed_planes_with_type@small_plane_airframe
					type = fighter
				}
			}
		}
	}
	abort_when_not_enabled = yes

	ai_strategy = { type = unit_ratio id = fighter value = -20 }
	ai_strategy = { type = unit_ratio id = cas value = 20 }
}

tac_bomber_production_default = {
	enable = {
		is_eligible_for_medium_aircraft_production = yes
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = air_factory_balance
		value = 5
	}
	ai_strategy = {
		type = unit_ratio
		id = cas
		value = -4
	}
	ai_strategy = {
		type = unit_ratio
		id = tactical_bomber
		value = 4
	}
}

operational_integrity_offset = {
	enable = {
		is_eligible_for_medium_aircraft_production = yes
		has_doctrine = new_operational_integrity
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = unit_ratio
		id = cas
		value = -8
	}
	ai_strategy = {
		type = unit_ratio
		id = tactical_bomber
		value = 8
	}
}

strat_bomber_air_production_default = {
	enable = {
		is_eligible_for_heavy_aircraft_production = yes
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = air_factory_balance
		value = 5
	}
	ai_strategy = {
		type = unit_ratio
		id = cas
		value = -4
	}
	ai_strategy = {
		type = unit_ratio
		id = strategic_bomber
		value = 4
	}
	ai_strategy = {
		type = unit_ratio
		id = fighter
		value = -4
	}
	ai_strategy = {
		type = unit_ratio
		id = heavy_fighter
		value = 4
	}
}

strategic_destruction_offset = {
	enable = {
		is_eligible_for_heavy_aircraft_production = yes
		has_doctrine = new_strategic_destruction 
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = unit_ratio
		id = cas
		value = -4
	}
	ai_strategy = {
		type = unit_ratio
		id = strategic_bomber
		value = 4
	}
	ai_strategy = {
		type = unit_ratio
		id = fighter
		value = -4
	}
	ai_strategy = {
		type = unit_ratio
		id = heavy_fighter
		value = 4
	}
}

naval_bomber_air_production = {
	enable = {
		is_eligible_for_naval_aircraft_production = yes
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = equipment_production_min_factories
		id = naval_bomber
		value = 1
	}
	ai_strategy = {
		type = equipment_production_min_factories
		id = maritime_patrol_plane
		value = 1
	}
}

CV_aircraft_production = {
	enable = {
		is_eligible_for_cv_aircraft_production = yes
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = equipment_production_min_factories
		id = cv_fighter
		value = 1
	}
	ai_strategy = {
		type = equipment_production_min_factories
		id = cv_naval_bomber
		value = 1
	}
	ai_strategy = {
		type = equipment_production_min_factories
		id = cv_cas
		value = 1
	}
}

other_aircraft_production_1 = {
	enable = {
		is_eligible_for_medium_aircraft_production = yes
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = equipment_production_min_factories
		id = air_transport
		value = 1
	}
	ai_strategy = {
		type = equipment_production_min_factories
		id = scout_plane
		value = 1
	}
}

other_aircraft_production_2 = {
	enable = {
		is_eligible_for_heavy_aircraft_production = yes
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = equipment_production_min_factories
		id = air_transport
		value = 1
	}
	ai_strategy = {
		type = equipment_production_min_factories
		id = scout_plane
		value = 2
	}
}
