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

# Škoda Works
TRY_REPLACE:company_skoda = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/skoda.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_BOHEMIA }

	building_types = {
		building_steel_mill
		building_motor_industry
		building_artillery_foundry
	}

	extension_building_types = {
		building_automotive_industry
	}

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

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
	}

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

	possible = {
		has_technology_researched = shell_gun
		any_scope_state = {
			state_region = s:STATE_BOHEMIA
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_steel_mill
					is_building_type = building_arms_industry
					is_building_type = building_artillery_foundry
				}
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		character_advancement_speed_add = 1
		unit_combat_unit_type_siege_artillery_offense_mult = 0.15
	}

	ai_will_do = {
		has_technology_researched = shell_gun
		any_scope_state = {
			state_region = s:STATE_BOHEMIA
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_steel_mill = {
			level = 5
			state_trigger = {
				state_region = s:STATE_BOHEMIA
			}
		}
		building_arms_industry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_BOHEMIA
			}
		}
		building_artillery_foundry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_BOHEMIA
			}
		}
	}

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

# Magyar Királyi Államvasutak Gépgyára
TRY_REPLACE:company_mav = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/mavag.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"

	category = bureaucrat_owned

	flavored_company = yes

	preferred_headquarters = { STATE_CENTRAL_HUNGARY }

	building_types = {
		building_motor_industry
		building_tooling_workshop
	}

	extension_building_types = {
		building_automotive_industry
	}

	possible_prestige_goods = {
		prestige_good_generic_tools
	}

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

	potential = {
		has_interest_marker_in_region = sr:region_balkans
	}

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

	possible = {
		has_technology_researched = railways
		any_scope_state = {
			state_region = s:STATE_CENTRAL_HUNGARY
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_motor_industry
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		building_railway_throughput_add = 0.1
	}

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

	ai_construction_targets = {
		building_motor_industry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_CENTRAL_HUNGARY
			}
		}
	}

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

# Weiss Manfréd Acél- és Fémművek
TRY_REPLACE:company_manfred_weiss = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/manfred_weiss.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_CENTRAL_HUNGARY }

	building_types = {
		building_steel_mill
		building_munition_plant
		building_automotive_industry
	}

	extension_building_types = {
		building_iron_mine
	}

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

	potential = {
		has_interest_marker_in_region = sr:region_balkans
	}

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

	possible = {
		has_technology_researched = open_hearth_process
		any_scope_state = {
			state_region = s:STATE_CENTRAL_HUNGARY
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_steel_mill
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		unit_offense_mult = 0.05
		country_military_tech_spread_mult = 0.05
	}

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

	ai_construction_targets = {
		building_steel_mill = {
			level = 5
			state_trigger = {
				state_region = s:STATE_CENTRAL_HUNGARY
			}
		}
	}

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

# Galizisch-Karpathische Petroleum AG
TRY_REPLACE:company_galician_carpathian_oil = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/galician_carpathian_oil.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_oil_drills.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_EAST_GALICIA STATE_WEST_GALICIA }

	building_types = {
		building_oil_rig
	}

	extension_building_types = {
		building_power_plant
		building_coal_mine
	}

	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_EAST_GALICIA
					state_region = s:STATE_WEST_GALICIA
				}
			}
		}
	}

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

	prosperity_modifier = {
		building_railway_throughput_add = 0.05
		building_tooling_workshop_throughput_add = 0.1
	}

	ai_will_do = {
		has_technology_researched = pumpjacks
		any_scope_state = {
			OR = {
				state_region = s:STATE_EAST_GALICIA
				state_region = s:STATE_WEST_GALICIA
			}
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_steel_mill = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_EAST_GALICIA
					state_region = s:STATE_WEST_GALICIA
				}
				is_incorporated = yes
			}
		}
	}

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

