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

# Ilva
TRY_REPLACE:company_ilva = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/ilva.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_PIEDMONT }

	building_types = {
		building_steel_mill
		building_iron_mine
	}

	extension_building_types = {
		building_coal_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_southern_europe
	}

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

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

	prosperity_modifier = {
		building_railway_throughput_add = 0.1
		building_artillery_foundry_throughput_add = 0.05
	}

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

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

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

# Ansaldo
TRY_REPLACE:company_ansaldo = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/ansaldo.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_PIEDMONT }

	building_types = {
		building_artillery_foundry
		building_steel_mill
		building_tooling_workshop
	}

	extension_building_types = {
		building_power_plant
	}

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

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

	possible = {
		any_scope_state = {
			state_region = s:STATE_PIEDMONT
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_artillery_foundry
					is_building_type = building_steel_mill
					is_building_type = building_tooling_workshop
				}
				level >= 5
			}
		}
		has_technology_researched = railways
	}

	prosperity_modifier = {
		ship_hull_damage_mult = 0.025
		unit_army_offense_mult = 0.05
	}

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

	ai_construction_targets = {
		building_artillery_foundry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_PIEDMONT
			}
		}
		building_steel_mill = {
			level = 5
			state_trigger = {
				state_region = s:STATE_PIEDMONT
			}
		}
		building_tooling_workshop = {
			level = 5
			state_trigger = {
				state_region = s:STATE_PIEDMONT
			}
		}
	}

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

# Casa Ricordi
TRY_REPLACE:company_ricordi = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/ricordi.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_farm_corn.dds"

	category = academic_owned

	flavored_company = yes

	preferred_headquarters = { STATE_LOMBARDY }

	building_types = {
		building_art_academy
	}

	extension_building_types = {
		building_vineyard
	}

	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}

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

	possible = {
		any_scope_state = {
			state_region = s:STATE_LOMBARDY
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_art_academy
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		country_prestige_mult = 0.15
		state_loyalists_from_political_movements_mult = 0.05
	}

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

	ai_construction_targets = {
		building_art_academy = {
			level = 5
			state_trigger = {
				state_region = s:STATE_LOMBARDY
			}
		}
	}

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

# FIAT
TRY_REPLACE:company_fiat = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/fiat.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_PIEDMONT }

	building_types = {
		building_motor_industry
		building_automotive_industry
	}

	extension_building_types = {
		building_steel_mill
	}

	possible_prestige_goods = {
		prestige_good_turin_automobiles
	}

	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}

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

	possible = {
		has_technology_researched = railways
		any_scope_state = {
			state_region = s:STATE_PIEDMONT
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_motor_industry
					is_building_type = building_automotive_industry
				}
				level >= 5
			}
		}
		has_technology_researched = combustion_engine
	}

	prosperity_modifier = {
		military_formation_army_movement_speed_mult = 0.1
		unit_army_offense_mult = 0.05
	}

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

	ai_construction_targets = {
		building_motor_industry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_PIEDMONT
			}
		}
		building_automotive_industry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_PIEDMONT
			}
		}
	}

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

# Stabilimento Tecnico Triestino
TRY_REPLACE:company_stt = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/stt.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_harbor_shipbuilding.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_ISTRIA }

	building_types = {
		building_shipyard
		building_artillery_foundry
	}

	extension_building_types = {
		building_motor_industry
		building_steel_mill
	}

	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}

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

	possible = {
		has_technology_researched = gantry_cranes
		any_scope_state = {
			state_region = s:STATE_ISTRIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_shipyard
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		ship_armor_mult = 0.025
		country_ship_group_supply_ships_construction_efficiency_add = 0.15
	}

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

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

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

# Anglo-Sicilian Sulphur Company
TRY_REPLACE:company_anglo_sicilian_sulphur_company = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_anglo_sicilian_sulphur_company.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_SICILY }

	building_types = {
		building_sulfur_mine
	}

	extension_building_types = {
		building_port
	}

	possible_prestige_goods = {
		prestige_good_sicilian_sulfur
	}

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

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

	possible = {
		any_scope_state = {
			state_region = s:STATE_SICILY
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_sulfur_mine
				level >= 5
			}
		}
		NOT = {
			c:GBR ?= {
				has_war_with = root
			}
		}
	}

	prosperity_modifier = {
		building_munition_plant_throughput_add = 0.1
		building_group_bg_plantations_throughput_add = 0.05
		building_group_bg_agriculture_throughput_add = 0.05
	}

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

	ai_construction_targets = {
		building_sulfur_mine = {
			level = 5
			state_trigger = {
				state_region = s:STATE_SICILY
			}
		}
	}

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

