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

# Aktiebolaget L. M. Ericsson & Co
TRY_REPLACE:company_ericsson = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/ericsson.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_SVEALAND }

	building_types = {
		building_electrics_industry
	}

	extension_building_types = {
		building_iron_mine
	}

	possible_prestige_goods = {
		prestige_good_ericsson_apparatus
	}

	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SVEALAND
			}
		}
	}

	possible = {
		has_technology_researched = telephone
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_electrics_industry
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		country_weekly_innovation_mult = 0.1
		state_education_access_wealth_add = 0.005
	}

	ai_will_do = {
		has_technology_researched = telephone
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_electrics_industry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_SVEALAND
			}
		}
	}

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

# LKAB
TRY_REPLACE:company_lkab = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/lkab.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"

	category = bureaucrat_owned

	flavored_company = yes

	preferred_headquarters = { STATE_NORRLAND }

	building_types = {
		building_iron_mine
	}

	extension_building_types = {
		building_steel_mill
	}

	possible_prestige_goods = {
		prestige_good_swedish_bar_iron
	}

	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_NORRLAND
			}
		}
	}

	possible = {
		has_technology_researched = open_hearth_process
		any_scope_state = {
			state_region = s:STATE_NORRLAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_iron_mine
				level >= 5
			}
			has_building = building_railway
		}
	}

	prosperity_modifier = {
		building_iron_mine_throughput_add = 0.2
	}

	ai_will_do = {
		has_technology_researched = open_hearth_process
		any_scope_state = {
			state_region = s:STATE_NORRLAND
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_iron_mine = {
			level = 5
			state_trigger = {
				state_region = s:STATE_NORRLAND
			}
		}
		building_railway = {
			level = 1
			state_trigger = {
				state_region = s:STATE_NORRLAND
			}
		}
	}

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

# Götaverken
TRY_REPLACE:company_gotaverken = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/götaverken.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_harbor_shipbuilding.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_GOTALAND }

	building_types = {
		building_shipyard
		building_motor_industry
		building_tooling_workshop
	}

	extension_building_types = {
		building_logging_camp
		building_steel_mill
		building_automotive_industry
	}

	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_GOTALAND
			}
		}
	}

	possible = {
		has_technology_researched = gantry_cranes
		any_scope_state = {
			state_region = s:STATE_GOTALAND
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_shipyard
					is_building_type = building_motor_industry
					is_building_type = building_tooling_workshop
				}
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		ship_armor_mult = 0.025
		ship_hull_damage_mult = 0.025
	}

	ai_will_do = {
		has_technology_researched = gantry_cranes
		any_scope_state = {
			state_region = s:STATE_GOTALAND
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_shipyard = {
			level = 5
			state_trigger = {
				state_region = s:STATE_GOTALAND
			}
		}
		building_motor_industry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_GOTALAND
			}
		}
		building_tooling_workshop = {
			level = 5
			state_trigger = {
				state_region = s:STATE_GOTALAND
			}
		}
	}

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

##############################DLC-MP1##############################

TRY_REPLACE:company_paradox = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_paradox.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"

	category = academic_owned

	flavored_company = yes

	preferred_headquarters = { STATE_SVEALAND }

	building_types = {
		building_art_academy
		building_electrics_industry
	}

	extension_building_types = {
		building_coal_mine
		building_paper_mill
	}

	possible_prestige_goods = {
		prestige_good_grand_strategy_games
	}

	potential = {
		has_technology_researched = telephone
		has_technology_researched = zeppelins
		has_state_in_state_region = STATE_SVEALAND
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			any_scope_building = {
				is_building_type = building_art_academy
				level >= 20
			}
			any_scope_building = {
				is_building_type = building_electrics_industry
				level >= 20
			}
			any_scope_building = {
				is_building_type = building_skyscraper
			}
		}
	}

	attainable = {
	}

	possible = {
	}

	prosperity_modifier = {
		country_prestige_mult = 0.25
		country_leverage_generation_mult = 0.25
	}

	ai_will_do = {
		always = yes
	}

	ai_weight = {
		value = 100 # Self-explanatory
	}
}

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

company_Hastens = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/hastens.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SVEALAND }
	

	possible_prestige_goods = {
		prestige_good_generic_furniture
	}

	
	building_types = { #26
		building_furniture_manufactory
	}
	
	extension_building_types = {
		building_logging_camp
		building_tooling_workshop
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SVEALAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_furniture_manufactory
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		country_ship_group_supply_ships_construction_efficiency_add = 0.15 #10
		interest_group_ig_landowners_approval_add = 4 #16
	}	
	

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

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

