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

# Vinnaia Monopoliia
TRY_REPLACE:company_vodka_monopoly = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/russian_vodka_monopoly.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_farm_wheat.dds"

	category = bureaucrat_owned

	flavored_company = yes

	preferred_headquarters = { STATE_INGRIA STATE_MOSCOW }

	building_types = {
		building_food_industry
		building_vineyard
	}

	extension_building_types = {
		building_wheat_farm
		building_rye_farm
	}

	possible_prestige_goods = {
		prestige_good_smirnoff_vodka
	}

	potential = {
		country_has_primary_culture = cu:russian
	}

	possible = {
		NOT = { has_law_or_variant = law_type:law_laissez_faire }
		any_scope_state = {
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_food_industry
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		state_radicals_from_political_movements_mult = -0.15
	}

	ai_will_do = {
		NOT = { has_law_or_variant = law_type:law_laissez_faire }
		any_scope_state = {
			OR = {
				state_region = s:STATE_INGRIA
				state_region = s:STATE_MOSCOW
			}
		}
	}

	ai_construction_targets = {
		building_food_industry = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_INGRIA
					state_region = s:STATE_MOSCOW
				}
			}
		}
	}

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

# Society of Putilov Factories
TRY_REPLACE:company_putilov_company = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/russian_putilov.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_INGRIA }

	building_types = {
		building_motor_industry
		building_artillery_foundry
		building_shipyard
	}

	extension_building_types = {
		building_munition_plant
		building_explosives_factory
	}

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

	potential = {
		has_interest_marker_in_region = sr:region_russia
	}

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

	possible = {
		has_technology_researched = railways
		any_scope_state = {
			state_region = s:STATE_INGRIA
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_motor_industry
					is_building_type = building_artillery_foundry
					is_building_type = building_shipyard
				}
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		building_railway_throughput_add = 0.1
		state_infrastructure_mult = 0.05
	}

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

	ai_construction_targets = {
		building_shipyard = {
			level = 5
			state_trigger = {
				state_region = s:STATE_INGRIA
			}
		}
		building_artillery_foundry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_INGRIA
			}
		}
		building_motor_industry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_INGRIA
			}
		}
	}

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

# The Petroleum Production Company Nobel Brothers, Limited
TRY_REPLACE:company_branobel = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/russian_branobel.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_oil_drills.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_AZERBAIJAN }

	building_types = {
		building_oil_rig
	}

	extension_building_types = {
		building_power_plant
	}

	possible_prestige_goods = {
		prestige_good_baku_oil
	}

	potential = {
		has_interest_marker_in_region = sr:region_greater_persia
	}

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

	possible = {
		has_technology_researched = pumpjacks
		any_scope_state = {
			state_region = s:STATE_AZERBAIJAN
			any_scope_building = {
				is_building_type = building_oil_rig
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		state_migration_pull_mult = 0.1
		building_railway_throughput_add = 0.05
	}

	ai_will_do = {
		has_technology_researched = pumpjacks
		any_scope_state = {
			state_region = s:STATE_AZERBAIJAN
		}
	}

	ai_construction_targets = {
		building_oil_rig = {
			level = 5
			state_trigger = {
				state_region = s:STATE_AZERBAIJAN
			}
		}
	}

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

# Izhevsk Arms Plant
TRY_REPLACE:company_izhevsk_arms_plant = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/russian_izhevsk_arms_plant.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"

	category = bureaucrat_owned

	flavored_company = yes

	preferred_headquarters = { STATE_PERM }

	building_types = {
		building_arms_industry
		building_munition_plant
	}

	extension_building_types = {
		building_artillery_foundry
		building_steel_mill
	}

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

	potential = {
		has_interest_marker_in_region = sr:region_siberia
	}

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

	possible = {
		has_technology_researched = rifling # corresponds roughly with the Izhevsk plant's incorporation as a private commercial enterprise, and not a state arsenal.
		any_scope_state = {
			state_region = s:STATE_PERM
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_arms_industry
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		building_arms_industry_throughput_add = 0.1
		building_artillery_foundry_throughput_add = 0.1
	}

	ai_will_do = {
		has_technology_researched = rifling
		any_scope_state = {
			state_region = s:STATE_PERM
		}
	}

	ai_construction_targets = {
		building_arms_industry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_PERM
			}
		}
	}

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

# Savva Morozov & Sons Cotton Textile Mfg. Co.
TRY_REPLACE:company_savva_morozov = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/russian_savva_morozov_and_sons.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_MOSCOW }

	building_types = {
		building_textile_mill
	}

	extension_building_types = {
		building_cotton_plantation
	}

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

	potential = {
		has_interest_marker_in_region = sr:region_russia
	}

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

	possible = {
		has_technology_researched = joint_stock_companies
		any_scope_state = {
			state_region = s:STATE_MOSCOW
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_textile_mill
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		country_prestige_mult = 0.1
		interest_group_ig_industrialists_pop_attraction_mult = 0.1
	}

	ai_will_do = {
		has_technology_researched = joint_stock_companies
		any_scope_state = {
			state_region = s:STATE_MOSCOW
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_arms_industry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_MOSCOW
			}
		}
	}

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