# Mantero Seta
TRY_REPLACE:company_mantero_seta = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_mantero_seta.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_LOMBARDY }

	building_types = {
		building_silk_plantation
		building_textile_mill
	}

	extension_building_types = {
		building_cotton_plantation
	}

	possible_prestige_goods = {
		prestige_good_como_silk
	}

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

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

	possible = {
		any_scope_state = {
			state_region = s:STATE_LOMBARDY
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_silk_plantation
					is_building_type = building_textile_mill
				}
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		country_prestige_mult = 0.05
		building_synthetics_plant_throughput_add = 0.1
	}

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

	ai_construction_targets = {
		building_textile_mill = {
			level = 5
			state_trigger = {
				state_region = s:STATE_LOMBARDY
			}
		}
		building_silk_plantation = {
			level = 5
			state_trigger = {
				state_region = s:STATE_LOMBARDY
			}
		}
	}

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

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

company_Gancia = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/gancia.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_farm_wheat.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SAVOY }
	
	category = shopkeeper_owned
	
	possible_prestige_goods = {
		prestige_good_generic_mediteranean_wine
	}

	
	building_types = { #26
		building_vineyard
	}
	
	extension_building_types = {
		building_wheat_farm
		building_food_industry
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SAVOY			
			}		
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_SAVOY
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_vineyard
				}
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		country_prestige_mult = 0.14 #14
		state_radicals_from_political_movements_mult = -0.09 #12
		state_lower_strata_expected_sol_add = -0.3
		state_middle_strata_expected_sol_add = -0.6
		state_upper_strata_expected_sol_add = -0.9
	}


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

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

company_Majello = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/majello.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_LAZIO }
	
	category = shopkeeper_owned

	possible_prestige_goods = {
		prestige_good_generic_furniture
	}

	
	building_types = { #18
		building_glassworks
		building_furniture_manufactory
	}
	
	extension_building_types = {
		building_logging_camp
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_LAZIO			
			}		
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_LAZIO
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_glassworks
					is_building_type = building_furniture_manufactory
				}
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		country_prestige_mult = 0.06 #6
		interest_group_ig_landowners_approval_add = 3 #12
	}


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

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

company_Beretta = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/beretta.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_LOMBARDY }
	
	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 = { #24
		building_arms_industry
		building_munition_plant
	}
	
	extension_building_types = {
		building_artillery_foundry
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_LOMBARDY		
			}		
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_LOMBARDY
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_arms_industry
					is_building_type = building_munition_plant
				}
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		unit_army_offense_mult = 0.06 #12
		unit_army_defense_mult = 0.06 #12
	}


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

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

company_Fedrigoni = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/fedrigoni.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_LOMBARDY }
	

	possible_prestige_goods = {
		prestige_good_generic_paper
	}

	building_types = { #26
		building_paper_mill
	}
	
	extension_building_types = {
		building_logging_camp
		building_synthetics_plant
		building_sulfur_mine
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_LOMBARDY			
			}		
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_LOMBARDY
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_paper_mill
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
	    building_group_bg_light_industry_throughput_add = 0.02 #12
		building_university_throughput_add = 0.1 #10
		interest_group_ig_intelligentsia_approval_add = 1 #4
	}


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

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

company_Montecatini = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/montecatini.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_TUSCANY }
	

	possible_prestige_goods = {
		prestige_good_generic_fertilizer
	}
	
	building_types = { #24
		building_chemical_plant
		building_synthetics_plant
	}
	
	extension_building_types = {
		building_sulfur_mine
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_TUSCANY		
			}		
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_TUSCANY
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_chemical_plant
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		building_wheat_farm_throughput_add = 0.1 #8
		unit_supply_consumption_mult = -0.06 #16
	}


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

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

# Pirelli & C. S.p.A
company_Pirelli = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/pirelli.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_LOMBARDY }
	

	possible_prestige_goods = {
		# prestige_good_saint_etienne_rifles
	}
	
	building_types = { #24
		building_rubber_plantation
	}
	
	extension_building_types = {
		building_chemical_plant
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_LOMBARDY			
			}		
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_LOMBARDY
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_urban_center
				level >= 10
			}
		}
	}
	
	prosperity_modifier = {
		state_infrastructure_mult = 0.04 #8
		building_motor_industry_throughput_add = 0.06 #8
		building_automotive_industry_throughput_add = 0.06 #8
	}
	

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

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