company_Gevalia = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/gevalia.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_plantation.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_NORRLAND }
	

	possible_prestige_goods = {
		prestige_good_generic_coffee
	}

	
	building_types = { #22
		building_coffee_plantation
		building_tea_plantation
	}
	
	extension_building_types = {
		building_shipyard
		building_port
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_central_america
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_NORRLAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_NORRLAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_urban_center
				level >= 12
			}
		}
		has_technology_researched = quinine
	}
	
	prosperity_modifier = {
		state_colony_growth_speed_mult = 0.06 #6
		state_colony_growth_creation_factor = 0.06 #6
		country_ship_group_supply_ships_construction_efficiency_add = 0.15 #10
	}	
	

	ai_will_do = {
		has_technology_researched = quinine
		any_scope_state = {
			state_region = s:STATE_NORRLAND
			is_incorporated = yes
		}
	}

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

company_VolvoPenta = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/volvo.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_GOTALAND }
	

	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	
	building_types = { #21
		building_automotive_industry
		building_shipyard
	}
	
	extension_building_types = {
		building_motor_industry
		building_tooling_workshop
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_GOTALAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_GOTALAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_automotive_industry
				level >= 5
			}
		}
		has_technology_researched = combustion_engine
	}
	
	prosperity_modifier = {
		state_trade_advantage_mult = 0.06 #4
		building_power_plant_throughput_add = 0.09 #12
		goods_output_automobiles_mult = 0.08 #6
	}	
	

	ai_will_do = {
		has_technology_researched = combustion_engine
		any_scope_state = {
			state_region = s:STATE_GOTALAND
			is_incorporated = yes
		}
	}

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

company_ABAtlas = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/atlas.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_GOTALAND }
	

	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	
	building_types = { #16 
		building_motor_industry
		building_automotive_industry
	}
	
	extension_building_types = {
		building_shipyard
		building_tooling_workshop
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SVEALAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			is_incorporated = yes
			any_scope_building = {
			    OR = {
					is_building_type = building_automotive_industry
					is_building_type = building_motor_industry
				}
				level >= 3
			}
		}
		has_technology_researched = railways
	}
	
	prosperity_modifier = {
		building_railway_throughput_add = 0.12 #16
	}	
	

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

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

# Skanska
company_Skanska = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/skanska.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SVEALAND }
	

	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	
	building_types = { #15
		building_steel_mill
		building_logging_camp
	}
	
	extension_building_types = {
		building_explosives_factory
		building_iron_mine
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SVEALAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_steel_mill
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		country_max_weekly_construction_progress_add = 5 #6
		state_infrastructure_mult = 0.05 #10
	}	
	

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

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

# Boliden
company_Boliden = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/boliden.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SVEALAND }
	

	possible_prestige_goods = {
		prestige_good_generic_copper
	}

	
	building_types = { #24
		building_gold_mine
		building_lead_mine
	}
	
	extension_building_types = {
		building_coal_mine
		building_iron_mine
		building_sulfur_mine
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SVEALAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_lead_mine
				level >= 3
			}
		}
		has_technology_researched = compression_ignition
	}
	
	prosperity_modifier = {
		building_group_bg_mining_throughput_add = 0.08 #20
		state_pollution_reduction_health_mult = 0.04
		interest_group_ig_industrialists_approval_add = 1 #4
	}	
	

	ai_will_do = {
		has_technology_researched = compression_ignition
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			is_incorporated = yes
		}
	}

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

# AB Skellefteå spisbrödsfabrik (Wasabröd)
company_ABSkell = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/skelleftea.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_farm_wheat.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_NORRLAND }
	

	possible_prestige_goods = {
		prestige_good_generic_groceries
	}

	
	building_types = { #27 
		building_food_industry
	}
	
	extension_building_types = {
		building_tooling_workshop
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_NORRLAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_NORRLAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_food_industry
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		unit_morale_recovery_mult = 0.05 #10
		state_loyalists_from_political_movements_mult = 0.12 #16
		state_lower_strata_expected_sol_add = -0.4
		state_middle_strata_expected_sol_add = -0.8
		state_upper_strata_expected_sol_add = -1.2
	}	
	

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

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

