# Companies in this file
# Broken Hill Propretary Company
# Union Minière du Haut-Katanga
# CAMECO
# Compagnie Générale des Matières Nucléaires (Orano)
# Kazatomprom
# Rosatom
# Broken Hill Propretary Company
company_bhp = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/bhp.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_NEW_SOUTH_WALES
		STATE_VICTORIA
	}
	# possible_prestige_goods = {
	# 	prestige_good_australian_coal
	# }
	building_types = {
		building_iron_mine
		building_coal_mine
		building_uranium_mine
	}
	extension_building_types = {
		building_lead_mine
		building_commonores_mine
	}
	potential = {
		OR = {
			has_interest_marker_in_region = sr:region_oceania
		}
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				OR = {
					state_region = s:STATE_NEW_SOUTH_WALES
					state_region = s:STATE_VICTORIA
				}
				is_incorporated = yes
			}
		}
	}
	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_NEW_SOUTH_WALES
				state_region = s:STATE_VICTORIA
			}
			is_incorporated = yes
			any_scope_building = {
				Or = {
					is_building_type = building_coal_mine
					is_building_type = building_uranium_mine
				}
				level >= 3
			}
		}
	}
	prosperity_modifier = {
		building_power_plant_throughput_add = 0.05
		building_coal_mine_throughput_add = 0.05
		goods_input_good_uranium_mult = -0.1
	}
	ai_will_do = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_NEW_SOUTH_WALES
				state_region = s:STATE_VICTORIA
			}
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_coal_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_NEW_SOUTH_WALES
					state_region = s:STATE_VICTORIA
				}
			}
		}
		building_uranium_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_NEW_SOUTH_WALES
					state_region = s:STATE_VICTORIA
				}
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

# Union Minière du Haut-Katanga
company_union_miniere_du_haut_katanga = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/union_miniere_du_haut_katanga.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_FLANDERS
	}
	building_types = {
		building_uranium_mine
		building_copper_mine
	}
	extension_building_types = {
		building_rare_earths_mine
		building_advancedores_mine
	}
	potential = {
		OR = {
			has_interest_marker_in_region = sr:region_equatorial_africa
			has_interest_marker_in_region = sr:region_southern_africa
		}
	}
	attainable = {
		hidden_trigger = {
			OR = {
				has_state_in_state_region = STATE_KATANGA
				has_state_in_state_region = STATE_BOTSWANA
			}
		}
	}
	# Incorporation is not needed
	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_KATANGA
				state_region = s:STATE_BOTSWANA
			}
			any_scope_building = {
				Or = {
					is_building_type = building_copper_mine
					is_building_type = building_uranium_mine
				}
				level >= 3
			}
		}
	}
	prosperity_modifier = {
		building_power_plant_throughput_add = 0.05
		goods_input_good_uranium_mult = -0.1
	}
	ai_will_do = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_KATANGA
				state_region = s:STATE_BOTSWANA
			}
		}
	}
	ai_construction_targets = {
		building_copper_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_KATANGA
					state_region = s:STATE_BOTSWANA
				}
			}
		}
		building_uranium_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_KATANGA
					state_region = s:STATE_BOTSWANA
				}
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

# CAMECO
company_cameco = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/cameco.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_NORTHWEST_TERRITORIES
		STATE_SASKATCHEWAN
	}
	# possible_prestige_goods = {
	# 	prestige_high_quality_uranium
	# }
	building_types = {
		building_gold_mine
		building_uranium_mine
		building_power_plant
	}
	extension_building_types = {
		building_advancedores_mine
		building_rare_earths_mine
	}
	potential = {
		has_interest_marker_in_region = sr:region_canada
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				OR = {
					state_region = s:STATE_NORTHWEST_TERRITORIES
					state_region = s:STATE_SASKATCHEWAN
				}
			}
		}
	}
	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_NORTHWEST_TERRITORIES
				state_region = s:STATE_SASKATCHEWAN
			}
			is_incorporated = yes
			any_scope_building = {
				Or = {
					is_building_type = building_gold_mine
					is_building_type = building_uranium_mine
				}
				level >= 3
			}
		}
		has_technology_researched = verrier_modern_physics_tech
	}
	prosperity_modifier = {
		goods_input_good_uranium_mult = -0.05
		goods_output_good_uranium_mult = 0.05
		state_birth_rate_mult = 0.05
	}
	ai_will_do = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_NORTHWEST_TERRITORIES
				state_region = s:STATE_SASKATCHEWAN
			}
		}
	}
	ai_construction_targets = {
		building_gold_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_NORTHWEST_TERRITORIES
					state_region = s:STATE_SASKATCHEWAN
				}
			}
		}
		building_uranium_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_NORTHWEST_TERRITORIES
					state_region = s:STATE_SASKATCHEWAN
				}
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

