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

# None

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

# House of Alireza
company_Alireza = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/alireza.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_harbor_shipbuilding.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_HEDJAZ }
	
	category = aristocrat_owned

	possible_prestige_goods = {
		prestige_good_generic_merchant_marine
	}

	
	building_types = { #26
		building_port
		building_trade_center
	}
	extension_building_types = {
		building_shipyard
		building_fishing_wharf
		building_furniture_manufactory
	}
	
	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_HEDJAZ
			}	
		}
	}
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_HEDJAZ
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_port
					is_building_type = building_trade_center
				}
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		country_ship_group_supply_ships_construction_efficiency_add = 0.15 #10
		interest_group_ig_landowners_approval_add = 3 #12
		country_private_construction_allocation_mult = 0.03 #4
	}	
	

	ai_will_do = {
		any_scope_state = {
			state_region = s:STATE_HEDJAZ
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_port = {
			level = 3
			state_trigger = {
				state_region = s:STATE_HEDJAZ
			}
		}
		building_trade_center = {
			level = 3
			state_trigger = {
				state_region = s:STATE_HEDJAZ
			}
		}
	}
	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}

# Haji Husein Alireza & Co. Ltd.
company_HajiAlireza = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/Hajialireza.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_harbor_shipbuilding.dds"
	
	category = aristocrat_owned
	
	flavored_company = yes
	preferred_headquarters = { STATE_HEDJAZ }
	
	possible_prestige_goods = {
		prestige_good_generic_merchant_marine
	}

	building_types = { #28
		building_port
		building_trade_center
	}
	
	extension_building_types = {
		building_furniture_manufactory
		building_glassworks
		building_automotive_industry
		building_food_industry
	}

	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_HEDJAZ
			}	
		}
	}
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_HEDJAZ
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_port
					is_building_type = building_trade_center
				}
				level >= 3
			}
		}
		has_technology_researched = floating_harbor
	}
	
	prosperity_modifier = {
		state_construction_mult = 0.05 #18
		building_automotive_industry_throughput_add = 0.03 #4
		building_food_industry_throughput_add = 0.02 #2
		building_steel_mill_throughput_add = 0.02 #4
	}	
	

	ai_will_do = {
		has_technology_researched = floating_harbor
		any_scope_state = {
			state_region = s:STATE_HEDJAZ
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_port = {
			level = 3
			state_trigger = {
				state_region = s:STATE_HEDJAZ
			}
		}
		building_trade_center = {
			level = 3
			state_trigger = {
				state_region = s:STATE_HEDJAZ
			}
		}
	}
	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}

# Saudi Binladin Group
company_SaudiBinLadin = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/saudibinladin.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_HEDJAZ }
	
	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	building_types = { #13
		building_steel_mill
		building_glassworks
		building_logging_camp
	}
	
	extension_building_types = {
		building_iron_mine
		building_coal_mine
	}

	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_HEDJAZ
			}	
		}
	}
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_HEDJAZ
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_steel_mill
				level >= 3
			}
		}
		has_technology_researched = steel_frame_buildings
		has_technology_researched = electric_arc_process
	}
	
	prosperity_modifier = {
		interest_group_ig_devout_pop_attraction_mult = 0.12 #+6
		interest_group_ig_devout_approval_add = 3 #12
		building_construction_sector_throughput_add = 0.05 #6
	}	
	

	ai_will_do = {
		has_technology_researched = steel_frame_buildings
		has_technology_researched = electric_arc_process
		any_scope_state = {
			state_region = s:STATE_HEDJAZ
			is_incorporated = yes
		}
	}

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

# Yemen Coffee Guilds
company_yemen_coffee = {
	icon = "gfx/interface/icons/company_icons/basic_colonial_plantations_2.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_plantation.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_YEMEN }
	
	category = shopkeeper_owned
	
	possible_prestige_goods = {
		prestige_good_yemeni_coffee
	}

	
	building_types = {  #26
		building_coffee_plantation
	}
	
	extension_building_types = {
		building_food_industry
	}

	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_YEMEN
			}
		}
	}		
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_YEMEN
			any_scope_building = {
				is_building_type = building_coffee_plantation
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		building_coffee_plantation_throughput_add = 0.20 #16
		state_trade_capacity_mult = 0.05 #10
	}	
	

	ai_will_do = {
		any_scope_state = {
			state_region = s:STATE_YEMEN
			is_incorporated = yes
		}
	}

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