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

# Basileiades
TRY_REPLACE:company_basileiades = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/basileiades.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_ATTICA }

	building_types = {
		building_motor_industry
		building_shipyard
	}

	extension_building_types = {
		building_tooling_workshop
	}

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

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

	prosperity_modifier = {
		country_ship_group_supply_ships_construction_efficiency_add = 0.2
		state_infrastructure_mult = 0.05
	}

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

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

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

# Achilleas Kouppas Machine Manufacturing A.E.
TRY_REPLACE:company_kouppas = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/kouppas.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_ATTICA }

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

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

	prosperity_modifier = {
		building_railway_throughput_add = 0.1
		building_steel_mill_throughput_add = 0.05
	}

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

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

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

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

# Neorion
company_Neorion = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/neorion.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_harbor_shipbuilding.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_WEST_AEGEAN_ISLANDS }
	
	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

	building_types = {  #17
		building_shipyard
		building_motor_industry
	}
	
	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_WEST_AEGEAN_ISLANDS			
			}		
		}
	}		
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_WEST_AEGEAN_ISLANDS
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_shipyard
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		ship_hull_damage_mult = 0.02 #8
        country_military_tech_spread_mult = 0.10 #10
	}	
	

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

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

# Karelia Tobacco Company
company_KareliaTobacco = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/karelia.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_plantation.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_PELOPONNESE }
	
	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}
	
	building_types = {  #26
		building_tobacco_plantation
	}
	
	extension_building_types = {
		building_paper_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_PELOPONNESE			
			}		
		}
	}		
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_PELOPONNESE
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_tobacco_plantation
				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
		interest_group_ig_landowners_approval_add = 2 #8
	}	
	

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

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

# Metaxa
company_Metaxa = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/metaxa.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_ATTICA }
	
	possible_prestige_goods = {
		prestige_good_generic_mediteranean_wine
	}

	building_types = {  #23
		building_food_industry
		building_vineyard
	}
	
	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_ATTICA			
			}
		}
	}		
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_ATTICA
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_food_industry
				level >= 3
			}
		}
		has_technology_researched = fractional_distillation
	}
	
	prosperity_modifier = {
		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
		unit_morale_loss_mult = -0.04 #8
	}	
	

	ai_will_do = {
	    has_technology_researched = fractional_distillation
		any_scope_state = {
			state_region = s:STATE_ATTICA
			is_incorporated = yes
		}
	}

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

# Prapopoulos Brothers
company_Prapopoulos = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/prapopoulos.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_PELOPONNESE }
	
	possible_prestige_goods = {
		prestige_good_generic_tools
	}
	
	building_types = {  #22
		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_PELOPONNESE			
			}		
		}
	}		
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_PELOPONNESE
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_tooling_workshop
				level >= 3
			}
		}
		has_technology_researched = mechanical_tools
	}
	
	prosperity_modifier = {
		building_vineyard_throughput_add = 0.05 #4
		building_group_bg_agriculture_throughput_add = 0.05 #18
	}	
	

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

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

# Achaia Clauss
company_AchaiaClauss = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/achaiaclauss.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_farm_wheat.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_PELOPONNESE }
	
	category = aristocrat_owned
	
	possible_prestige_goods = {
		prestige_good_generic_mediteranean_wine
	}
	
	building_types = {  #26
		building_vineyard
	}
	
	extension_building_types = {
		building_food_industry
		building_logging_camp
	}

	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_PELOPONNESE			
			}		
		}
	}		
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_PELOPONNESE
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_vineyard
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		state_assimilation_mult = 0.2 #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_PELOPONNESE
			is_incorporated = yes
		}
	}

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