# Compagnie Générale des Matières Nucléaires (Orano)
company_compagnie_generale_des_matieres_nucleaires = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/orano.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_ILE_DE_FRANCE
		STATE_PROVENCE
	}
	# possible_prestige_goods = {
	# 	prestige_high_quality_uranium
	# }
	building_types = {
		building_uranium_mine
		building_power_plant
	}
	potential = {
		OR = {
			has_interest_marker_in_region = sr:region_western_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_PROVENCE
				}
			}
		}
	}
	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_ILE_DE_FRANCE
				state_region = s:STATE_PROVENCE
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_uranium_mine
				level >= 3
			}
		}
		has_technology_researched = verrier_modern_physics_tech
	}
	prosperity_modifier = {
		building_power_plant_throughput_add = 0.05
		goods_input_good_uranium_mult = -0.05
		goods_output_good_uranium_mult = 0.05
	}
	ai_will_do = {
		has_technology_researched = verrier_modern_physics_tech
		any_scope_state = {
			OR = {
				state_region = s:STATE_ILE_DE_FRANCE
				state_region = s:STATE_PROVENCE
			}
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_uranium_mine = {
			level = 5
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

# Kazatomprom
company_kazatomprom = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/kazak_kazatomprom.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_KIRGHIZIA
		STATE_SEMIRECHE
		STATE_AKMOLINSK
	}
	# possible_prestige_goods = {
	# 	prestige_high_quality_uranium
	# }
	building_types = {
		building_uranium_mine
		building_advancedores_mine
	}
	extension_building_types = {
		building_rare_earths_mine
	}
	potential = {
		has_interest_marker_in_region = sr:region_central_asia
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				OR = {
					state_region = s:STATE_KIRGHIZIA
					state_region = s:STATE_SEMIRECHE
					state_region = s:STATE_AKMOLINSK
				}
			}
		}
	}
	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_KIRGHIZIA
				state_region = s:STATE_SEMIRECHE
				state_region = s:STATE_AKMOLINSK
			}
			is_incorporated = yes
			any_scope_building = {
				Or = {
					is_building_type = building_advancedores_mine
					is_building_type = building_uranium_mine
				}
				level >= 3
			}
		}
		has_technology_researched = verrier_modern_physics_tech
	}
	prosperity_modifier = {
		building_power_plant_throughput_add = 0.05
		goods_output_good_uranium_mult = 0.1
	}
	ai_will_do = {
		has_technology_researched = verrier_modern_physics_tech
		any_scope_state = {
			OR = {
				state_region = s:STATE_KIRGHIZIA
				state_region = s:STATE_SEMIRECHE
				state_region = s:STATE_AKMOLINSK
			}
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_advancedores_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_KIRGHIZIA
					state_region = s:STATE_SEMIRECHE
					state_region = s:STATE_AKMOLINSK
				}
			}
		}
		building_uranium_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_KIRGHIZIA
					state_region = s:STATE_SEMIRECHE
					state_region = s:STATE_AKMOLINSK
				}
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

# Rosatom
company_rosatom = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/russian_rosatom.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_TVER
		STATE_CHERSON
		STATE_MOSCOW
	}
	building_types = {
		building_uranium_mine
		building_power_plant
	}
	extension_building_types = {
		building_robotics_industry
		building_renewable_energy_power_plant
	}
	potential = {
		has_interest_marker_in_region = sr:region_russia
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				OR = {
					state_region = s:STATE_TVER
					state_region = s:STATE_CHERSON
				}
				is_incorporated = yes
			}
		}
	}
	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_TVER
				state_region = s:STATE_CHERSON
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_uranium_mine
				level >= 3
			}
		}
		has_technology_researched = verrier_modern_physics_tech
	}
	prosperity_modifier = {
		goods_output_good_uranium_mult = 0.15
	}
	ai_will_do = {
		has_technology_researched = verrier_modern_physics_tech
		any_scope_state = {
			OR = {
				state_region = s:STATE_TVER
				state_region = s:STATE_CHERSON
			}
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_uranium_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_TVER
					state_region = s:STATE_CHERSON
				}
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

# Glencore
company_Glencore = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/swizerland_glencore.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_WEST_SWITZERLAND
		STATE_EAST_SWITZERLAND
	}
	building_types = {
		building_rare_earths_mine
		building_copper_mine
		building_gold_mine
	}
	extension_building_types = {
		building_oil_rig
		building_natural_gas_rig
	}
	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 = {
				OR = {
					state_region = s:STATE_WEST_SWITZERLAND
					state_region = s:STATE_EAST_SWITZERLAND
				}
				is_incorporated = yes
			}
		}
	}
	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_WEST_SWITZERLAND
				state_region = s:STATE_EAST_SWITZERLAND
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_rare_earths_mine
				level >= 3
			}
		}
		has_technology_researched = rare_earths
	}
	prosperity_modifier = {
		building_battery_plant_throughput_add = 0.1
		state_market_access_price_impact = 0.05
	}
	ai_will_do = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_WEST_SWITZERLAND
				state_region = s:STATE_EAST_SWITZERLAND
			}
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_rare_earths_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_EAST_SWITZERLAND
				}
			}
		}
		building_copper_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_WEST_SWITZERLAND
					state_region = s:STATE_EAST_SWITZERLAND
				}
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