# Olivetti S.p.A.
company_Olivetti = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/olivetti.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_PIEDMONT }
	

	possible_prestige_goods = {
		prestige_good_generic_typewriters
	}
	
	building_types = { #24
		building_electrics_industry
		building_tooling_workshop
	}
	
	extension_building_types = {
		building_iron_mine
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_PIEDMONT		
			}		
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_PIEDMONT
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_tooling_workshop
				level >= 5
			}
		}
		has_technology_researched = telephone
	}
	
	prosperity_modifier = {
		building_government_administration_throughput_add = 0.06 #4
		state_assimilation_mult = 0.12 #6
		unit_supply_consumption_mult = -0.05 #14
	}
	

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

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

# Edison S.p.A.
company_EdisonSpA = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/edisonspa.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_LOMBARDY }
	
	category = bureaucrat_owned

	possible_prestige_goods = {
		# prestige_good_saint_etienne_rifles
	}
	
	building_types = { #27
		building_power_plant
	}
	
	extension_building_types = {
		building_electrics_industry
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_LOMBARDY			
			}		
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_LOMBARDY
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_power_plant
				level >= 5
			}
		}
		has_technology_researched = telephone
	}
	
	prosperity_modifier = {
		building_power_plant_throughput_add = 0.1 #13
		country_production_tech_spread_mult = 0.08 #8
		state_loyalists_from_political_movements_mult = 0.05 #6
		state_lower_strata_expected_sol_add = -0.15
		state_middle_strata_expected_sol_add = -0.3
		state_upper_strata_expected_sol_add = -0.45
	}
	

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

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

# Barilla G. e R. Fratelli S.p.A
company_Barilla = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/barilla.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_farm_wheat.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_EMILIA }
	

	possible_prestige_goods = {
		prestige_good_generic_groceries
	}
	
	building_types = { #25
		building_food_industry
		building_wheat_farm
	}
	
	extension_building_types = {
		building_rye_farm
		building_livestock_ranch
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_EMILIA		
			}		
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_EMILIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_wheat_farm
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		state_birth_rate_mult = 0.05 #20
		state_loyalists_from_political_movements_mult = 0.05 #6
		state_lower_strata_expected_sol_add = -0.15
		state_middle_strata_expected_sol_add = -0.3
		state_upper_strata_expected_sol_add = -0.45
	}
	

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

	ai_construction_targets = {
		building_wheat_farm = {
			level = 5
			state_trigger = {
				state_region = s:STATE_EMILIA
			}
		}
	}
	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}
# Cantiere navale di Palermo
company_Cantiere = {
	icon = "gfx/interface/icons/company_icons/basic_shipyards.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_harbor_shipbuilding.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SICILY }
	
	possible_prestige_goods = {
		# prestige_good_saint_etienne_rifles
	}

	building_types = { #23
		building_shipyard
	}
	
	extension_building_types = {
		building_port
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SICILY			
			}		
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_SICILY
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_shipyard
				level >= 3
			}
		}
		has_technology_researched = gantry_cranes
	}
	
	prosperity_modifier = {
		ship_hull_damage_mult = 0.05 #20
		interest_group_ig_armed_forces_approval_add = 1 #4
	}


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

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

# Luigi Lavazza S.p.A.
company_Lavazza = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/lavazza.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_plantation.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_PIEDMONT }
	
	category = shopkeeper_owned
	
	possible_prestige_goods = {
		 prestige_good_generic_coffee
	}
	
	building_types = { #28
		building_coffee_plantation
	}
	
	extension_building_types = {
		building_food_industry
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_PIEDMONT			
			}		
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_PIEDMONT
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_food_industry
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		state_loyalists_from_political_movements_mult = 0.14 #18
		state_lower_strata_expected_sol_add = -0.45
		state_middle_strata_expected_sol_add = -0.9
		state_upper_strata_expected_sol_add = -1.35
		state_colony_growth_speed_mult = 0.1 #10
	}
	

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

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