# Nydqvist & Holm AB
company_Nydq = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/nohab.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_GOTALAND }

	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	
	building_types = { #15
		building_railway
		building_motor_industry
		building_automotive_industry
	}
	
	extension_building_types = {
		building_steel_mill
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_GOTALAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_GOTALAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_railway
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		military_formation_army_movement_speed_mult = 0.1 #10
		country_ship_group_supply_ships_construction_efficiency_add = 0.07 #5
	}	
	

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

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

# AB Bofors
company_Bofors = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/bofors.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SVEALAND }

	possible_prestige_goods = {
		prestige_good_generic_artillery
	}
	
	prestige_goods_trigger = {
		custom_tooltip = {
			text = je_prestige_goods_artillery_complete_tt
			has_variable = prestige_good_generic_artillery_var
		}
	}

	
	building_types = { #18
		building_steel_mill
		building_arms_industry
		building_artillery_foundry
	}
	
	extension_building_types = {
		building_munition_plant
		building_explosives_factory
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SVEALAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_steel_mill
				level >= 3
			}
		}
		has_technology_researched = open_hearth_process
	}
	
	prosperity_modifier = {
		unit_army_offense_mult = 0.03 #6
        unit_army_defense_mult = 0.06 #12
	}	
	

	ai_will_do = {
		has_technology_researched = open_hearth_process
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			is_incorporated = yes
		}
	}

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

# Husqvarna AB
company_Husqvarna = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/husqvarna.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SVEALAND }

	possible_prestige_goods = {
		prestige_good_generic_small_arms
	}

	prestige_goods_trigger = {
		custom_tooltip = {
			text = je_prestige_goods_small_arms_complete_tt
			has_variable = prestige_good_generic_small_arms_var
		}
	}

	
	building_types = { #12
		building_arms_industry
		building_tooling_workshop
		building_automotive_industry
	}
	
	extension_building_types = {
		building_munition_plant
		building_motor_industry
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SVEALAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_arms_industry
				level >= 3
			}
		}
		has_technology_researched = mechanized_workshops
	}
	
	prosperity_modifier = {
		country_production_tech_spread_mult = 0.08 #8
		interest_group_ig_industrialists_pol_str_mult = 0.06 #4
	}	
	

	ai_will_do = {
		has_technology_researched = mechanized_workshops
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			is_incorporated = yes
		}
	}

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

# Handelsbanken
company_HandelsBanken = {
  icon = "gfx/interface/icons/company_icons/historical_company_icons/handelsbanken.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SVEALAND }
	
	possible_prestige_goods = {
		#prestige_good_generic_currency_paper
	}
	
	building_types = {  
		building_paper_mill
		building_iron_mine
		building_food_industry
	}
	
	extension_building_types = {	
		building_logging_camp	
		building_railway
		building_shipyard
		building_fishing_wharf
	}
	
	potential = {
		has_game_rule = banks_enabled
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SVEALAND
			}
		}
	}	
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_financial_district
				level >= 15
			}
		}
		has_technology_researched = investment_banks
		unique_companies_has_bank = no
	}
	
	prosperity_modifier = {
		interest_group_ig_industrialists_approval_add = 2
		country_bureaucracy_investment_cost_factor_mult = -0.10
		
		country_loan_interest_rate_mult = -0.025
        country_private_construction_allocation_mult = 0.1		
		
		state_farmers_investment_pool_contribution_add = 0.02
		state_shopkeepers_investment_pool_contribution_add = 0.02
		state_clergymen_investment_pool_contribution_add = 0.04
		state_aristocrats_investment_pool_contribution_add = 0.04
		state_capitalists_investment_pool_contribution_add = 0.07
		
		country_government_dividends_reinvestment_add = 0.05
		country_government_dividends_efficiency_add = 0.075
		
		country_max_companies_add = 1
	}
	
	ai_will_do = {
		unique_companies_has_bank = no
		has_technology_researched = investment_banks
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			is_incorporated = yes
		}
	}

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

# Uddeholms AB
company_Uddeholms = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/uddeholms.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SVEALAND }

	possible_prestige_goods = {
		prestige_good_generic_steel
	}
	
	prestige_goods_trigger = {
		custom_tooltip = {
			text = je_prestige_goods_steel_complete_tt
			has_variable = prestige_good_generic_steel_var
		}
	}
	
	building_types = { #14
		building_steel_mill
		building_iron_mine
	}
	
	extension_building_types = {
		building_coal_mine
		building_tooling_workshop
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SVEALAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_steel_mill
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		building_railway_throughput_add = 0.06 #8
        building_power_plant_throughput_add = 0.05 #6
	}	
	

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

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

