# Companies in this file
# Petrobras
# Sinopec
# TotalEnergies
# BP Company Ltd
# ENI
# Gazprom
# Saudi Aramco
# ExonMobil remains standard Oil in order to avoid problems with US oil production
company_petrobas = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/brazilian_company_petrobas.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_oil_drills.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_RIO_DE_JANEIRO
	}
	building_types = {
		building_oil_rig
		building_natural_gas_rig
		building_mendelejew_hydrogenation_plants
	}
	extension_building_types = {
		building_mendelejew_synthetic_rubber_factory
	}
	potential = {
		has_interest_marker_in_region = sr:region_brazil
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				OR = {
					state_region = s:STATE_MINAS_GERAIS
					state_region = s:STATE_RIO_DE_JANEIRO
				}
			}
		}
	}
	possible = {
		has_technology_researched = pumpjacks
		any_scope_state = {
			OR = {
				state_region = s:STATE_MINAS_GERAIS
				state_region = s:STATE_RIO_DE_JANEIRO
			}
			any_scope_building = {
				is_building_type = building_oil_rig
				level >= 5
			}
		}
	}
	prosperity_modifier = {
		building_mendelejew_hydrogenation_plants_throughput_add = 0.05
		building_group_bg_logging_throughput_add = 0.05
		state_birth_rate_mult = 0.05
	}
	ai_will_do = {
		has_technology_researched = pumpjacks
		any_scope_state = {
			OR = {
				state_region = s:STATE_MINAS_GERAIS
				state_region = s:STATE_RIO_DE_JANEIRO
			}
			has_potential_resource = bg_oil_extraction
		}
	}
	ai_construction_targets = {
		building_oil_rig = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_MINAS_GERAIS
					state_region = s:STATE_RIO_DE_JANEIRO
				}
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

# Sinopec
company_sinopec = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/chinese_company_sinopec.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_oil_drills.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_BEIJING
		STATE_SUZHOU
	}
	building_types = {
		building_oil_rig
		building_natural_gas_rig
		building_mendelejew_hydrogenation_plants
	}
	extension_building_types = {
		building_mendelejew_synthetic_rubber_factory
	}
	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
				is_incorporated = yes				# Necessary in this case
			}
		}
	}
	possible = {
		has_technology_researched = pumpjacks
		any_scope_state = {
			any_scope_building = {
				is_building_type = building_oil_rig
				level >= 5
			}
		}
	}
	prosperity_modifier = {
		building_rare_earths_mine_throughput_add = 0.05
		building_power_plant_throughput_add = 0.1
		building_railway_throughput_add = 0.05
	}
	ai_will_do = {
		has_technology_researched = pumpjacks
		any_scope_state = {
			has_potential_resource = bg_oil_extraction
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

# TotalEnergies
company_total = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/french_company_total.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_oil_drills.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_ILE_DE_FRANCE
	}
	building_types = {
		building_oil_rig
		building_natural_gas_rig
		building_mendelejew_hydrogenation_plants
	}
	extension_building_types = {
		building_mendelejew_synthetic_rubber_factory
	}
	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
				is_incorporated = yes				# Necessary in this case
			}
		}
	}
	possible = {
		has_technology_researched = pumpjacks
		any_scope_state = {
			any_scope_building = {
				is_building_type = building_oil_rig
				level >= 5
			}
		}
	}
	prosperity_modifier = {
		building_railway_throughput_add = 0.05
		state_colony_growth_speed_mult = 0.15
		state_migration_pull_mult = 0.05
	}
	ai_will_do = {
		has_technology_researched = pumpjacks
		any_scope_state = {
			has_potential_resource = bg_oil_extraction
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

# British Petroleum Company Ltd
company_bg = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/british_company_bg.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_oil_drills.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_HOME_COUNTIES
	}
	building_types = {
		building_oil_rig
		building_natural_gas_rig
		building_mendelejew_hydrogenation_plants
	}
	extension_building_types = {
		building_mendelejew_synthetic_rubber_factory
		building_chemical_plant
	}
	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
				is_incorporated = yes				# Necessary in this case
			}
		}
	}
	possible = {
		has_technology_researched = pumpjacks
		any_scope_state = {
			any_scope_building = {
				is_building_type = building_oil_rig
				level >= 5
			}
		}
	}
	prosperity_modifier = {
		building_natural_gas_rig_throughput_add = 0.1
		state_colony_growth_speed_mult = 0.15
	}
	ai_will_do = {
		has_technology_researched = pumpjacks
		any_scope_state = {
			has_potential_resource = bg_oil_extraction
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

#ENI/ENEL
company_eni = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/italian_company_eni.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_oil_drills.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_LAZIO
	}
	building_types = {
		building_oil_rig
		building_natural_gas_rig
		building_mendelejew_hydrogenation_plants
	}
	extension_building_types = {
		building_mendelejew_synthetic_rubber_factory
	}
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_LAZIO
				is_incorporated = yes				# Necessary in this case
			}
		}
	}
	possible = {
		has_technology_researched = pumpjacks
		any_scope_state = {
			any_scope_building = {
				is_building_type = building_oil_rig
				level >= 5
			}
		}
	}
	prosperity_modifier = {
		building_mendelejew_synthetic_rubber_factory_throughput_add = 0.1
		building_railway_throughput_add = 0.1
		building_renewable_energy_power_plant_throughput_add = -0.05
	}
	ai_will_do = {
		has_technology_researched = pumpjacks
		any_scope_state = {
			has_potential_resource = bg_oil_extraction
		}
	}
	ai_construction_targets = {
		building_oil_rig = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_SICILY
					state_region = s:STATE_VENETIA
				}
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