# Menarini
company_Menarini = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/menarini.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_CAMPANIA }
	
	possible_prestige_goods = {
		prestige_good_generic_medicine
	}
	
	building_types = { #27
		building_chemical_plant
	}
	
	extension_building_types = {
		building_sulfur_mine
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_CAMPANIA
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_CAMPANIA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_chemical_plant
				level >= 3
			}
		}
		has_technology_researched = pharmaceuticals
	}
	
	prosperity_modifier = {
		state_mortality_wealth_mult = -0.003 #14
		state_birth_rate_mult = 0.01 #12
	}	
	

	ai_will_do = {
	    has_technology_researched = pharmaceuticals
		any_scope_state = {
			state_region = s:STATE_CAMPANIA
			is_incorporated = yes
		}
	}

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

# RIV Officine di Villar Perosa
company_RIV = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/riv.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_PIEDMONT }	

	possible_prestige_goods = {
		prestige_good_generic_small_arms
	}
	
	prestige_goods_trigger = {
		custom_tooltip = {
			text = je_prestige_goods_clothes_complete_tt
			has_variable = prestige_good_generic_clothes_var
		}
	}
	
	building_types = { #28
		building_arms_industry
		building_munition_plant
	}
	
	extension_building_types = {
		building_tooling_workshop
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_PIEDMONT
			}
		}
	}	
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_PIEDMONT
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_arms_industry
				level >= 3
			}
		}
		has_technology_researched = bolt_action_rifles
	}
	
	prosperity_modifier = {
		country_military_tech_spread_mult = 0.08 #8
		building_motor_industry_throughput_add = 0.15 #20
	}
	

	ai_will_do = {
	    has_technology_researched = bolt_action_rifles
		any_scope_state = {
			state_region = s:STATE_PIEDMONT
			is_incorporated = yes
		}
	}

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

# Marinelli Bells – Pontifical Bell Foundry
company_Pontifical_Bell_Foundry = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/pontifical.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_ABRUZZO }
	
	category = academic_owned
	
	possible_prestige_goods = {
		prestige_good_steel_bells
	}

	building_types = { #16
		building_glassworks
		building_steel_mill
	}
	
	extension_building_types = {
		building_coal_mine
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
		country_has_state_religion = rel:catholic	
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_ABRUZZO
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_ABRUZZO
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_glassworks
					is_building_type = building_steel_mill
				}
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		state_conversion_mult = 0.12 #8
		interest_group_ig_devout_approval_add = 2 #8
	}


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

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

# Peroni S.p.A.
company_Peroni = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/peroni.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_LOMBARDY }
	
	category = academic_owned
	
	possible_prestige_goods = {
		prestige_good_como_silk
	}
	
	building_types = { #26
		building_textile_mill
	}
	
	extension_building_types = {
		building_silk_plantation
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_LOMBARDY
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_LOMBARDY
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_textile_mill
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		building_art_academy_throughput_add = 0.2 #18
		building_cotton_plantation_throughput_add = 0.06 #8
	}
	

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

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

# Grivel
company_Grivel = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/grivel.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SAVOY }
	
	possible_prestige_goods = {
		prestige_good_generic_tools
	}
	
	building_types = { #22
		building_tooling_workshop
	}
	
	extension_building_types = {
		building_iron_mine
		building_logging_camp
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SAVOY
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_SAVOY
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_tooling_workshop
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		state_infrastructure_mult = 0.03 #6
		country_military_goods_cost_mult = -0.03 #6
		unit_supply_consumption_mult = -0.03 #10
	}
	

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

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

# Banca d'Italia
company_bank_italy = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/bankitaly.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_LAZIO }
	
	possible_prestige_goods = {
		#prestige_good_generic_currency_paper
	}
	
	building_types = {  
		building_paper_mill
		building_gold_mine
		building_arms_industry
	}
	
	extension_building_types = {	
		building_artillery_foundry
		building_automotive_industry
		building_steel_mill
		building_coal_mine
	}
	
	potential = {
		has_game_rule = banks_enabled
		OR = {
			c:ITA ?= this
			was_formed_from = ITA
		}
	}

	possible = {
		any_scope_state = {
			state_region = s:STATE_LAZIO
			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_minting_mult = 0.025
        country_private_construction_allocation_mult = 0.1
        state_construction_mult = 0.03
		unit_offense_mult = 0.03	
		
		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.025
		country_government_dividends_reinvestment_add = 0.025
		country_government_dividends_efficiency_add = 0.025
		
		country_max_companies_add = 1
	}
	
	ai_will_do = {
	    unique_companies_has_bank = no
		OR = {
			c:ITA ?= this
			was_formed_from = ITA
		}
		has_technology_researched = investment_banks
		any_scope_state = {
			state_region = s:STATE_LAZIO
			is_incorporated = yes
		}
	}

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

# Maserati
company_Maserati = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/maserati.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_ROMAGNA }
	
	possible_prestige_goods = {
		prestige_good_turin_automobiles
	}
	
	building_types = { #28
		building_automotive_industry
	}
	
	extension_building_types = {
		building_motor_industry
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_ROMAGNA
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_ROMAGNA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_motor_industry
				level >= 3
			}
		}
		has_technology_researched = combustion_engine
	}
	
	prosperity_modifier = {
		military_formation_army_movement_speed_mult = 0.1 #10
		goods_output_automobiles_mult = 0.13 #10
		country_prestige_mult = 0.08 #8
	}
	

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

	ai_construction_targets = {
		building_motor_industry = {
			level = 5
			state_trigger = {
				state_region = s:STATE_ROMAGNA
			}
		}
	}
	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}