# Kosta Glasbruk
company_KostaGlasbruk = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/kostaglasbruk.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_GOTALAND }

	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	
	building_types = { #22
		building_glassworks
	}
	
	extension_building_types = {
		building_lead_mine
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_GOTALAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_GOTALAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_glassworks
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		interest_group_ig_armed_forces_pop_attraction_mult = 0.08 #4
        building_art_academy_throughput_add = 0.2 #18
	}	
	

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

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

# Höganäs AB
company_HoganasAB = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/hoganasab.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SCANIA }
	

	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	
	building_types = { #22
		building_coal_mine
	}
	
	extension_building_types = {
		building_port
		building_shipyard
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SCANIA
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_SCANIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_coal_mine
				level >= 5
			}
		}
	}
	
	prosperity_modifier = {
	   building_steel_mill_throughput_add = 0.06 #8
       building_chemical_plant_throughput_add = 0.14 #14
	}	
	

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

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

#  Nyby Ironworks
company_NybyBruk = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/nybybruk.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SVEALAND }

	possible_prestige_goods = {
		prestige_good_generic_steel
	}
	
	prestige_goods_trigger = {
		custom_tooltip = {
			text = je_prestige_goods_steel_complete_tt
			has_variable = prestige_good_generic_steel_var
		}
	}
	
	building_types = { #14
		building_steel_mill
		building_iron_mine
	}
	
	extension_building_types = {
		building_coal_mine
		building_tooling_workshop
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SVEALAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_steel_mill
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		interest_group_ig_industrialists_pop_attraction_mult = 0.15 #10
		interest_group_ig_industrialists_approval_add = 1 #4
	}	
	

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

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

# Orrefors Glassworks
company_Orrefors_glassworks = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/orrefors_glasbruk.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_GOTALAND }
	
	possible_prestige_goods = {
		##
	}
	
	building_types = { #26
		building_glassworks
	}

	extension_building_types = {
		building_art_academy
		building_furniture_manufactory
	}

	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_GOTALAND
			}
		}
	}

	possible = {
		any_scope_state = {
			state_region = s:STATE_GOTALAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_glassworks
				level >= 5
			}
		}
		has_technology_researched = automatic_bottle_blowers #kinda fits
	}

	prosperity_modifier = {
		interest_group_ig_petty_bourgeoisie_pop_attraction_mult = 0.16 #8
		interest_group_ig_petty_bourgeoisie_approval_add = 2 #8
		building_art_academy_throughput_add = 0.10 #10
	}

	ai_will_do = {
		has_technology_researched = automatic_bottle_blowers
		any_scope_state = {
			state_region = s:STATE_GOTALAND
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_glassworks = {
			level = 5
			state_trigger = {
				state_region = s:STATE_GOTALAND
			}
		}
	}

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

# Svenska Kullagerfabriken / Swedish Ball Bearing Factory
company_swedish_ball_bearing = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/skf_sweden.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_GOTALAND }
	
	possible_prestige_goods = {
		prestige_good_generic_machine_parts
	}
	
	building_types = { #26
		building_tooling_workshop
	}

	extension_building_types = {
		building_steel_mill
		building_electrics_industry
		building_automotive_industry
	}

	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_GOTALAND
			}
		}
	}

	possible = {	
		any_scope_state = {
			state_region = s:STATE_GOTALAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_tooling_workshop
				level >= 5
			}
		}
		has_technology_researched = pneumatic_tools #kinda fits
	}

	prosperity_modifier = {
		building_group_bg_heavy_industry_throughput_add = 0.05 #18
		state_trade_advantage_mult = 0.12 #8
	}

	ai_will_do = {
		has_technology_researched = pneumatic_tools
		any_scope_state = {
			state_region = s:STATE_GOTALAND
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_tooling_workshop = {
			level = 5
			state_trigger = {
				state_region = s:STATE_GOTALAND
			}
		}
	}

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

# Pågen
company_Pagen = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/pagen.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SCANIA }
	

	possible_prestige_goods = {
		prestige_good_generic_groceries
	}
	
	building_types = { #23
		building_food_industry
		building_furniture_manufactory
	}
	
	extension_building_types = {
		building_sugar_plantation
		building_livestock_ranch
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SCANIA
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_SCANIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_food_industry
				level >= 3
			}
		}
		has_technology_researched = vacuum_canning
		has_technology_researched = labor_movement
	}
	
	prosperity_modifier = {
		interest_group_ig_trade_unions_pop_attraction_mult = -0.15 #+5
		interest_group_ig_petty_bourgeoisie_pop_attraction_mult = 0.2 #10
		interest_group_ig_petty_bourgeoisie_approval_add = 2 #8
		state_loyalists_from_political_movements_mult = 0.08 #10
		state_lower_strata_expected_sol_add = -0.25
		state_middle_strata_expected_sol_add = -0.5
		state_upper_strata_expected_sol_add = -0.75
	}	
	

	ai_will_do = {
		has_technology_researched = vacuum_canning
		has_technology_researched = labor_movement
		any_scope_state = {
			state_region = s:STATE_SCANIA
			is_incorporated = yes
		}
	}

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