# Oesterreichische Waffenfabriks-Gesellschaft
TRY_REPLACE:company_oevg = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/oevg.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_AUSTRIA }

	building_types = {
		building_arms_industry
		building_artillery_foundry
	}

	extension_building_types = {
		building_steel_mill
		building_munition_plant
		building_electrics_industry
	}

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

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

	possible = {
		has_technology_researched = percussion_cap
		any_scope_state = {
			state_region = s:STATE_AUSTRIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_arms_industry
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		building_munition_plant_throughput_add = 0.1
		unit_defense_mult = 0.05
	}

	ai_will_do = {
		has_technology_researched = percussion_cap
		any_scope_state = {
			state_region = s:STATE_AUSTRIA
			is_incorporated = yes
		}
	}

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

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

##############################DLC-MP1##############################
# Glasfabrik Ludwig Moser & Söhne / Sklárny Ludwig Moser a synové
TRY_REPLACE:company_ludwig_moser_and_sons = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_ludwig_moser_and_sons.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_BOHEMIA }

	building_types = {
		building_glassworks
	}

	extension_building_types = {
		building_lead_mine
	}

	potential = {
		has_dlc_feature = mp1_content
		has_interest_marker_in_region = sr:region_central_europe
	}

	possible_prestige_goods = {
		prestige_good_bohemian_crystal
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			s:STATE_BOHEMIA = {
				any_scope_state = {
					owner = root
				}
			}
		}
	}

	possible = {
		any_scope_state = {
			state_region = s:STATE_BOHEMIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_glassworks
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		country_influence_mult = 0.05
		building_art_academy_throughput_add = 0.05
		country_leverage_generation_mult = 0.1
	}

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

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

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

# Gebrüder Thonet
TRY_REPLACE:company_gebruder_thonet = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_gebruder_thonet.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_AUSTRIA }

	building_types = {
		building_furniture_manufactory
	}

	extension_building_types = {
		building_logging_camp
	}

	possible_prestige_goods = {
		prestige_good_bentwood_furniture
	}

	potential = {
		has_dlc_feature = mp1_content
		has_interest_marker_in_region = sr:region_central_europe
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			s:STATE_AUSTRIA = {
				any_scope_state = {
					owner = root
				}
			}
		}
	}

	possible = {
		any_scope_state = {
			state_region = s:STATE_AUSTRIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_furniture_manufactory
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		interest_group_ig_petty_bourgeoisie_pop_attraction_mult = 0.05
		state_radicals_from_political_movements_mult = -0.05
		building_furniture_manufactory_throughput_add = 0.1
	}

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

	ai_construction_targets = {
		building_furniture_manufactory = {
			level = 5
			state_trigger = {
				state_region = s:STATE_AUSTRIA
			}
		}
	}

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

################### National Awakening #########################

# Mate Gavrilović i drug
TRY_REPLACE:company_mate_gavrilovic = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_mate_gavrilovic.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"

	category = shopkeeper_owned

	flavored_company = yes

	building_types = {
		building_food_industry
	}

	extension_building_types = {
		building_livestock_ranch
	}

	possible_prestige_goods = {
		prestige_good_generic_groceries
	}

	potential = {
		has_interest_marker_in_region = sr:region_balkans
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			s:STATE_CROATIA = {
				any_scope_state = {
					owner = root
				}
			}
		}
	}

	possible = {
		any_scope_state = {
			state_region = s:STATE_CROATIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_food_industry
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		unit_morale_recovery_mult = 0.1
		building_livestock_ranch_throughput_add = 0.1
		interest_group_ig_petty_bourgeoisie_approval_add = 2
	}

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

	ai_construction_targets = {
		building_food_industry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_CROATIA
			}
		}
	}

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

# Stabilimento Tecnico di Fiume / alt. Torpedo-Fabrik von Robert Whitehead
TRY_REPLACE:company_stabilimento_tecnico_di_fiume = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_stabilimento_tecnico_di_fiume.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_harbor_shipbuilding.dds"

	flavored_company = yes

	building_types = {
		building_shipyard
		building_explosives_factory
	}

	extension_building_types = {
		building_steel_mill
	}

	potential = {
		has_interest_marker_in_region = sr:region_balkans
		has_dlc_feature = ip3_content
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			s:STATE_DALMATIA = {
				any_scope_state = {
					owner = root
				}
			}
		}
	}

	possible = {
		has_technology_researched = self_propelled_torpedoes
		any_scope_state = {
			state_region = s:STATE_DALMATIA
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_shipyard
					is_building_type = building_explosives_factory
				}
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		ship_hull_damage_mult = 0.075 # Whitehead torpedoes
	}

	ai_will_do = {
		has_technology_researched = self_propelled_torpedoes
		any_scope_state = {
			state_region = s:STATE_DALMATIA
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_shipyard = {
			level = 5
			state_trigger = {
				state_region = s:STATE_DALMATIA
			}
		}
	}

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

# Jakub Klein a spol.
TRY_REPLACE:company_jakub_klein = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_jakub_klein.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"

	flavored_company = yes

	building_types = {
		building_logging_camp
		building_paper_mill
	}

	extension_building_types = {
		building_chemical_plant
	}

	potential = {
		has_interest_marker_in_region = sr:region_balkans
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			s:STATE_SLOVAKIA = {
				any_scope_state = {
					owner = root
				}
			}
		}
	}

	possible = {
		any_scope_state = {
			state_region = s:STATE_SLOVAKIA
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_logging_camp
					is_building_type = building_paper_mill
				}
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		building_paper_mill_throughput_add = 0.1
		building_group_bg_agriculture_throughput_add = 0.05
	}

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

	ai_construction_targets = {
		building_logging_camp = {
			level = 5
			state_trigger = {
				state_region = s:STATE_SLOVAKIA
			}
		}
		building_paper_mill = {
			level = 5
			state_trigger = {
				state_region = s:STATE_SLOVAKIA
			}
		}
	}

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

