# KLM
REPLACE_OR_CREATE:curtiss_company_KLM = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/curtiss_airline_klm_icon.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/curtiss_comp_illu_airline.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_HOLLAND
		STATE_GELRE
	}
	building_types = {
		building_airport
	}
	# possible_prestige_goods = {
	# 	prestige_good_generic_flights
	# }
	potential = {
		has_interest_marker_in_region = sr:region_central_europe
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_HOLLAND
			}
		}
	}
	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_HOLLAND
				state_region = s:STATE_GELRE
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_airport
				level >= 1
			}
		}
	}
	prosperity_modifier = {
		building_aircraft_industry_throughput_add = 0.1
		state_infrastructure_from_population_add = 2
		state_infrastructure_from_population_max_add = 8
	}
	ai_will_do = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_HOLLAND
				state_region = s:STATE_GELRE
			}
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_airport = {
			level = 1
			state_trigger = {
				state_region = s:STATE_HOLLAND
			}
		}
	}
	ai_weight = {
		value = 3		# Higher base value for flavored companies
	}
}

# Deutsche Luftreederei
REPLACE_OR_CREATE:curtiss_company_DLR = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/curtiss_airline_dlr_icon.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/curtiss_comp_illu_airline.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_BRANDENBURG
	}
	building_types = {
		building_airport
	}
	# possible_prestige_goods = {
	# 	prestige_good_generic_flights
	# }
	potential = {
		has_interest_marker_in_region = sr:region_central_europe
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_BRANDENBURG
			}
		}
	}
	possible = {
		any_scope_state = {
			state_region = s:STATE_BRANDENBURG
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_airport
				level >= 1
			}
		}
	}
	prosperity_modifier = {
		building_aircraft_industry_throughput_add = 0.1
		state_infrastructure_from_population_add = 2
		state_infrastructure_from_population_max_add = 8
	}
	ai_will_do = {
		any_scope_state = {
			state_region = s:STATE_BRANDENBURG
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_airport = {
			level = 1
			state_trigger = {
				state_region = s:STATE_BRANDENBURG
			}
		}
	}
	ai_weight = {
		value = 3		# Higher base value for flavored companies
	}
}

# Imperial Airways
REPLACE_OR_CREATE:curtiss_company_imperial_airways = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/curtiss_airline_imperial_airways_icon.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/curtiss_comp_illu_airline.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_HOME_COUNTIES
	}
	building_types = {
		building_airport
	}
	# possible_prestige_goods = {
	# 	prestige_good_generic_flights
	# }
	potential = {
		has_interest_marker_in_region = sr:region_western_europe
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_HOME_COUNTIES
			}
		}
	}
	possible = {
		any_scope_state = {
			state_region = s:STATE_HOME_COUNTIES
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_airport
				level >= 1
			}
		}
	}
	prosperity_modifier = {
		building_aircraft_industry_throughput_add = 0.1
		state_infrastructure_from_population_add = 2
		state_infrastructure_from_population_max_add = 8
	}
	ai_will_do = {
		any_scope_state = {
			state_region = s:STATE_HOME_COUNTIES
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_airport = {
			level = 1
			state_trigger = {
				state_region = s:STATE_HOME_COUNTIES
			}
		}
	}
	ai_weight = {
		value = 3		# Higher base value for flavored companies
	}
}

# Air France
REPLACE_OR_CREATE:curtiss_company_air_france = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/curtiss_airline_air_france_icon.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/curtiss_comp_illu_airline.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_ILE_DE_FRANCE
	}
	building_types = {
		building_airport
	}
	# possible_prestige_goods = {
	# 	prestige_good_generic_flights
	# }
	potential = {
		has_interest_marker_in_region = sr:region_western_europe
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_ILE_DE_FRANCE
			}
		}
	}
	possible = {
		any_scope_state = {
			state_region = s:STATE_ILE_DE_FRANCE
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_airport
				level >= 1
			}
		}
	}
	prosperity_modifier = {
		building_aircraft_industry_throughput_add = 0.1
		state_infrastructure_from_population_add = 2
		state_infrastructure_from_population_max_add = 8
	}
	ai_will_do = {
		any_scope_state = {
			state_region = s:STATE_ILE_DE_FRANCE
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_airport = {
			level = 1
			state_trigger = {
				state_region = s:STATE_ILE_DE_FRANCE
			}
		}
	}
	ai_weight = {
		value = 3		# Higher base value for flavored companies
	}
}