# Anonima Lombarda Fabbrica Automobili
company_Alfa_Romeo = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/alfa_romeo.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_LOMBARDY }
	
	possible_prestige_goods = {
		prestige_good_turin_automobiles
	}
	
	building_types = { #24
		building_motor_industry
		building_munition_plant
		building_automotive_industry
	}
	
	extension_building_types = {
		building_steel_mill
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_LOMBARDY
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_LOMBARDY
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_motor_industry
				level >= 3
			}
		}
		has_technology_researched = combustion_engine
	}
	
	prosperity_modifier = {
		state_assimilation_mult = 0.20 #10
		goods_output_automobiles_mult = 0.13 #10
		country_prestige_mult = 0.04 #4
	}
	

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

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

# Lancia
company_Lancia = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/lancia.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_PIEDMONT }
	
	possible_prestige_goods = {
		prestige_good_turin_automobiles
	}
	
	building_types = { #28
		building_automotive_industry
	}
	
	extension_building_types = {
		building_motor_industry
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_PIEDMONT
			}
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_PIEDMONT
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_motor_industry
				level >= 3
			}
		}
		has_technology_researched = combustion_engine
	}
	
	prosperity_modifier = {
		country_production_tech_spread_mult = 0.10 #10
		goods_output_automobiles_mult = 0.13 #10
		interest_group_ig_petty_bourgeoisie_approval_add = 2 #8
	}
	

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

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

# Lanerossi
company_lanerossi = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/lanerossi.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_VENETIA }

	building_types = { #24
		building_livestock_ranch
		building_textile_mill
	}

	extension_building_types = {
		building_cotton_plantation
		building_power_plant
	}

	possible_prestige_goods = {
		###
	}

	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}

	attainable = {
	    any_scope_state = {
			state_region = s:STATE_VENETIA
			is_incorporated = yes
		}	
	}

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

	prosperity_modifier = {
		country_society_tech_spread_mult = 0.08 #8
		state_loyalists_from_political_movements_mult = 0.08 #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_VENETIA
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_textile_mill = {
			level = 5
			state_trigger = {
				state_region = s:STATE_VENETIA
			}
		}
	}

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

# Tonnara of Favignana
company_Tonnara = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/tonna.png" 
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_harbor_shipbuilding.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SICILY }
	

	possible_prestige_goods = {
		prestige_good_generic_fish
	}
	
	building_types = { #24
		building_fishing_wharf
		building_food_industry
	}
	
	extension_building_types = {
		building_port
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SICILY			
			}		
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_SICILY
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_fishing_wharf
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		building_fishing_wharf_throughput_add = 0.14 #14
		building_food_industry_throughput_add = 0.11 #10
	}


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

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

# Cinzano
company_Cinzano = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/cinzano.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_farm_wheat.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_PIEDMONT }
	
	category = shopkeeper_owned
	
	possible_prestige_goods = {
		prestige_good_generic_mediteranean_wine
	}
	
	building_types = { #26
		building_vineyard
	}
	
	extension_building_types = {
		building_wheat_farm
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_southern_europe
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_PIEDMONT			
			}		
		}
	}		
	
	possible = { 
		any_scope_state = {
			state_region = s:STATE_PIEDMONT
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_vineyard
				}
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		country_weekly_innovation_mult = 0.04 #8
		state_radicals_from_political_movements_mult = -0.09 #12
		state_lower_strata_expected_sol_add = -0.3
		state_middle_strata_expected_sol_add = -0.6
		state_upper_strata_expected_sol_add = -0.9
		state_trade_advantage_mult = 0.06 #4
	}


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

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