﻿##############################VANILLA#############################

# None

##############################MODDED##############################

# Compagnie des phosphates de Gafsa
company_phosphat_Gafsa = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/cdpdg.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_TUNISIA }
	

	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	
	building_types = { #26
		building_sulfur_mine
	}
	
	extension_building_types = {
		building_tooling_workshop
		building_motor_industry
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_north_africa
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_TUNISIA
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_TUNISIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_sulfur_mine
				level >= 3
			}
		}
		has_technology_researched = railways
	}
	
	prosperity_modifier = {
		building_railway_throughput_add = 0.15 #20
		country_private_construction_allocation_mult = 0.05 #6
	}	
	

	ai_will_do = {
		has_technology_researched = railways
		any_scope_state = {
			state_region = s:STATE_TUNISIA
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_sulfur_mine = {
			level = 5
			state_trigger = {
				state_region = s:STATE_TUNISIA
			}
		}
	}
	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}