# Swissair
REPLACE_OR_CREATE:curtiss_company_swissair = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/curtiss_airline_swissair_icon.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/curtiss_comp_illu_airline.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_EAST_SWITZERLAND
	}
	building_types = {
		building_airport
	}
	# possible_prestige_goods = {
	# 	prestige_good_generic_flights
	# }
	potential = {
		has_interest_marker_in_region = sr:region_central_europe
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_EAST_SWITZERLAND
			}
		}
	}
	possible = {
		any_scope_state = {
			state_region = s:STATE_EAST_SWITZERLAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_airport
				level >= 1
			}
		}
	}
	prosperity_modifier = {
		building_aircraft_industry_throughput_add = 0.1
		state_infrastructure_from_population_add = 2
		state_infrastructure_from_population_max_add = 8
	}
	ai_will_do = {
		any_scope_state = {
			state_region = s:STATE_EAST_SWITZERLAND
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_airport = {
			level = 1
			state_trigger = {
				state_region = s:STATE_EAST_SWITZERLAND
			}
		}
	}
	ai_weight = {
		value = 3		# Higher base value for flavored companies
	}
}

#Pan American Airways
company_pan_american_airways = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_pan_american_airways.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/curtiss_comp_illu_airline.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_FLORIDA
		STATE_PANAMA
	}
	building_types = {
		building_airport
	}
	# possible_prestige_goods = {
	# 	prestige_good_generic_flights
	# }
	potential = {
		has_interest_marker_in_region = sr:region_atlantic_coast
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				OR = {
					state_region = s:STATE_FLORIDA
					state_region = s:STATE_PANAMA
				}
			}
		}
	}
	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_FLORIDA
				state_region = s:STATE_PANAMA
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_airport
				level >= 1
			}
		}
		has_technology_researched = international_travel
	}
	prosperity_modifier = {
		building_aircraft_industry_throughput_add = 0.1
		state_infrastructure_from_population_add = 2
		state_infrastructure_from_population_max_add = 8
	}
	ai_will_do = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_FLORIDA
				state_region = s:STATE_PANAMA
			}
		}
	}
	ai_construction_targets = {
		building_airport = {
			level = 1
			state_trigger = {
				state_region = s:STATE_FLORIDA
			}
		}
	}
	ai_weight = {
		value = 3		# Higher base value for flavored companies
	}
}

#Turk Hava Yollari (Turkish Airline)
company_turk_hava_yollari_turkish = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_turk_hava_yollari_turkish.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/curtiss_comp_illu_airline.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_ANKARA
	}
	building_types = {
		building_airport
	}
	# possible_prestige_goods = {
	# 	prestige_good_generic_flights
	# }
	potential = {
		has_interest_marker_in_region = sr:region_near_east
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_ANKARA
			}
		}
	}
	possible = {
		any_scope_state = {
			state_region = s:STATE_ANKARA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_airport
				level >= 1
			}
		}
		has_technology_researched = international_travel
	}
	prosperity_modifier = {
		building_aircraft_industry_throughput_add = 0.1
		state_infrastructure_from_population_add = 2
		state_infrastructure_from_population_max_add = 8
	}
	ai_will_do = {
		has_technology_researched = international_travel
		any_scope_state = {
			state_region = s:STATE_ANKARA
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_airport = {
			level = 1
			state_trigger = {
				state_region = s:STATE_ANKARA
			}
		}
	}
	ai_weight = {
		value = 3		# Higher base value for flavored companies
	}
}