# Reymersholms Spritförädlings AB 
company_Reymersholms = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/reymersholms.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SVEALAND }
	

	possible_prestige_goods = {
		prestige_good_generic_beer
	}

	
	building_types = { #27 
		building_food_industry
	}
	
	extension_building_types = {
		building_coal_mine
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SVEALAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_food_industry
				level >= 3
			}
		}
		has_technology_researched = fractional_distillation
	}
	
	prosperity_modifier = {
		state_trade_advantage_mult = 0.24 #16
		interest_group_ig_landowners_approval_add = -1 #+2
		interest_group_ig_industrialists_pop_attraction_mult = 0.2 #13
	}	
	

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

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

# Kungliga Vattenfallsstyrelsen / Vattenfall
company_Vattenfall = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/vattenfall.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SVEALAND }

	possible_prestige_goods = {
		prestige_good_hydroelectricity
	}
	
	building_types = { #27
		building_power_plant
	}
	
	extension_building_types = {
		building_coal_mine
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SVEALAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_SVEALAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_power_plant
				level >= 3
			}
		}
		has_technology_researched = steam_turbine
	}
	
	prosperity_modifier = {
		building_urban_center_throughput_add = 0.1 #14
        interest_group_ig_landowners_approval_add = 1 #4
		interest_group_ig_intelligentsia_approval_add = 1 #4
		country_loyalists_from_legitimacy_mult = 0.05 #5
	}	
	

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

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

# Sandvik / Högbo Stål & Jernverks AB / Sandvikens Jernverks AB
company_Sandvik = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/sandvik.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_NORRLAND }

	possible_prestige_goods = {
		prestige_good_generic_machine_parts
	}
	
	building_types = { #6
		building_steel_mill
		building_tooling_workshop
		building_iron_mine
	}
	
	extension_building_types = {
		building_automotive_industry
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_NORRLAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_NORRLAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_steel_mill
				level >= 3
			}
		}
		has_technology_researched = bessemer_process
		has_technology_researched = corporate_charters
	}
	
	prosperity_modifier = {
		building_steel_mill_throughput_add = 0.05 #6
	}	
	

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

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

# Svenska Cellulosa Aktiebolaget
company_SCA = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/sca.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_NORRLAND }

	possible_prestige_goods = {
		prestige_good_generic_paper
	}
	
	building_types = { #27
		building_logging_camp
		building_paper_mill
	}
	
	extension_building_types = {
		building_tooling_workshop
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_NORRLAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_NORRLAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_logging_camp
				level >= 3
			}
		}
		has_technology_researched = pneumatic_tools
		has_technology_researched = corporate_management
	}
	
	prosperity_modifier = {
		interest_group_ig_petty_bourgeoisie_pop_attraction_mult = 0.2 #10
		interest_group_ig_petty_bourgeoisie_approval_add = 2 #8
		state_trade_advantage_mult = 0.14 #9
	}	
	

	ai_will_do = {
	    has_technology_researched = pneumatic_tools
		has_technology_researched = corporate_management
		any_scope_state = {
			state_region = s:STATE_NORRLAND
			is_incorporated = yes
		}
	}

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

# Holmen / Mo och Domsjö AB
company_Holmen = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/holmen.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_NORRLAND }

	possible_prestige_goods = {
		prestige_good_generic_paper
	}
	
	building_types = { #21
		building_logging_camp
		building_paper_mill
	}
	
	extension_building_types = {
		building_chemical_plant
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_NORRLAND
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_NORRLAND
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_logging_camp
				level >= 3
			}
		}
		has_technology_researched = steam_donkey
	}
	
	prosperity_modifier = {
		state_trade_capacity_mult = 0.06 #11
		state_trade_advantage_mult = 0.15 #10
	}	
	

	ai_will_do = {
	    has_technology_researched = steam_donkey
		any_scope_state = {
			state_region = s:STATE_NORRLAND
			is_incorporated = yes
		}
	}

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