# New Russia Company Limited
TRY_REPLACE:company_john_hughes = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/russian_new_russia_company.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_KHARKOV STATE_TAURIDA }

	building_types = {
		building_steel_mill
		building_coal_mine
		building_iron_mine
	}

	extension_building_types = {
		building_railway
	}

	possible_prestige_goods = {
		prestige_good_russia_iron
	}

	potential = {
		has_interest_marker_in_region = sr:region_eastern_europe
	}

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

	possible = {
		has_technology_researched = bessemer_process
		any_scope_state = {
			OR = {
				state_region = s:STATE_KHARKOV
				state_region = s:STATE_TAURIDA
			}
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_steel_mill
					is_building_type = building_coal_mine
					is_building_type = building_iron_mine
				}
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		building_railway_throughput_add = 0.1
		interest_group_ig_industrialists_approval_add = 2
	}

	ai_will_do = {
		has_technology_researched = bessemer_process
		any_scope_state = {
			OR = {
				state_region = s:STATE_KHARKOV
				state_region = s:STATE_TAURIDA
			}
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_steel_mill = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_KHARKOV
					state_region = s:STATE_TAURIDA
				}
				is_incorporated = yes
			}
		}
		building_coal_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_KHARKOV
					state_region = s:STATE_TAURIDA
				}
				is_incorporated = yes
			}
		}
		building_iron_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_KHARKOV
					state_region = s:STATE_TAURIDA
				}
				is_incorporated = yes
			}
		}
	}

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

######################Sphere of Influence#########################