#Emirates Airline 
company_emirates_airline = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/emirates.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/curtiss_comp_illu_airline.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_ABU_DHABI
	}
	building_types = {
		building_airport
	}
	# possible_prestige_goods = {
	# 	prestige_good_generic_flights
	# }
	potential = {
		has_interest_marker_in_region = sr:region_arabia
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_ABU_DHABI
			}
		}
	}
	possible = {
		any_scope_state = {
			state_region = s:STATE_ABU_DHABI
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_airport
				level >= 1
			}
		}
		has_technology_researched = globalization
	}
	prosperity_modifier = {
		building_aircraft_industry_throughput_add = 0.05
		building_mendelejew_hydrogenation_plants_throughput_add = 0.1
		state_infrastructure_from_population_add = 2
		state_infrastructure_from_population_max_add = 8
	}
	ai_will_do = {
		has_technology_researched = globalization
		any_scope_state = {
			state_region = s:STATE_ABU_DHABI
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_airport = {
			level = 1
			state_trigger = {
				state_region = s:STATE_ABU_DHABI
			}
		}
	}
	ai_weight = {
		value = 3		# Higher base value for flavored companies
	}
}

#Air China
company_air_china = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/air_china.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/curtiss_comp_illu_airline.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_BEIJING
	}
	building_types = {
		building_airport
	}
	# possible_prestige_goods = {
	# 	prestige_good_generic_flights
	# }
	potential = {
		has_interest_marker_in_region = sr:region_north_china
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_BEIJING
			}
		}
	}
	possible = {
		any_scope_state = {
			is_incorporated = yes
			state_region = s:STATE_BEIJING
			any_scope_building = {
				is_building_type = building_airport
				level >= 1
			}
		}
		has_technology_researched = international_travel
	}
	prosperity_modifier = {
		building_aircraft_industry_throughput_add = 0.1
		state_infrastructure_from_population_add = 2
		state_infrastructure_from_population_max_add = 8
	}
	ai_will_do = {
		has_technology_researched = international_travel
		any_scope_state = {
			state_region = s:STATE_BEIJING
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_airport = {
			level = 1
			state_trigger = {
				state_region = s:STATE_BEIJING
			}
		}
	}
	ai_weight = {
		value = 3		# Higher base value for flavored companies
	}
}

# Boeing Airplane Company
company_boeing = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/boeing.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/curtiss_comp_illu_airline.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_VIRGINIA
	}
	building_types = {
		building_aircraft_industry
	}
	extension_building_types = {
		building_munition_plant
	}
	possible_prestige_goods = {
		prestige_good_boeing_aircraft
	}
	potential = {
		has_interest_marker_in_region = sr:region_atlantic_coast
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_VIRGINIA
			}
		}
	}
	possible = {
		any_scope_state = {
			state_region = s:STATE_VIRGINIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_aircraft_industry
				level >= 3
			}
		}
	}
	prosperity_modifier = {
		building_airport_throughput_add = 0.25
		#building_space_assets_industry_throughput_add = 0.15
		building_motor_industry_throughput_add = 0.05
		building_artillery_foundry_throughput_add = 0.05
		building_railway_throughput_add = -0.1
	}
	ai_will_do = {
		any_scope_state = {
			state_region = s:STATE_VIRGINIA
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_aircraft_industry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_VIRGINIA
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

# Airbus
company_airbus = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/airbus.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/curtiss_comp_illu_airline.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_ILE_DE_FRANCE
	}
	building_types = {
		building_aircraft_industry
	}
	extension_building_types = {
		building_munition_plant
		#building_space_assets_industry 
	}
	possible_prestige_goods = {
		prestige_good_airbus_aircraft
	}
	potential = {
		OR = {
			has_interest_marker_in_region = sr:region_western_europe
			has_interest_marker_in_region = sr:region_central_europe
			has_interest_marker_in_region = sr:region_southern_europe
		}
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				OR = {
					state_region = s:STATE_ILE_DE_FRANCE
					state_region = s:STATE_RUHR
					state_region = s:STATE_HOLLAND
					state_region = s:STATE_CATALONIA
				}
			}
		}
	}
	possible = {
		OR = {
			any_scope_state = {
				state_region = s:STATE_ILE_DE_FRANCE
				is_incorporated = yes
				any_scope_building = {
					is_building_type = building_aircraft_industry
					level >= 3
				}
			}
			AND = {
				has_technology_researched = international_travel
				any_scope_state = {
					OR = {
						state_region = s:STATE_RUHR
						state_region = s:STATE_HOLLAND
						state_region = s:STATE_CATALONIA
					}
					is_incorporated = yes
					any_scope_building = {
						is_building_type = building_aircraft_industry
						level >= 3
					}
				}
			}
		}
	}
	prosperity_modifier = {
		building_airport_throughput_add = 0.25
		#building_space_assets_industry_throughput_add = 0.1
		building_motor_industry_throughput_add = 0.05
	}
	ai_will_do = {
		OR = {
			AND = {
				any_scope_state = {
					state_region = s:STATE_ILE_DE_FRANCE
					is_incorporated = yes
				}
			}
			has_technology_researched = international_travel
		}
	}
	ai_construction_targets = {
		building_aircraft_industry = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_ILE_DE_FRANCE
					state_region = s:STATE_RUHR
					state_region = s:STATE_HOLLAND
					state_region = s:STATE_CATALONIA
				}
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

