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

# Compagnie du Congo pour le Commerce et l'Industrie
TRY_REPLACE:company_ccci = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/ccci.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_plantation.dds"

	category = aristocrat_owned

	flavored_company = yes

	building_types = {
		building_rubber_plantation
		building_logging_camp
		building_iron_mine
	}

	extension_building_types = {
		building_railway
		building_livestock_ranch
	}

	potential = {
		country_has_primary_culture = cu:wallonian
	}

	possible = {
		OR = {
			any_subject_or_below = {
				any_scope_state = {
					is_in_geographic_region = geographic_region_congo_old
					any_scope_building = {
						is_building_type = building_rubber_plantation
						level >= 5
					}
				}
			}
			any_scope_state = {
				is_in_geographic_region = geographic_region_congo_old
				any_scope_building = {
					is_building_type = building_rubber_plantation
					level >= 5
				}
			}
		}
	}

	prosperity_modifier = {
		country_prestige_mult = 0.15
		building_group_bg_rubber_mortality_mult = 0.2
	}

	ai_will_do = {
		OR = {
			any_subject_or_below = {
				any_scope_state = {
					is_in_geographic_region = geographic_region_congo_old
				}
			}
			any_scope_state = {
				is_in_geographic_region = geographic_region_congo_old
			}
		}
	}

	ai_construction_targets = {
		building_rubber_plantation = {
			level = 5
			state_trigger = {
				is_in_geographic_region = geographic_region_congo_old
			}
		}
	}

	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}

# Société Franco-Belge
TRY_REPLACE:company_franco_belge = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/franco_belge.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_FLANDERS STATE_WALLONIA }

	building_types = {
		building_motor_industry
		building_railway
	}

	extension_building_types = {
		building_steel_mill
	}

	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 = {
				OR = {
					state_region = s:STATE_WALLONIA
					state_region = s:STATE_FLANDERS
				}
			}
		}
	}

	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_WALLONIA
				state_region = s:STATE_FLANDERS
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_motor_industry
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		state_infrastructure_mult = 0.05
	}

	ai_will_do = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_WALLONIA
				state_region = s:STATE_FLANDERS
			}
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_motor_industry = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_WALLONIA
					state_region = s:STATE_FLANDERS
				}
				is_incorporated = yes
			}
		}
	}

	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}

# Société anonyme John Cockerill
TRY_REPLACE:company_john_cockerill = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/john_cockerill.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_WALLONIA STATE_FLANDERS }

	building_types = {
		building_steel_mill
		building_tooling_workshop
		building_motor_industry
	}

	extension_building_types = {
		building_iron_mine
	}

	possible_prestige_goods = {
		prestige_good_generic_tools
	}

	prestige_goods_trigger = {
		custom_tooltip = {
			text = je_prestige_goods_tools_complete_tt
			has_variable = prestige_good_generic_tools_var
		}
	}

	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 = {
				OR = {
					state_region = s:STATE_WALLONIA
					state_region = s:STATE_FLANDERS
				}
			}
		}
	}

	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_WALLONIA
				state_region = s:STATE_FLANDERS
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_steel_mill
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		building_railway_throughput_add = 0.1
	}

	ai_will_do = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_WALLONIA
				state_region = s:STATE_FLANDERS
			}
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_steel_mill = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_WALLONIA
					state_region = s:STATE_FLANDERS
				}
				is_incorporated = yes
			}
		}
	}

	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}

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

# International Bell Telephone Company
company_BellTelephone = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/bell.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_WALLONIA }
	
	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	building_types = {  #24
		building_electrics_industry
	}
	
	extension_building_types = {
		building_lead_mine
	}

	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 = {
				OR = {
					state_region = s:STATE_WALLONIA
					state_region = s:STATE_FLANDERS
				}
			}
		}
	}	
	
	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_WALLONIA
				state_region = s:STATE_FLANDERS
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_electrics_industry
				level >= 3
			}
		}
		AND = { 
			exists = c:USA
			c:USA = { relations:root >= relations_threshold:amicable }
	    }
	}
	
	prosperity_modifier = {
		building_electrics_industry_throughput_add = 0.09 #12
		unit_supply_consumption_mult = -0.04 #12
	}
	

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

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