# West Ural Petroleum Company, Limited
TRY_REPLACE:company_west_ural_petroleum = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/historical_west_ural_petroleum_company_limited.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_oil_drills.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_URALSK }

	building_types = {
		building_oil_rig
	}

	extension_building_types = {
		building_power_plant
		building_railway
	}

	potential = {
		has_dlc_feature = ep1_content
		has_interest_marker_in_region = sr:region_central_asia
	}

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

	possible = {
		has_technology_researched = pumpjacks
		any_scope_state = {
			state_region = s:STATE_URALSK
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_oil_rig
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		state_colony_growth_speed_mult = 0.1
		building_power_plant_throughput_add = 0.05
	}

	ai_will_do = {
		has_technology_researched = pumpjacks
		any_scope_state = {
			state_region = s:STATE_URALSK
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_oil_rig = {
			level = 5
			state_trigger = {
				state_region = s:STATE_URALSK
			}
		}
	}

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

# Kirgizian Mining Joint Stock Company
TRY_REPLACE:company_kirgizian_mining_company= {
	icon = "gfx/interface/icons/company_icons/basic_metal_mining.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_SEMIRECHE }

	building_types = {
		building_coal_mine
	}

	extension_building_types = {
		building_iron_mine
	}

	potential = {
		has_dlc_feature = ep1_content
		has_interest_marker_in_region = sr:region_central_asia
	}

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

	possible = {
		has_technology_researched = steam_donkey
		has_technology_researched = railways
		any_scope_state = {
			state_region = s:STATE_SEMIRECHE
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_coal_mine
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		building_power_plant_throughput_add = 0.1
	}

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

	ai_construction_targets = {
		building_coal_mine = {
			level = 5
			state_trigger = {
				state_region = s:STATE_SEMIRECHE
			}
		}
	}

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

# Moscow Irrigation Company
TRY_REPLACE:company_moscow_irrigation_company = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/historical_moscow_irrigation_company.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_plantation.dds"

	category = bureaucrat_owned

	flavored_company = yes

	preferred_headquarters = { STATE_FERGANA }

	building_types = {
		building_cotton_plantation
		building_rice_farm
	}

	extension_building_types = {
		building_wheat_farm
		building_opium_plantation
	}

	possible_prestige_goods = {
		prestige_good_generic_grain
	}

	prestige_goods_trigger = {
		custom_tooltip = {
			text = je_prestige_goods_grain_complete_tt
			has_variable = prestige_good_generic_grain_var
		}
	}

	potential = {
		has_dlc_feature = ep1_content
		has_interest_marker_in_region = sr:region_greater_persia
	}

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

			OR = {
				any_scope_state = {
					state_region = s:STATE_MOSCOW
				}
				any_scope_ally = {
					any_scope_state = {
						state_region = s:STATE_MOSCOW
					}
				}
			}
		}
	}

	possible = {
		OR = {
			any_scope_state = {
				state_region = s:STATE_MOSCOW
			}
			any_scope_ally = {
				any_scope_state = {
					state_region = s:STATE_MOSCOW
				}
			}
		}
		any_scope_state = {
			state_region = s:STATE_FERGANA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_cotton_plantation
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		building_cotton_plantation_throughput_add = 0.2
		interest_group_ig_industrialists_pop_attraction_mult = 0.05
	}

	ai_will_do = {
		OR = {
			any_scope_state = {
				state_region = s:STATE_MOSCOW
			}
			any_scope_ally = {
				any_scope_state = {
					state_region = s:STATE_MOSCOW
				}
			}
		}
		any_scope_state = {
			state_region = s:STATE_FERGANA
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_cotton_plantation = {
			level = 5
			state_trigger = {
				state_region = s:STATE_FERGANA
			}
		}
	}

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

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

# Russian-American Company Under the High Patronage of His Imperial Majesty
TRY_REPLACE:company_russian_american_company = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_russian_american_company.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_harbor_shipbuilding.dds"

	category = bureaucrat_owned

	flavored_company = yes

	building_types = {
		building_logging_camp
		building_whaling_station
		building_port
	}

	extension_building_types = {
		building_coal_mine
		building_fishing_wharf
	}

	possible_prestige_goods = {
		prestige_good_generic_meat
	}

	prestige_goods_trigger = {
		custom_tooltip = {
			text = je_prestige_goods_meat_complete_tt
			has_variable = prestige_good_generic_meat_var
		}
	}

	potential = {
		has_interest_marker_in_region = sr:region_pacific_coast
		any_primary_culture = {
			has_discrimination_trait = heritage_east_slavic
		}
	}

	attainable = {
	}

	possible = {
		OR = {
			any_subject_or_below = {
				any_scope_state = {
					region = sr:region_pacific_coast
					any_scope_building = {
						OR = {
							is_building_type = building_port
							is_building_type = building_whaling_station
							is_building_type = building_logging_camp
						}
						level >= 5
					}
				}
			}

			any_scope_state = {
				region = sr:region_pacific_coast
				any_scope_building = {
					OR = {
						is_building_type = building_port
						is_building_type = building_whaling_station
						is_building_type = building_logging_camp
					}
					level >= 5
				}
			}
		}
	}

	prosperity_modifier = {
		state_colony_growth_speed_mult = 0.1
		state_conversion_mult = 0.05
		building_textile_mill_throughput_add = 0.05
	}

	ai_will_do = {
		OR = {
			any_subject_or_below = {
				any_scope_state = {
					region = sr:region_pacific_coast
				}
			}

			any_scope_state = {
				region = sr:region_pacific_coast
			}
		}
	}

	ai_construction_targets = {
		building_port = {
			level = 5
			state_trigger = {
				region = sr:region_pacific_coast
				is_incorporated = yes
			}
		}
		building_logging_camp = {
			level = 5
			state_trigger = {
				region = sr:region_pacific_coast
				is_incorporated = yes
			}
		}
		building_whaling_station = {
			level = 5
			state_trigger = {
				region = sr:region_pacific_coast
				is_incorporated = yes
			}
		}
	}

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

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

# Rosneft
company_Rosneft = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/rosneft.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_oil_drills.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SAKHALIN }

	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	
	building_types = { #22
		building_oil_rig
	}
	
	extension_building_types = {
		building_coal_mine
		building_gold_mine
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_siberia
		country_has_primary_culture = cu:russian
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SAKHALIN
			}
		}
	}
	
	possible = {
		any_scope_state = {
		    OR = {
				region = sr:region_siberia
				region = sr:region_siberia
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_oil_rig
				level >= 3
			}
			count >= 3
		}
	}
	
	prosperity_modifier = {
		state_migration_pull_mult = 0.1 #14
		interest_group_ig_industrialists_approval_add = 2 #8
	}	
	

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

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

# The Caucasus and Mercury shipping company
company_TCaM = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/caucasus.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_harbor_shipbuilding.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_AZERBAIJAN }
	

	possible_prestige_goods = {
		prestige_good_generic_merchant_marine
	}

	
	building_types = { #23
		building_trade_center
		building_port
	}
	
	extension_building_types = {
		building_paper_mill
		building_shipyard
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_near_east
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_AZERBAIJAN
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_AZERBAIJAN
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_trade_center
				level >= 5
			}
		}
	}
	
	prosperity_modifier = {
		country_ship_group_supply_ships_construction_efficiency_add = 0.15 #10
		state_trade_advantage_mult = 0.20 #13
	}


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

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