# Első Budapesti Gőzmalom Rt. / First Budapest Steam Mill Co.
TRY_REPLACE:company_elso_budapesti_gozmalom = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_elso_budapesti_gozmalom.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_farm_wheat.dds"

	flavored_company = yes

	building_types = {
		building_wheat_farm
		building_food_industry
	}

	extension_building_types = {
		building_logging_camp
	}

	possible_prestige_goods = {
		prestige_good_pannonian_patent_flour
	}

	potential = {
		has_interest_marker_in_region = sr:region_balkans
		has_dlc_feature = ip3_content
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			s:STATE_CENTRAL_HUNGARY = {
				any_scope_state = {
					owner = root
				}
			}
		}
	}

	possible = {
		any_scope_state = {
			state_region = s:STATE_CENTRAL_HUNGARY
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_food_industry
			}
		}
		any_scope_state = {
			has_state_trait = state_trait_pannonian_plain
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_wheat_farm
				level >= 5
			}
			count >= 3
		}
	}

	prosperity_modifier = {
		building_wheat_farm_throughput_add = 0.15
		state_trade_advantage_mult = 0.05
	}

	ai_will_do = {
		any_scope_state = {
			state_region = s:STATE_CENTRAL_HUNGARY
			has_state_trait = state_trait_pannonian_plain
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_wheat_farm = {
			level = 5
			state_trigger = {
				has_state_trait = state_trait_pannonian_plain
			}
		}
		building_food_industry = {
			level = 1
			state_trigger = {
				state_region = s:STATE_CENTRAL_HUNGARY
			}
		}
	}

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

# Witkowitzer Bergbau- und Hüttengewerkschaft
TRY_REPLACE:company_witkowitzer_bergbau_und_huttengewerkschaft = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_witkowitzer_bergbau_und_huttengewerkschaft.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"

	flavored_company = yes

	building_types = {
		building_coal_mine
		building_iron_mine
	}

	extension_building_types = {
		building_lead_mine
		building_sulfur_mine
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
		has_dlc_feature = ip3_content
	}

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

	possible = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_MORAVIA
				state_region = s:STATE_UPPER_SILESIA
			}
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_coal_mine
					is_building_type = building_iron_mine
				}
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		building_construction_sector_throughput_add = 0.05
		building_power_plant_throughput_add = 0.1
	}

	ai_will_do = {
		any_scope_state = {
			OR = {
				state_region = s:STATE_MORAVIA
				state_region = s:STATE_UPPER_SILESIA
			}
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_coal_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_MORAVIA
					state_region = s:STATE_UPPER_SILESIA
				}
			}
		}
		building_iron_mine = {
			level = 5
			state_trigger = {
				OR = {
					state_region = s:STATE_MORAVIA
					state_region = s:STATE_UPPER_SILESIA
				}
			}
		}
	}

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

# Oesterreichisch-Alpine Montangesellschaft
TRY_REPLACE:company_oesterreichisch_alpine_montangesellschaft = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_oesterreichisch_alpine_montangesellschaft.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"

	flavored_company = yes

	building_types = {
		building_steel_mill
		building_iron_mine
	}

	extension_building_types = {
		building_railway
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			s:STATE_STYRIA = {
				any_scope_state = {
					owner = root
				}
			}
		}
	}

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

	prosperity_modifier = {
		building_coal_mine_throughput_add = 0.1
		building_railway_throughput_add = 0.05
	}

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

	ai_construction_targets = {
		building_steel_mill = {
			level = 5
			state_trigger = {
				state_region = s:STATE_STYRIA
			}
		}
		building_iron_mine = {
			level = 5
			state_trigger = {
				state_region = s:STATE_STYRIA
			}
		}
	}

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

