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

# Nokia AB
TRY_REPLACE:company_nokia = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/finland_nokia.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_UUSIMAA }

	building_types = {
		building_paper_mill
		building_logging_camp
		building_power_plant
	}

	extension_building_types = {
		building_electrics_industry
	}

	possible_prestige_goods = {
		prestige_good_generic_paper
	}

	prestige_goods_trigger = {
		custom_tooltip = {
			text = je_prestige_goods_paper_complete_tt
			has_variable = prestige_good_generic_paper_var
		}
	}

	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_UUSIMAA
			}
		}
	}

	possible = {
		has_technology_researched = atmospheric_engine
		any_scope_state = {
			state_region = s:STATE_UUSIMAA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_paper_mill
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		building_electrics_industry_throughput_add = 0.1
		building_synthetics_plant_throughput_add = 0.05
	}

	ai_will_do = {
		has_technology_researched = atmospheric_engine
		any_scope_state = {
			state_region = s:STATE_UUSIMAA
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_paper_mill = {
			level = 5
			state_trigger = {
				state_region = s:STATE_UUSIMAA
			}
		}
	}

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

##############################MODDED##############################
# Wartsila
company_Wartsila = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/wartsila.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_WEST_KARELIA }

	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	building_types = {  #11
		building_logging_camp
		building_shipyard
		building_iron_mine
	}
	
	extension_building_types = {
		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_WEST_KARELIA
			}
		}
	}		
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_WEST_KARELIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_logging_camp
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		building_fishing_wharf_throughput_add = 0.05 #5
		building_automotive_industry_throughput_add 0.05 #6
	}	
	

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

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

}

# Paulig
company_Paulig = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/paulig.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_UUSIMAA }
	
	possible_prestige_goods = {
		prestige_good_generic_coffee
	}
	
	building_types = {  #23
		building_food_industry
		building_coffee_plantation
	}
	
	extension_building_types = {
		building_tea_plantation
		building_paper_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_UUSIMAA
			}
		}
	}	
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_UUSIMAA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_food_industry
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		country_ship_group_supply_ships_construction_efficiency_add = 0.05 #3
		state_birth_rate_mult = 0.05 #20
	}	
	

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

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

}

# Iittala
company_Iittala = {
	icon = "gfx/interface/icons/company_icons/basic_home_goods.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_UUSIMAA }
	
	category = shopkeeper_owned
	
	possible_prestige_goods = {
		prestige_good_generic_glass_jars
	}

	building_types = {  #18
		building_glassworks
		building_furniture_manufactory
	}
	
	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_UUSIMAA
			}
		}
	}	
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_UUSIMAA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_glassworks
				level >= 3
			}
		}
		has_technology_researched = crystal_glass
	}
	
	prosperity_modifier = {
		state_radicals_from_political_movements_mult = -0.05 #6
		state_lower_strata_expected_sol_add = -0.15
		state_middle_strata_expected_sol_add = -0.3
		state_upper_strata_expected_sol_add = -0.45
		interest_group_ig_petty_bourgeoisie_approval_add = 3 #12
	}	
	

	ai_will_do = {
		has_technology_researched = crystal_glass
		any_scope_state = {
			state_region = s:STATE_UUSIMAA
			is_incorporated = yes
		}
	}

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

# Fazer
company_Fazer = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/fazer.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_UUSIMAA }
	
	category = shopkeeper_owned
	
	possible_prestige_goods = {
		prestige_good_generic_sweets
	}

	building_types = {  #23
		building_food_industry
		building_furniture_manufactory
	}
	
	extension_building_types = {
		building_rye_farm
	}

	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_UUSIMAA
			}
		}
	}	
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_UUSIMAA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_furniture_manufactory
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		unit_supply_consumption_mult = -0.06 #16
		interest_group_ig_petty_bourgeoisie_approval_add = 2 #8
	}	
	

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

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