# Alivaria Brewery
company_Alivaria = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/alivaria.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_farm_wheat.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_MINSK }

	possible_prestige_goods = {
		prestige_good_generic_groceries
	}

	
	building_types = { #27
		building_food_industry
	}
	
	extension_building_types = {
		building_livestock_ranch
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_eastern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_MINSK
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_MINSK
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_food_industry
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		state_radicals_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_group_bg_agriculture_throughput_add = 0.05 #18
	}	
	

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

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

# Izhorskiye Zavody
company_Izhorskiye_Zavody = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/izhorskiye.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_INGRIA }

	possible_prestige_goods = {
		prestige_good_generic_tools
	}

	
	building_types = { #11
		building_logging_camp
		building_tooling_workshop
		building_shipyard
	}
	
	extension_building_types = {
		building_steel_mill
		building_motor_industry
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_russia
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_INGRIA
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_INGRIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_logging_camp
				level >= 3
			}
		}
		has_technology_researched = paddle_steamer
	}
	
	prosperity_modifier = {
		ship_armor_mult = 0.015 #6
		interest_group_ig_landowners_approval_add = 1 #4
	}	
	

	ai_will_do = {
		has_technology_researched = paddle_steamer
		any_scope_state = {
			state_region = s:STATE_INGRIA
			is_incorporated = yes
		}
	}

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

#State Bank of the Russian Empire
company_Bank_SBRE = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/russian_empirebank.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_INGRIA }
	
	possible_prestige_goods = {
		#prestige_good_generic_currency_paper
	}
	
	building_types = {
		building_paper_mill
		building_gold_mine
		building_rye_farm
	}
	
	extension_building_types = {	
		building_coal_mine
		building_steel_mill
		building_power_plant
		building_shipyard
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_russia
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_INGRIA
			}
		}
	}	
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_INGRIA
			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 = {
		country_loyalists_from_legitimacy_mult = 0.1 #(first) state owned bank, it was used to finance their current needs
		building_cash_reserves_mult = 0.05
		
		country_minting_mult = 0.025
		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.04
		state_capitalists_investment_pool_contribution_add = 0.065
		
		building_nationalization_investment_return_add = 0.05
		country_government_dividends_reinvestment_add = 0.075  #<--
		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_INGRIA
			is_incorporated = yes
		}
	}

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

#State Bank of the USSR
company_Gosbank = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/ussrbank.png"  
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
		
	flavored_company = yes
	preferred_headquarters = { STATE_MOSCOW }
	
	possible_prestige_goods = {
		#prestige_good_generic_currency_paper
	}	
	
	building_types = {
		building_paper_mill
		building_gold_mine
		building_automotive_industry
	}
	
	extension_building_types = {	
		building_power_plant
		building_steel_mill
		building_railway
		building_coal_mine
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_russia
	}	
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_MOSCOW
			}
		}
	}	
	
	possible = {
		any_scope_state = {
		    state_region = s:STATE_MOSCOW
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_power_plant
					is_building_type = building_steel_mill
				}
				level >= 5
			}
		}
		has_technology_researched = central_planning
		has_law_or_variant = law_type:law_command_economy
		unique_companies_has_bank = no
	}
	
	prosperity_modifier = {
		country_minting_mult = 0.025
		
		country_loyalists_from_legitimacy_mult = 0.1
		country_legitimacy_base_add = 5
		country_authority_mult = 0.1
		
		state_farmers_investment_pool_contribution_add = 0.04
		state_shopkeepers_investment_pool_contribution_add = 0.06
		state_clergymen_investment_pool_contribution_add = 0.02
		
		building_nationalization_investment_return_add = 0.05
		country_government_dividends_reinvestment_add = 0.075 
		country_government_dividends_efficiency_add = 0.075 
		
		country_max_companies_add = 1
	}
	
	ai_will_do = {
		unique_companies_has_bank = no
		has_technology_researched = central_planning
		has_law_or_variant = law_type:law_command_economy
		any_scope_state = {
			state_region = s:STATE_MOSCOW
			is_incorporated = yes
		}
	}

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