# Getzner, Mutter & Cie
TRY_REPLACE:company_getzner_mutter = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_getzner_mutter.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"

	flavored_company = yes

	building_types = {
		building_textile_mill
		building_power_plant
	}

	extension_building_types = {
		building_synthetics_plant
	}

	possible_prestige_goods = {
		prestige_good_generic_clothes
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
		has_dlc_feature = ip3_content
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			s:STATE_TYROL = {
				any_scope_state = {
					owner = root
				}
			}
		}
	}

	possible = {
		any_scope_state = {
			state_region = s:STATE_TYROL
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_textile_mill
				level >= 5
			}
			any_scope_building = {
				is_building_type = building_power_plant
			}
		}
	}

	prosperity_modifier = {
		building_synthetics_plant_throughput_add = 0.1
		interest_group_ig_petty_bourgeoisie_approval_add = 2
	}

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

	ai_construction_targets = {
		building_textile_mill = {
			level = 5
			state_trigger = {
				state_region = s:STATE_TYROL
			}
		}
		building_power_plant = {
			level = 1
			state_trigger = {
				state_region = s:STATE_TYROL
			}
		}
	}

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

# Erste Brünner Maschinenfabriks-Gesellschaft / První brněnská strojírna
TRY_REPLACE:company_erste_brunner = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_erste_brunner.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"

	flavored_company = yes

	building_types = {
		building_motor_industry
		building_tooling_workshop
	}

	extension_building_types = {
		building_power_plant
	}

	possible_prestige_goods = {
		prestige_good_brunn_type_engines
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
		has_dlc_feature = ip3_content
	}

	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			s:STATE_MORAVIA = {
				any_scope_state = {
					owner = root
				}
			}
		}
	}

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

	prosperity_modifier = {
		building_textile_mill_throughput_add = 0.1
		building_power_plant_throughput_add = 0.1
	}

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

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

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

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

# Ganz Works
company_GanzWorks = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/ganzmavag.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_CENTRAL_HUNGARY }
	
	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_artillery_foundry
		building_motor_industry
	}
	
	extension_building_types = {
		building_electrics_industry
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_central_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_CENTRAL_HUNGARY
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_CENTRAL_HUNGARY
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_railway
					is_building_type = building_motor_industry
					is_building_type = building_steel_mill
				}
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		building_railway_throughput_add = 0.11 #14
	}	
	

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

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


# Hönigsberg & Deutsch
company_HoenigsbergDeutsch = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/hönigsbergdeutsch.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_CROATIA }
	
	category = academic_owned
	
	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}
	
	building_types = {  #22
		building_steel_mill
	}
	
	extension_building_types = {
		building_art_academy
	}

	potential = {
		has_interest_marker_in_region = sr:region_balkans
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_CROATIA
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_CROATIA
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_art_academy
					is_building_type = building_university
					is_building_type = building_construction_sector
				}
				level >= 3
			}
		}
		has_technology_researched = empiricism
	}
	
	prosperity_modifier = {
		building_university_throughput_add = 0.05 #5
		building_art_academy_throughput_add = 0.12 #12
		country_max_weekly_construction_progress_add = 5 #5
	}	
	

	
	ai_will_do = {
		has_technology_researched = empiricism
		any_scope_state = {
			state_region = s:STATE_CROATIA
			is_incorporated = yes
		}
	}

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

# Bene AG
company_BeneAG = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/beneag.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_AUSTRIA }
	
	possible_prestige_goods = {
		prestige_good_generic_furniture
	}

	building_types = { #26
		building_furniture_manufactory
	}
	
	extension_building_types = {
		building_logging_camp
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_AUSTRIA
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_AUSTRIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_furniture_manufactory
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		building_government_administration_throughput_add = 0.15 #10
		building_group_bg_logging_throughput_add = 0.12 #16
	}	
	

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

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

# Andritz AG
company_Andritz = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/andritz.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_STYRIA }
	
	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_iron_mine
		building_steel_mill
	}
	
	extension_building_types = {
		building_motor_industry
		building_tooling_workshop
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_STYRIA
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_STYRIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_iron_mine
				level >= 3
			}
		}
		has_technology_researched = mechanical_tools
	}
	
	prosperity_modifier = {
		country_production_tech_spread_mult = 0.08 #8
		building_tooling_workshop_throughput_add = 0.03 #6
	}	
	

	
	ai_will_do = {
		has_technology_researched = mechanical_tools
		any_scope_state = {
			state_region = s:STATE_STYRIA
			is_incorporated = yes
		}
	}

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