# Fiskars
company_Fiskars = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/fiskars.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_UUSIMAA }
	
	category = shopkeeper_owned
	
	possible_prestige_goods = {
		prestige_good_generic_tools
	}

	building_types = {  #14
		building_tooling_workshop
		building_steel_mill
	}
	
	extension_building_types = {
		building_livestock_ranch
		building_rye_farm
	}

	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_UUSIMAA
			}
		}
	}	
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_UUSIMAA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_steel_mill
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		interest_group_ig_rural_folk_approval_add = 2 #8
		building_paper_mill_throughput_add = 0.08 #6
	}	
	

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

	ai_construction_targets = {
		building_steel_mill = {
			level = 5
			state_trigger = {
				state_region = s:STATE_UUSIMAA
			}
		}
	}
	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}
# Oy Tampella Ab
company_Tampella = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/tampella.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_UUSIMAA }
	
	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 = {  #20
		building_arms_industry
		building_artillery_foundry
		building_motor_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_UUSIMAA
			}
		}
	}	
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_UUSIMAA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_tooling_workshop
				level >= 3
			}
		}
		has_technology_researched = repeaters
	}
	
	prosperity_modifier = {
		building_railway_throughput_add = 0.08 #10
		building_paper_mill_throughput_add = 0.11 #10
	}	
	

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

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

# Finlayson Oy
company_Finlayson = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/finlayson.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_UUSIMAA }
	
	possible_prestige_goods = {
		prestige_good_generic_clothes
	}
	
	prestige_goods_trigger = {
		custom_tooltip = {
			text = je_prestige_goods_clothes_complete_tt
			has_variable = prestige_good_generic_clothes_var
		}
	}
	
	building_types = {  #26
		building_textile_mill
	}
	
	extension_building_types = {
		building_cotton_plantation
		building_furniture_manufactory
		building_synthetics_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_UUSIMAA
			}
		}
	}	
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_UUSIMAA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_tooling_workshop #this is on purpose
				level >= 2
			}
		}
	}
	
	prosperity_modifier = {
		state_loyalists_from_political_movements_mult = 0.06 #8
		state_lower_strata_expected_sol_add = -0.2
		state_middle_strata_expected_sol_add = -0.4
		state_upper_strata_expected_sol_add = -0.6
		building_cotton_plantation_throughput_add = 0.09 #12
		interest_group_ig_industrialists_pop_attraction_mult = 0.09 #6
	}	
	

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

	ai_construction_targets = {
		building_tooling_workshop = {
			level = 2
			state_trigger = {
				state_region = s:STATE_UUSIMAA
			}
		}
		
		building_textile_mill = {
			level = 5
			state_trigger = {
				state_region = s:STATE_UUSIMAA
			}
		}
	}
	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}

# Suomen Pankki / Bank of Finland
company_Bank_of_Finland = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/bank_of_finland.dds" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_UUSIMAA }
	
	category = bureaucrat_owned
	
	possible_prestige_goods = {
		#prestige_good_generic_currency_paper
	}
	
	building_types = {  
		building_paper_mill
		building_gold_mine
		building_textile_mill
	}
	
	extension_building_types = {	
		building_logging_camp
		building_railway
		building_arms_industry
		building_steel_mill
	}

	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_UUSIMAA
			}
		}
	}	

	possible = { 
		any_scope_state = {
		    state_region = s:STATE_UUSIMAA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_financial_district
				level >= 10
			}
		}
		unique_companies_has_bank = no
	}
	
	prosperity_modifier = { 
		country_minting_mult = 0.025
		country_loan_interest_rate_mult = -0.05 #<--------
        country_private_construction_allocation_mult = 0.1		
		
		state_farmers_investment_pool_contribution_add = 0.01 #<-------
		state_shopkeepers_investment_pool_contribution_add = 0.015
		state_clergymen_investment_pool_contribution_add = 0.04
		state_aristocrats_investment_pool_contribution_add = 0.05 #<--------
		state_capitalists_investment_pool_contribution_add = 0.06 #<--------
		
		building_nationalization_investment_return_add = 0.05
		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_UUSIMAA
			is_incorporated = yes
		}
	}

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