# Dux
company_Dux = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/dux2.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_MOSCOW }

	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	
	building_types = { #24
		building_motor_industry
		building_automotive_industry
	}
	
	extension_building_types = {
		building_tooling_workshop
		building_steel_mill
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_russia
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_MOSCOW
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_MOSCOW
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_motor_industry
				level >= 5
			}
		}
		has_technology_researched = electrical_generation
	}
	
	prosperity_modifier = {
		unit_occupation_mult = 0.16 #16
		unit_army_offense_mult = 0.04 #8
	}	
	

	ai_will_do = {
		has_technology_researched = electrical_generation
		any_scope_state = {
			state_region = s:STATE_MOSCOW
			is_incorporated = yes
		}
	}

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

# Aksai Joint-Stock Company
company_Aksai = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/aksai.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_ROSTOV }

	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	
	building_types = { #28
		building_automotive_industry
	}
	
	extension_building_types = {
		building_motor_industry
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_russia
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_ROSTOV
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_ROSTOV
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_automotive_industry
				level >= 5
			}
		}
		has_technology_researched = combustion_engine
	}
	
	prosperity_modifier = {
		goods_output_automobiles_mult = 0.05 #4
		building_shipyard_throughput_add = 0.2 #20
		military_formation_army_movement_speed_mult = 0.04 #4
	}	
	

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

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

# Cherepovetsles / Oranienbaum company of sawmills
company_Cherepovetsles = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/cherepo.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_harbor_shipbuilding.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_MOSCOW }
	

	possible_prestige_goods = {
		prestige_good_siberian_pine
	}

	
	building_types = { #27
		building_logging_camp
	}
	
	extension_building_types = {
		building_port
		building_tooling_workshop
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_russia
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_MOSCOW
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_MOSCOW
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_logging_camp
				level >= 5
			}
		}
		has_technology_researched = combustion_engine
	}
	
	prosperity_modifier = {
		building_port_throughput_add = 0.1 #10
		state_infrastructure_mult = 0.02 #4
		state_pop_qualifications_mult = 0.11 #14
	}


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

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

# Kyiv confectionery factory "Roshen" / Karl Marx Kyiv Confectionery Factory
company_roshen_food = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/karlmarx_chocolate.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_farm_wheat.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_KIEV }
	

	possible_prestige_goods = {
		prestige_good_generic_sweets
	}

	
	building_types = { #27
		building_food_industry
		building_wheat_farm
	}
	
	extension_building_types = {
		building_sugar_plantation
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_russia
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_KIEV
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_KIEV
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_food_industry
				level >= 5
			}
		}
		has_technology_researched = vacuum_canning
	}
	
	prosperity_modifier = {
		building_group_bg_agriculture_throughput_add = 0.05 #18
		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
	}


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

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

# Kryukiv Railway Car Building Works
company_kryukiv_railway = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/kryukivrailway.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_railways.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_KHARKOV }
	

	possible_prestige_goods = {
		##
	}

	
	building_types = { #17
		building_railway
		building_tooling_workshop
	}
	
	extension_building_types = {
		building_automotive_industry
		building_motor_industry
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_russia
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_KHARKOV
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_KHARKOV
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_railway
				level >= 3
			}
		}
		has_technology_researched = steel_railway_cars
	}
	
	prosperity_modifier = {
		unit_supply_consumption_mult = -0.03 #10
		building_urban_center_throughput_add = 0.06 #8
	}


	ai_will_do = {
		has_technology_researched = steel_railway_cars
		any_scope_state = {
			state_region = s:STATE_KHARKOV
			is_incorporated = yes
		}
	}

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

# LOMO
company_LOMO = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/lomo.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_INGRIA }
	
	possible_prestige_goods = {
		##
	}

	building_types = {  #28
		building_glassworks
	}
	
	extension_building_types = {
		building_chemical_plant
	}

	potential = {
		has_interest_marker_in_region = sr:region_russia
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_INGRIA
			}
		}
	}	
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_INGRIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_glassworks
				level >= 3
			}
		}
		has_technology_researched = plastics
		has_technology_researched = camera
	}
	
	prosperity_modifier = {
		unit_army_offense_mult = 0.05 #10
		building_art_academy_throughput_add = 0.1 #10
		country_society_tech_spread_mult = 0.08 #8
	}	
	

	
	ai_will_do = {
	    has_technology_researched = plastics
		has_technology_researched = camera
		any_scope_state = {
			state_region = s:STATE_INGRIA
			is_incorporated = yes
		}
	}

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