# Gazprom
company_gazprom = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/russian_company_gazprom.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_oil_drills.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_INGRIA
	}
	building_types = {
		building_power_plant
		building_natural_gas_rig
	}
	possible_prestige_goods = {
		prestige_good_gazprom_natural_gas
	}
	extension_building_types = {
		building_mendelejew_hydrogenation_plants
	}
	potential = {
		has_interest_marker_in_region = sr:region_russia
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_INGRIA
				is_incorporated = yes				# Necessary in this case
			}
		}
	}
	possible = {
		has_technology_researched = natural_gas_extraction
		any_scope_state = {
			any_scope_building = {
				is_building_type = building_natural_gas_rig
				level >= 5
			}
		}
	}
	prosperity_modifier = {
		building_natural_gas_rig_throughput_add = 0.25
		country_prestige_from_army_power_projection_mult = 0.2
		state_mortality_mult = 0.05
	}
	ai_will_do = {
		has_technology_researched = natural_gas_extraction
		any_scope_state = {
			has_potential_resource = building_natural_gas_rig
		}
	}
	ai_construction_targets = {
		building_oil_rig = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_TAMBOV
					state_region = s:STATE_IRKUTSK
				}
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}

#Saudi Aramco
company_saudi_aramco = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/arabian_company_saudi_aramco.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_oil_drills.dds"
	flavored_company = yes
	preferred_headquarters = {
		STATE_NEJD
		STATE_ABU_DHABI
	}
	building_types = {
		building_oil_rig
		building_natural_gas_rig
		building_mendelejew_hydrogenation_plants
	}
	extension_building_types = {
		building_mendelejew_synthetic_rubber_factory
		building_power_plant
	}
	possible_prestige_goods = {
		prestige_good_saudi_aramco_oil
	}
	potential = {
		has_interest_marker_in_region = sr:region_arabia
	}
	attainable = {
		hidden_trigger = {
			# Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				OR = {
					state_region = s:STATE_NEJD
					state_region = s:STATE_ABU_DHABI
				}
			}
		}
	}
	possible = {
		year >= 1900
		has_technology_researched = pumpjacks
		any_scope_state = {
			OR = {
				state_region = s:STATE_NEJD
				state_region = s:STATE_ABU_DHABI
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_oil_rig
				level >= 5
			}
		}
	}
	prosperity_modifier = {
		building_mendelejew_hydrogenation_plants_throughput_add = 0.15
		building_group_bg_oil_extraction_throughput_add = 0.15
		state_mortality_wealth_mult = -0.002
	}
	ai_will_do = {
		has_technology_researched = pumpjacks
		any_scope_state = {
			is_incorporated = yes
			has_potential_resource = bg_oil_extraction
		}
	}
	ai_construction_targets = {
		building_oil_rig = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_NEJD
					state_region = s:STATE_ABU_DHABI
				}
			}
		}
	}
	ai_weight = {
		value = 4		# Higher base value for flavored companies
	}
}