# Dorotheum
company_Dorotheum = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/doro.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_AUSTRIA }
	
	category = shopkeeper_owned
	
	possible_prestige_goods = {
		prestige_good_english_upholstery
		prestige_good_generic_religious_icons
	}
	
	building_types = {  #26
		building_trade_center
	}
	
	extension_building_types = {
		building_furniture_manufactory
		building_art_academy
	}

	potential = { 
		has_interest_marker_in_region = sr:region_central_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_AUSTRIA
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_AUSTRIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_art_academy
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		country_influence_mult = 0.03 #2
		interest_group_ig_landowners_approval_add = 2 #8
		interest_group_ig_petty_bourgeoisie_approval_add = 2 #8
		interest_group_ig_devout_approval_add = 2 #8
	}	
	

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

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

# Ottakringer Brauerei GmbH
company_Ottakringer = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/ottakringer.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_AUSTRIA }
	
	category = aristocrat_owned
	
	possible_prestige_goods = {
		prestige_good_generic_beer
	}

	building_types = { #27
		building_food_industry
	}
	
	extension_building_types = {
		building_wheat_farm
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_AUSTRIA
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_AUSTRIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_food_industry
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		state_radicals_from_political_movements_mult = -0.15 #20
		state_lower_strata_expected_sol_add = -0.5
		state_middle_strata_expected_sol_add = -1
		state_upper_strata_expected_sol_add = -1.5
		interest_group_ig_landowners_approval_add = 2 #8
	}	
	

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

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

# Böhler-Uddeholm AG
company_Boehler = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/boehler.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_STYRIA }
	
	possible_prestige_goods = {
		prestige_good_generic_tools
	}
	
	prestige_goods_trigger = {
		custom_tooltip = {
			text = je_prestige_goods_tools_complete_tt
			has_variable = prestige_good_generic_tools_var
		}
	}

	building_types = {  #14
		building_steel_mill
		building_tooling_workshop
	}
	
	extension_building_types = {
		building_iron_mine
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_STYRIA
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_STYRIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_tooling_workshop
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		country_max_weekly_construction_progress_add = 5 #6
		state_trade_advantage_mult = 0.12 #8
	}	
	

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

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

# Steyrermühl-Konzern
company_Steyrer = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/styrermuehl.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_STYRIA }
	
	category = shopkeeper_owned
	
	possible_prestige_goods = {
		prestige_good_generic_newspaper
	}

	building_types = {  #19
		building_logging_camp
		building_paper_mill
	}
	
	extension_building_types = {
		building_furniture_manufactory
		building_synthetics_plant
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
		has_game_rule = newspapers_enabled
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_STYRIA
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_STYRIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_paper_mill
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		interest_group_in_government_approval_add = 2 #12
		interest_group_in_government_attraction_mult = 0.08 #8
	}	
	

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

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

# Rába Járműipari Holding Nyrt.
company_Raba = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/raba.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_TRANSDANUBIA }
	
	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	building_types = { #17
		building_automotive_industry
		building_railway
	}
	
	extension_building_types = {
		building_motor_industry
	}

	potential = {
		has_interest_marker_in_region = sr:region_balkans
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_TRANSDANUBIA
			}
		}
	}			
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_TRANSDANUBIA
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_automotive_industry
					is_building_type = building_railway
				}
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		state_trade_advantage_mult = 0.15 #10
		unit_army_defense_mult = 0.04 #8
	}	
	

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

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

# Fegyver- és Gépgyártó Részvénytársaság
company_FEG = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/feg.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_CENTRAL_HUNGARY }
	
	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 = { #14
		building_arms_industry
		building_motor_industry
		building_tooling_workshop
	}
	
	extension_building_types = {
		building_steel_mill
	}

	potential = {
		has_interest_marker_in_region = sr:region_balkans
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_CENTRAL_HUNGARY
			}
		}
	}			
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_CENTRAL_HUNGARY
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_arms_industry
				level >= 3
			}
		}
		has_technology_researched = repeaters
	}
	
	prosperity_modifier = {
		unit_army_offense_mult = 0.07 #14
	}	
	

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

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

