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

# Căile Ferate Române
TRY_REPLACE:company_cfr = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/romania_cfr.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_railways.dds"

	category = bureaucrat_owned

	flavored_company = yes

	building_types = {
		building_railway
	}

	extension_building_types = {
		building_motor_industry
	}

	potential = {
		country_has_primary_culture = cu:romanian
	}

	possible = {
		has_technology_researched = railways
		any_scope_state = {
			state_region = {
				is_homeland = cu:romanian
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_railway
				level >= 5
			}
			count >= 2
		}
	}

	prosperity_modifier = {
		state_infrastructure_mult = 0.05
		state_trade_capacity_mult = 0.15
	}

	ai_will_do = {
		has_technology_researched = railways
		any_scope_state = {
			state_region = {
				is_homeland = cu:romanian
			}
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_railway = {
			level = 5
			state_trigger = {
				state_region = {
					is_homeland = cu:romanian
				}
				is_incorporated = yes
			}
		}
	}

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

# Steaua Română
TRY_REPLACE:company_romanian_star = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/romania_steaua_romana.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_oil_drills.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_WALLACHIA }
	
	possible_prestige_goods = {
		prestige_good_romanian_oil
	}
	
	building_types = { #22
		building_oil_rig
	}

	extension_building_types = {
		building_power_plant
	}

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

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

	prosperity_modifier = {
		building_group_bg_oil_extraction_throughput_add = 0.1 #20
		state_capitalists_investment_pool_contribution_add = 0.001 #2
	}

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

	ai_construction_targets = {
		building_railway = {
			level = 5
			state_trigger = {
				state_region = s:STATE_WALLACHIA
			}
		}
	}

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

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

# Atelierul Vlad / Napolact
company_AV = {
	icon = "gfx/interface/icons/company_icons/basic_food.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_farm_wheat.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_NORTHERN_TRANSYLVANIA }

	possible_prestige_goods = {
		prestige_good_generic_groceries
	}

	
	building_types = { #27
		building_food_industry
	}
	
	extension_building_types = {
		building_livestock_ranch
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_balkans
		country_has_primary_culture = cu:romanian
	}
	
	attainable = {
		any_scope_state = {
			state_region = {
				is_homeland = cu:romanian
			}
	    }
	}
	
	possible = {
		any_scope_state = {
			state_region = {
				is_homeland = cu:romanian
			}
			is_incorporated = yes
			has_building = building_food_industry
			count >= 3
		}
	}
	
	prosperity_modifier = {
		building_livestock_ranch_throughput_add = 0.2 #18
		state_loyalists_from_political_movements_mult = 0.06 #8
		state_lower_strata_expected_sol_add = -0.2
		state_middle_strata_expected_sol_add = -0.4
		state_upper_strata_expected_sol_add = -0.6
	}	
	

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

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

# Johann Weitzer’sche Maschinen-Waggonfabrik (Arad Astra)
company_RLaWF = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/grazermaschinen.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_BEKES }
	

	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 = { #20
		building_motor_industry
		building_arms_industry
	}
	
	extension_building_types = {
		building_railway
	}
	
	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_BEKES
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_BEKES
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_motor_industry
				level >= 3
			}
		}
	}
	
	prosperity_modifier = {
		building_railway_throughput_add = 0.15 #20
	}	
	

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

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

# Fabrica de bere Timișoreana
company_FabricaTimi = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/fabrica_de_bere.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_farm_wheat.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_BANAT }

	possible_prestige_goods = {
		prestige_good_generic_beer
	}
	
	building_types = { #27
		building_food_industry
	}
	
	extension_building_types = {
		building_livestock_ranch
	}
	
	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_BANAT
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_BANAT
			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_BANAT
			is_incorporated = yes
		}
	}

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

# Fabrica de bere Grivița
company_FdbG = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/grivita.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_WALLACHIA }

	possible_prestige_goods = {
		prestige_good_generic_beer
	}
	
	building_types = { #27
		building_food_industry
	}
	
	extension_building_types = {
		building_livestock_ranch
	}
	
	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_WALLACHIA
			}
		}
	}		
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_WALLACHIA
			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.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
		country_prestige_mult = 0.07 #7
	}	
	

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

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