# Southern Copper Corporation
company_southern_copper_corp = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/peru_southern_copper_corp.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"
	flavored_company = yes
	building_types = {
		building_copper_mine
		building_bauxite_mine
		building_gold_mine
	}
	extension_building_types = {
		building_iron_mine
	}
	potential = {
		OR = {
			has_interest_marker_in_region = sr:region_andes
			has_interest_marker_in_region = sr:region_la_plata
		}
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				OR = {
					state_region = s:STATE_LIMA					# Peru
					state_region = s:STATE_SANTIAGO					# Chile
				}
				is_incorporated = yes
			}
		}
	}
	possible = {
		any_scope_state = {
			region = sr:region_andes
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_copper_mine
				level >= 3
			}
			count >= 2
		}
	}
	prosperity_modifier = {
		building_alloys_plant_throughput_add = 0.05
		building_tooling_workshop_throughput_add = 0.05
	}
	ai_will_do = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_LIMA				# Peru
				state_region = s:STATE_SANTIAGO				# Chile
			}
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_copper_mine = {
			level = 5
			state_trigger = {
				region = sr:region_la_plata
				is_incorporated = yes
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

# Rio Tinto
company_rio_tinto = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/rio_tinto.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_UPPER_ANDALUSIA
		STATE_NEW_SOUTH_WALES
		STATE_HOME_COUNTIES
	}
	building_types = {
		building_rare_earths_mine
		building_copper_mine
		building_bauxite_mine
	}
	extension_building_types = {
		building_iron_mine
	}
	potential = {
		OR = {
			has_interest_marker_in_region = sr:region_oceania
		}
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				OR = {
					state_region = s:STATE_NEW_SOUTH_WALES
				}
			}
		}
	}
	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_UPPER_ANDALUSIA
				state_region = s:STATE_NEW_SOUTH_WALES
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_copper_mine
				level >= 3
			}
		}
	}
	prosperity_modifier = {
		building_electronics_industry_throughput_add = 0.05
		building_battery_plant_throughput_add = 0.05
	}
	ai_will_do = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_NEW_SOUTH_WALES
			}
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_copper_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_NEW_SOUTH_WALES
				}
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

# China Rare Earth Group
company_china_rare_earth_group = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/china_rare_earth_group.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_SHANXI
		STATE_JIANGXI
		STATE_HINGGAN
	}
	building_types = {
		building_rare_earths_mine
		building_advancedores_mine
	}
	extension_building_types = {
		building_bauxite_mine
		building_copper_mine
	}
	potential = {
		has_interest_marker_in_region = sr:region_north_china
		has_interest_marker_in_region = sr:region_south_china
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				OR = {
					state_region = s:STATE_SHANXI
					state_region = s:STATE_JIANGXI
					state_region = s:STATE_HINGGAN
				}
			}
		}
	}
	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_SHANXI
				state_region = s:STATE_JIANGXI
				state_region = s:STATE_HINGGAN
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_rare_earths_mine
				level >= 3
			}
		}
	}
	prosperity_modifier = {
		building_consumer_electronics_industry_throughput_add = 0.05
		building_battery_plant_throughput_add = 0.1
		state_birth_rate_mult = 0.05
	}
	ai_will_do = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_SHANXI
				state_region = s:STATE_JIANGXI
				state_region = s:STATE_HINGGAN
			}
			is_incorporated = yes
		}
	}
	ai_construction_targets = {
		building_rare_earths_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_SHANXI
					state_region = s:STATE_JIANGXI
					state_region = s:STATE_HINGGAN
				}
			}
		}
		building_copper_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_SHANXI
					state_region = s:STATE_JIANGXI
				}
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}