# Czell Frigyes és fiai
company_CFef = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/czell.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SOUTHERN_TRANSYLVANIA }
	
	category = shopkeeper_owned
	
	possible_prestige_goods = {
		prestige_good_generic_groceries
	}
	
	building_types = { #17
		building_livestock_ranch
		building_food_industry
		building_coal_mine
	}
	
	extension_building_types = {
		building_wheat_farm
	}

	potential = {
		has_interest_marker_in_region = sr:region_balkans
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SOUTHERN_TRANSYLVANIA
			}
		}
	}			
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_SOUTHERN_TRANSYLVANIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_livestock_ranch
				level >= 3
			}
		}
		has_technology_researched = intensive_agriculture
	}
	
	prosperity_modifier = {
		building_group_bg_mining_throughput_add = 0.06 #16
		state_pollution_reduction_health_mult = 0.03
	}	
	

	
	ai_will_do = {
		has_technology_researched = intensive_agriculture
		any_scope_state = {
			state_region = s:STATE_SOUTHERN_TRANSYLVANIA
			is_incorporated = yes
		}
	}

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

# Zwack
company_Zwack = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/zwack.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_farm_wheat.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_CENTRAL_HUNGARY }
	
	category = shopkeeper_owned
	
	possible_prestige_goods = {
		prestige_good_generic_beer
	}

	building_types = { #25
		building_food_industry
		building_wheat_farm #herbs
	}
	
	extension_building_types = {
		building_banana_plantation
	}

	potential = {
		has_interest_marker_in_region = sr:region_balkans
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_CENTRAL_HUNGARY
			}
		}
	}			
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_CENTRAL_HUNGARY
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_food_industry
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		state_mortality_wealth_mult = -0.002 #10
        state_radicals_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_CENTRAL_HUNGARY
			is_incorporated = yes
		}
	}

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

#Creditanstalt
company_Bank_CA = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/creditanstalt.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_AUSTRIA }
	
	category = aristocrat_owned
	
	possible_prestige_goods = {
		#prestige_good_generic_currency_paper
	}
	
	building_types = {
		building_paper_mill
		building_railway
		building_coal_mine	
	}
	
	extension_building_types = {	
		building_steel_mill
		building_iron_mine
		building_livestock_ranch
		building_art_academy
	}
	
	potential = {
		has_game_rule = banks_enabled
		has_interest_marker_in_region = sr:region_central_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_AUSTRIA
			}
		}
	}	
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_AUSTRIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_financial_district
				level >= 20
			}
		}
		has_technology_researched = investment_banks
		unique_companies_has_bank = no
	}
	
	prosperity_modifier = {
		country_legitimacy_base_add = 5
		interest_group_ig_landowners_approval_add = 2
		
        country_private_construction_allocation_mult = 0.1		
		
		state_farmers_investment_pool_contribution_add = 0.015
		state_shopkeepers_investment_pool_contribution_add = 0.015
		state_clergymen_investment_pool_contribution_add = 0.04
		state_aristocrats_investment_pool_contribution_add = 0.065 #<--
		state_capitalists_investment_pool_contribution_add = 0.065
		
		building_nationalization_investment_return_add = 0.10 #<--
		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
		has_technology_researched = investment_banks
		any_scope_state = {
			state_region = s:STATE_AUSTRIA
			is_incorporated = yes
		}
	}

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

# Riedel 
company_Riedel = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/riedel.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_BOHEMIA }
	
	category = shopkeeper_owned
	
	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	building_types = { #12
		building_glassworks
		building_textile_mill
		building_coal_mine
	}
	
	extension_building_types = {
		building_electrics_industry
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_central_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_BOHEMIA
			}
		}
	}			
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_BOHEMIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_glassworks
				level >= 3
			}
		}
		has_technology_researched = crystal_glass
	}
	
	prosperity_modifier = {
		building_chemical_plant_throughput_add = 0.06 #6
		state_infrastructure_from_population_add = 3 #6
	}	
	

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

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

# Swarovski
company_Swarovski = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/swarovski.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_BOHEMIA }
	
	possible_prestige_goods = {
		prestige_good_bohemian_crystal
	}

	building_types = { #26
		building_glassworks
	}
	
	extension_building_types = {
		building_power_plant
		building_electrics_industry
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_BOHEMIA
			}
		}
	}			
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_BOHEMIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_glassworks
				level >= 5
			}
		}
		has_technology_researched = automatic_bottle_blowers #kinda fits, he invented something to automize crystal cutting
	}
	
	prosperity_modifier = {
		building_glassworks_throughput_add = 0.07 #10
		building_power_plant_throughput_add = 0.06 #8
		unit_offense_mult = 0.02 #8 binoculars are hard to set right
	}	
	

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

	ai_construction_targets = {
		building_glassworks = {
			level = 5
			state_trigger = {
				state_region = s:STATE_BOHEMIA
			}
		}
	}
	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}