# Embraer
company_embraer = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/brazil_embraer.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/curtiss_comp_illu_airline.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_SAO_PAULO
	}
	building_types = {
		building_aircraft_industry
	}
	extension_building_types = {
		building_munition_plant
	}
	potential = {
		has_interest_marker_in_region = sr:region_brazil
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SAO_PAULO
			}
		}
	}
	possible = {
		any_scope_state = {
			state_region = s:STATE_SAO_PAULO
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_aircraft_industry
				level > 1
			}
		}
	}
	prosperity_modifier = {
		building_airport_throughput_add = 0.15
		state_infrastructure_mult = 0.05
	}
	ai_will_do = {
		any_scope_state = {
			state_region = s:STATE_SAO_PAULO
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_aircraft_industry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_SAO_PAULO
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

# Bombardier
company_bombardier = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/canada_bombardier.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/curtiss_comp_illu_airline.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_QUEBEC
	}
	building_types = {
		building_aircraft_industry
	}
	# extension_building_types = {  
	# 	building_space_assets_industry
	# }
	potential = {
		has_interest_marker_in_region = sr:region_canada
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_QUEBEC
			}
		}
	}
	possible = {
		any_scope_state = {
			state_region = s:STATE_QUEBEC
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_aircraft_industry
				level > 3
			}
		}
	}
	prosperity_modifier = {
		building_airport_throughput_add = 0.25
		building_railway_throughput_add = -0.1
	}
	ai_will_do = {
		any_scope_state = {
			state_region = s:STATE_QUEBEC
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_aircraft_industry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_QUEBEC
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

# COMAC
company_comac = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/china_comac.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/curtiss_comp_illu_airline.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_SUZHOU
	}
	building_types = {
		building_aircraft_industry
	}
	# extension_building_types = {  
	# 	building_space_assets_industry
	# }
	potential = {
		has_interest_marker_in_region = sr:region_south_china
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SUZHOU
			}
		}
	}
	possible = {
		any_scope_state = {
			state_region = s:STATE_SUZHOU
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_aircraft_industry
				level > 1
			}
		}
	}
	prosperity_modifier = {
		building_airport_throughput_add = 0.15
		building_alloys_plant_throughput_add = 0.1
	}
	ai_will_do = {
		any_scope_state = {
			state_region = s:STATE_SUZHOU
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_aircraft_industry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_SUZHOU
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}