# Société générale de Belgique(Bank)
company_SgdB = {
  icon = "gfx/interface/icons/company_icons/historical_company_icons/sgdb.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_FLANDERS }
	
	category = aristocrat_owned
	
	possible_prestige_goods = {
		#prestige_good_generic_currency_paper
	}

	
	building_types = {  
		building_paper_mill
		building_railway
		building_steel_mill
	}
	
	extension_building_types = {
		building_textile_mill
		building_shipyard
		building_coal_mine		
		building_chemical_plant	
	}
	
	potential = {
		has_game_rule = banks_enabled
		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_FLANDERS
			}
		}
	}	
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_FLANDERS
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_financial_district
				level >= 10
			}
		}
		unique_companies_has_bank = no
	}
	
	prosperity_modifier = {
		
		country_loan_interest_rate_mult = -0.025
        country_private_construction_allocation_mult = 0.1		
		
		state_farmers_investment_pool_contribution_add = 0.015
		state_shopkeepers_investment_pool_contribution_add = 0.015
		state_clergymen_investment_pool_contribution_add = 0.04
		state_aristocrats_investment_pool_contribution_add = 0.065
		state_capitalists_investment_pool_contribution_add = 0.065
		
		country_government_dividends_reinvestment_add = 0.05
		country_government_dividends_efficiency_add = 0.05
		
		country_max_companies_add = 1
	}	
	

	ai_will_do = {
	    unique_companies_has_bank = no
		any_scope_state = {
			state_region = s:STATE_FLANDERS
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_paper_mill = {
			level = 5
			state_trigger = {
				state_region = s:STATE_FLANDERS
			}
		}
	}
	ai_weight = {
		value = 5 # Higher base value for flavored companies
	}
}

# Solvay S.A.
company_Solvay = {
    icon = "gfx/interface/icons/company_icons/historical_company_icons/solvay.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_FLANDERS }
	
	possible_prestige_goods = {
		prestige_good_generic_fertilizer
	}
	
	building_types = {  #27
		building_chemical_plant
	}
	
	extension_building_types = {
		building_furniture_manufactory
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_FLANDERS
			}
		}
	}	
	
	potential = {
		has_interest_marker_in_region = sr:region_western_europe
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_FLANDERS
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_chemical_plant
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		country_company_throughput_bonus_add = 0.05 #18
		building_explosives_factory_throughput_add = 0.06 #8
	}	
	

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

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

# Ateliers de Constructions Electriques de Charleroi
company_AdCE = {
   icon = "gfx/interface/icons/company_icons/historical_company_icons/acec.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_FLANDERS }
	
	possible_prestige_goods = {
		prestige_good_power_cables
	}
	
	building_types = {  #23
		building_power_plant
	}

	extension_building_types = {
		building_electrics_industry
	}

	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_FLANDERS
			}
		}
	}	
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_FLANDERS
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_power_plant
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		building_power_plant_throughput_add = 0.09 #12
		building_railway_throughput_add = 0.08 #10
	}	
	

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

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

# Vanparys Confiserie B.V.
company_Vanparys = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/vanparys.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_FLANDERS }
	
	category = shopkeeper_owned
	
	possible_prestige_goods = {
		prestige_good_generic_sweets
	}

	building_types = {  #27
		building_food_industry
	}
	
	extension_building_types = {
		building_sugar_plantation
		building_rye_farm
	}

	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_FLANDERS
			}
		}
	}	
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_FLANDERS
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_food_industry
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		building_sugar_plantation_throughput_add = 0.09 #9
		building_group_bg_agriculture_throughput_add = 0.05 #18
	}	
	

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

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

# Fabrique Nationale Herstal
company_fn_herstal = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/fnherstal.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_WALLONIA }
	

	possible_prestige_goods = {
		prestige_good_generic_small_arms
	}
	
	building_types = {  #22
		building_arms_industry
		building_munition_plant
		building_automotive_industry
	}
	
	extension_building_types = {
		building_artillery_foundry
	}
	
	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_WALLONIA
			}
		}
	}		
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_WALLONIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_arms_industry
				level >= 3
			}
		}
		has_technology_researched = repeaters #intended
		has_technology_researched = mutual_funds
	}
	
	prosperity_modifier = {
		unit_army_offense_mult = 0.06 #12
		military_formation_army_movement_speed_mult = 0.10 #10
	}	
	

	ai_will_do = {
	    has_technology_researched = repeaters 
		has_technology_researched = mutual_funds
		any_scope_state = {
			state_region = s:STATE_WALLONIA
			is_incorporated = yes
		}
	}

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

# Compagnie Internationale des Wagons-Lits
company_internationale_wagon_lits = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/coches_camas.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_railways.dds"

	flavored_company = yes
	
	category = aristocrat_owned
	
	possible_prestige_goods = {
		prestige_good_generic_transportation
	}
	
	building_types = { #23
		building_railway
	}

	extension_building_types = {
		building_food_industry
		building_furniture_manufactory
	}

	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 = {
			   region = sr:region_western_europe
			   is_incorporated = yes
			}
		}
	}	
	

	possible = {
		has_technology_researched = railways
		any_scope_state = {
			region = sr:region_western_europe
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_railway
				level >= 5
			}
			count >= 2
		}
	}

	prosperity_modifier = {
		building_urban_center_throughput_add = 0.06 #8
		state_political_strength_from_wealth_mult = 0.08 #8
		country_prestige_mult = 0.08 #8
	}

	ai_will_do = {
		any_scope_state = {
			region = sr:region_western_europe
			is_incorporated = yes
			count >= 2
		}
	}

	ai_construction_targets = {
		building_railway = {
			level = 5
			state_trigger = {
				region = sr:region_western_europe
				is_incorporated = yes
			}
		}
	}

	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}