# Zsolnay
company_Zsolnay = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/zsolnay.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_TRANSDANUBIA }
	
	category = shopkeeper_owned
	
	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}
	
	building_types = { #21
		building_glassworks
		building_synthetics_plant
	}
	
	extension_building_types = {
		building_electrics_industry
	}

	potential = {
		has_interest_marker_in_region = sr:region_balkans
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_TRANSDANUBIA
			}
		}
	}			
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_TRANSDANUBIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_glassworks
				level >= 3
			}
		}
		has_technology_researched = crystal_glass
	}
	
	prosperity_modifier = {
		building_construction_sector_throughput_add = 0.09 #12
		building_electrics_industry_throughput_add = 0.07 #9
	}	
	

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

	ai_construction_targets = {
		building_glassworks = {
			level = 5
			state_trigger = {
				state_region = s:STATE_TRANSDANUBIA
			}
		}
	}
	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}
# Wiener Zeitung
company_Wiener_Zeitung = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/wienerzeitung.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_AUSTRIA }
	
	category = academic_owned
	
	possible_prestige_goods = {
		prestige_good_generic_newspaper
	}

	building_types = {  #26
		building_paper_mill
	}
	
	extension_building_types = {
		building_logging_camp
		building_art_academy
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
		has_game_rule = newspapers_enabled
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_AUSTRIA
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_AUSTRIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_paper_mill
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		interest_group_ig_intelligentsia_approval_add = 2 #8
		country_infamy_decay_mult = 0.05 #10
		country_loyalists_from_legitimacy_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 = {
		any_scope_state = {
			state_region = s:STATE_AUSTRIA
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_paper_mill = {
			level = 5
			state_trigger = {
				state_region = s:STATE_AUSTRIA
			}
		}
	}
	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}
# Gedeon Richter Plc.
company_Gedeon_Richter = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/gedeonrichter.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_TRANSDANUBIA }
	
	possible_prestige_goods = {
		prestige_good_generic_medicine
	}

	building_types = { #31
		building_chemical_plant
	}
	
	extension_building_types = {
		building_livestock_ranch
		building_wheat_farm
	}

	potential = {
		has_interest_marker_in_region = sr:region_balkans
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_TRANSDANUBIA
			}
		}
	}			
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_TRANSDANUBIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_chemical_plant
				level >= 5
			}
		}
		has_technology_researched = malaria_prevention
	}
	
	prosperity_modifier = {
		state_mortality_wealth_mult = -0.003 #14
		unit_recovery_rate_add = 0.09 #18
	}	
	

	
	ai_will_do = {
		has_technology_researched = malaria_prevention
		any_scope_state = {
			state_region = s:STATE_TRANSDANUBIA
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_chemical_plant = {
			level = 5
			state_trigger = {
				state_region = s:STATE_TRANSDANUBIA
			}
		}
	}
	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}
# Třinec Iron and Steel Works
company_Trinec_Iron_Steel = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/trineciron.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_UPPER_SILESIA }
	
	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_iron_mine
		building_steel_mill
	}
	
	extension_building_types = {
		building_tooling_workshop
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_UPPER_SILESIA
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_UPPER_SILESIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_steel_mill
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		building_urban_center_throughput_add = 0.03 #4
		building_coal_mine_throughput_add = 0.07 #10
	}	
	

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

	ai_construction_targets = {
		building_steel_mill = {
			level = 5
			state_trigger = {
				state_region = s:STATE_UPPER_SILESIA
			}
		}
	}
	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}
# Josef Lidl
company_Josef_Lidl = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/joseflidl.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_MORAVIA }
	
	category = academic_owned
	
	possible_prestige_goods = {
		prestige_good_generic_musical_instruments
	}

	
	building_types = { #24
		building_art_academy
		building_steel_mill
	}
	
	extension_building_types = {
		building_furniture_manufactory
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_MORAVIA
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_MORAVIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_art_academy
				level >= 3
			}
		}
		has_technology_researched = film
	}
	
	prosperity_modifier = {
		interest_group_ig_petty_bourgeoisie_approval_add = 2 #8
		interest_group_ig_landowners_approval_add = 2 #8
		interest_group_ig_industrialists_approval_add = 2 #8
	}	
	

	
	ai_will_do = {
		has_technology_researched = film
		any_scope_state = {
			state_region = s:STATE_MORAVIA
			is_incorporated = yes
		}
	}

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

# Telefon- und Telegrafen-Fabriks-Aktiengesellschaft Kapsch & Söhne
company_Kapsch = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/kapsch.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_AUSTRIA }
	
	possible_prestige_goods = {
		prestige_good_generic_tools
	}

	
	building_types = { #18
		building_tooling_workshop
		building_electrics_industry
	}
	
	extension_building_types = {
		building_steel_mill
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_AUSTRIA
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_AUSTRIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_tooling_workshop
				level >= 3
			}
		}
		has_technology_researched = electrical_generation
	}
	
	prosperity_modifier = {
		unit_morale_damage_mult = 0.05 #8 # Questionable if they even produced Night vision devices at that time
		unit_army_offense_mult = 0.04 #10
	}	
	

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

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

# Kaiserlich-königliche österreichische Staatsbahnen
company_Austrian_Railways = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/austrian_railways.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_railways.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_AUSTRIA }
	
	category = bureaucrat_owned
	
	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	building_types = { #23
		building_railway
	}
	
	extension_building_types = {
		building_motor_industry
		building_steel_mill
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
		OR = {
			c:AUS ?= this
			was_formed_from = AUS
		}
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_AUSTRIA
			}
		}
	}			
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_AUSTRIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_railway
				level >= 3
			}
		}
		has_technology_researched = nationalism
	}
	
	prosperity_modifier = {
		military_formation_army_movement_speed_mult = 0.1 #10
		country_authority_mult = 0.09 #9
		country_bureaucracy_investment_cost_factor_mult = -0.02 #4
	}	
	

	
	ai_will_do = {
		OR = {
			c:AUS ?= this
			was_formed_from = AUS
		}
		has_technology_researched = nationalism
		any_scope_state = {
			state_region = s:STATE_AUSTRIA
			is_incorporated = yes
		}
	}

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

# Walter Aircraft Engines / Josef Walter and Comp.
company_Walter_Engines = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/walter.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_BOHEMIA }

	building_types = { #24
		building_automotive_industry
	}

	extension_building_types = {
		building_motor_industry
	}

	possible_prestige_goods = {
		prestige_good_turin_automobiles
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
	}

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

	possible = {
		has_technology_researched = combustion_engine
		any_scope_state = {
			state_region = s:STATE_BOHEMIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_automotive_industry
				level >= 3
			}
		}
	}

	prosperity_modifier = {
		military_formation_army_movement_speed_mult = 0.1 #10
		state_trade_advantage_mult = 0.21 #14
	}

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

	ai_construction_targets = {
		building_automotive_industry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_BOHEMIA
			}
		}
	}

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

# Pilsner Urquell Brewery
company_Urquell = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/urquell.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_BOHEMIA }
	
	category = shopkeeper_owned
	
	possible_prestige_goods = {
		prestige_good_generic_beer
	}

	building_types = { #27
		building_food_industry
	}
	
	extension_building_types = {
		building_wheat_farm
	}

	potential = {
		has_interest_marker_in_region = sr:region_central_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_BOHEMIA
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_BOHEMIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_food_industry
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		state_radicals_from_political_movements_mult = -0.15 #20
		state_lower_strata_expected_sol_add = -0.5
		state_middle_strata_expected_sol_add = -1
		state_upper_strata_expected_sol_add = -1.5
		state_assimilation_mult = 0.16 #8
	}	
	

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

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

# Drohobych saltworks
company_drohobych_salt = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/drohobych.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_EAST_GALICIA }
	
	category = shopkeeper_owned
	
	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	building_types = { #20
		building_wheat_farm #salt can't be represented
		building_coal_mine
	}
	
	extension_building_types = {
		building_livestock_ranch
		building_fishing_wharf
		building_food_industry
	}

	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_EAST_GALICIA
			}
		}
	}			
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_EAST_GALICIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_wheat_farm
				level >= 5
			}
		}
	}
	
	prosperity_modifier = {
		building_group_bg_agriculture_throughput_add = 0.03 #14
		building_food_industry_throughput_add = 0.06 #6
	}	
	

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

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