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

# Sunhwaguk
TRY_REPLACE:company_sunhwaguk = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/korea_sunhwaguk.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_plantation.dds"

	flavored_company = yes

	building_types = {
		building_tobacco_plantation
		building_rice_farm
	}

	extension_building_types = {
		building_food_industry
		building_chemical_plant
	}
	
	possible_prestige_goods = {
		prestige_good_generic_grain
	}

	prestige_goods_trigger = {
		custom_tooltip = {
			text = je_prestige_goods_grain_complete_tt
			has_variable = prestige_good_generic_grain_var
		}
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northeast_asia
	}

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

	possible = {
		has_technology_researched = central_planning
		any_scope_state = {
			state_region = {
				is_homeland = cu:korean
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_tobacco_plantation
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		country_tech_spread_mult = 0.1
	}

	ai_will_do = {
		any_scope_state = {
			state_region = {
				is_homeland = cu:korean
			}
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_tobacco_plantation = {
			level = 5
			state_trigger = {
				state_region = {
					is_homeland = cu:korean
				}
				is_incorporated = yes
			}
		}
	}

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

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

# Hanseong Jeongi Hoesa
TRY_REPLACE:company_hanseong_jeongi_hoesa = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/hanseong_jeongi_hoesa.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"

	category = bureaucrat_owned

	flavored_company = yes

	preferred_headquarters = { STATE_SEOUL }
	
	possible_prestige_goods = {
		prestige_good_hydroelectricity
	}
	
	building_types = {
		building_power_plant
	}

	extension_building_types = {
		building_railway
	}

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

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

	possible = {
		has_technology_researched = electrical_generation
		any_scope_state = {
			state_region = s:STATE_SEOUL
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_power_plant
				level >= 5
			}
		}
	}

	prosperity_modifier = {
		building_art_academy_throughput_add = 0.05
		building_railway_throughput_add = 0.05
	}

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

	ai_construction_targets = {
		building_power_plant = {
			level = 5
			state_trigger = {
				state_region = s:STATE_SEOUL
			}
		}
	}

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

# Oriental Development Company
TRY_REPLACE:company_oriental_development_company = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/oriental_development_company.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_plantation.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_SEOUL }

	building_types = {
		building_rice_farm
		building_millet_farm
		building_wheat_farm
	}

	extension_building_types = {
		building_maize_farm
		building_food_industry
	}

	possible_prestige_goods = {
		prestige_good_generic_grain
	}

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

	potential = {
		has_interest_marker_in_region = sr:region_northeast_asia
	}

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

	possible = {
		has_technology_researched = civilizing_mission
		any_scope_state = {
			state_region = {
				is_homeland = cu:korean
			}
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_rice_farm
					is_building_type = building_millet_farm
					is_building_type = building_wheat_farm
				}
				level >= 5
			}
			count >= 4
		}
	}

	prosperity_modifier = {
		building_railway_throughput_add = 0.05
		state_migration_pull_mult = 0.1
	}

	ai_will_do = {
		has_technology_researched = civilizing_mission
		any_scope_state = {
			state_region = {
				is_homeland = cu:korean
			}
			is_incorporated = yes
		}
	}

	ai_construction_targets = {
		building_rice_farm = {
			level = 5
			state_trigger = {
				state_region = {
					is_homeland = cu:korean
				}
				is_incorporated = yes
			}
		}
		building_millet_farm = {
			level = 5
			state_trigger = {
				state_region = {
					is_homeland = cu:korean
				}
				is_incorporated = yes
			}
		}
		building_wheat_farm = {
			level = 5
			state_trigger = {
				state_region = {
					is_homeland = cu:korean
				}
				is_incorporated = yes
			}
		}
	}

	ai_weight = {
		value = 3 # Higher base value for flavored companies
		if = {
			limit = {
				has_journal_entry = je_colonize_korea
				NOT = {
					any_company = {
						is_company_type = company_type:company_mantetsu # Only one needed
					}
				}
			}
			add = 6
		}
	}
}

######################DLC-EP2#########################


# Oriental Consolidated Mining Company
TRY_REPLACE:company_oriental_consolidated_mining = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/company_oriental_consolidated_mining.dds"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"

	flavored_company = yes

	preferred_headquarters = { STATE_PYONGYANG }

	building_types = {
		building_gold_mine
		building_logging_camp
	}

	extension_building_types = {
		building_iron_mine
		building_lead_mine
	}

	possible_prestige_goods = {
	}

	prestige_goods_trigger = {
	}

	potential = {
		has_dlc_feature = ep2_content
		has_interest_marker_in_region = sr:region_northeast_asia
	}

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

	possible = {
		s:STATE_PYONGYANG = {
			any_scope_state = {
				owner = root
				any_scope_building = {
					is_building_type = building_gold_mine
					level >= 5
				}
			}
		}
	}

	prosperity_modifier = {
		state_mortality_mult = -0.05
		state_conversion_mult = 0.05
	}

	ai_will_do = {
		any_scope_state = {
			state_region = s:STATE_PYONGYANG
		}
	}

	ai_construction_targets = {
		building_gold_mine = {
			level = 5
			state_trigger = {
				state_region = s:STATE_PYONGYANG
			}
		}
	}

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

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

# Doosan
company_Doosan = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/doosan.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
    flavored_company = yes
	preferred_headquarters = { STATE_SEOUL }
	
	possible_prestige_goods = {
		prestige_good_generic_clothes
	}
	
	prestige_goods_trigger = {
		custom_tooltip = {
			text = je_prestige_goods_clothes_complete_tt
			has_variable = prestige_good_generic_clothes_var
		}
	}

	building_types = { #16
		building_chemical_plant
		building_textile_mill
		building_port
	}
	
	extension_building_types = {
		building_food_industry
		building_paper_mill
		building_steel_mill
		building_electrics_industry
	}

	potential = {
		has_interest_marker_in_region = sr:region_northeast_asia
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = { is_homeland = cu:korean }
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = {
				is_homeland = cu:korean
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_textile_mill
				level >= 3
			}
		}
		has_technology_researched = central_planning
	}
	
	prosperity_modifier = {
		state_loyalists_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 = {
		has_technology_researched = central_planning
		any_scope_state = {
			state_region = s:STATE_SEOUL
			is_incorporated = yes
		}
	}

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

# Korea Tungsten Company
company_KTC = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/ktc.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_mining.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SARIWON }
	
	possible_prestige_goods = {
		prestige_good_generic_tungsten
	}
	
	building_types = {  #10
		building_port
		building_iron_mine
		building_lead_mine
	}
	
	extension_building_types = {
		building_tooling_workshop
		building_steel_mill
	}

	potential = {
		has_interest_marker_in_region = sr:region_northeast_asia
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = { is_homeland = cu:korean }
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = {
				is_homeland = cu:korean
			}
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_iron_mine
					is_building_type = building_lead_mine
				}
				level >= 3
			}
		}
		has_technology_researched = mechanized_workshops
	}
	
	prosperity_modifier = {
		building_steel_mill_throughput_add = 0.07 #10
	}	
	

	ai_will_do = {
		has_technology_researched = mechanized_workshops
		any_scope_state = {
			state_region = s:STATE_SARIWON
			is_incorporated = yes
		}
	}

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

# Dong-a Ilbo
company_DongIlbo = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/dongilbo.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SEOUL }
	
	possible_prestige_goods = {
		prestige_good_generic_newspaper
	}

	building_types = { #30
		building_paper_mill
	}
	
	extension_building_types = {
		building_logging_camp
	}

	potential = {
		has_interest_marker_in_region = sr:region_northeast_asia
		has_game_rule = newspapers_enabled
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = { is_homeland = cu:korean }
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = {
				is_homeland = cu:korean
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_paper_mill
				level >= 3
			}
		}
		has_technology_researched = political_agitation
	}
	
	prosperity_modifier = {
		country_prestige_mult = 0.03 #3
		interest_group_ig_petty_bourgeoisie_pop_attraction_mult = 0.3 #15
		interest_group_ig_petty_bourgeoisie_approval_add = 3 #12
	}	
	

	ai_will_do = {
		has_technology_researched = political_agitation
		any_scope_state = {
			state_region = s:STATE_SEOUL
			is_incorporated = yes
		}
	}

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

# Hanguk Cheoldo (Choseon government Railway, was also merged with the Manchuria Railway company)
company_Hanguk = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/hanguk.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_railways.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SEOUL }
	
	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}

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

	potential = {
		has_interest_marker_in_region = sr:region_northeast_asia
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = { is_homeland = cu:korean }
			}
		}
	}
	
	possible = { 
		country_or_subject_owns_entire_state_region = STATE_SEOUL
		any_scope_state = {
			state_region = {
				is_homeland = cu:korean
			}
			is_incorporated = yes
			has_building = building_railway
			count >= 3
		}
		has_technology_researched = railways
	}
	
	prosperity_modifier = {
		military_formation_army_movement_speed_mult = 0.15 #15
		interest_group_in_government_approval_add = 1 #8
	}	
	

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

	ai_construction_targets = {
		building_railway = {
			level = 3
			state_trigger = {
				state_region = s:STATE_SEOUL
			}
		}
		
		building_railway = {
			level = 3
			state_trigger = {
				state_region = s:STATE_BUSAN
			}
		}
		
		building_railway = {
			level = 3
			state_trigger = {
				state_region = s:STATE_SARIWON
			}
		}
	}
	ai_weight = {
		value = 3 # Higher base value for flavored companies
	}
}

# Yuhan Corporation
company_Yuhan = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/yuhan.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SEOUL }
	
	possible_prestige_goods = {
		prestige_good_generic_medicine
	}

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

	potential = {
		has_interest_marker_in_region = sr:region_northeast_asia
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SEOUL
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_SEOUL
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_chemical_plant
				level >= 3
			}
		}
		has_technology_researched = malaria_prevention
	}
	
	prosperity_modifier = {
		state_mortality_wealth_mult = -0.003 #14
		state_loyalists_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 = {
		has_technology_researched = malaria_prevention
		any_scope_state = {
			state_region = s:STATE_SEOUL
			is_incorporated = yes
		}
	}

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

# jusighoesa joheung-eunhaeng
company_Chohung_Bank = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/chohung_bank.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SEOUL }
	
	possible_prestige_goods = {
		#prestige_good_generic_currency_paper
	}
	
	building_types = {
		building_paper_mill
		building_rice_farm
		building_iron_mine
	}
	
	extension_building_types = {		
		building_silk_plantation
		building_logging_camp
		building_railway
		building_textile_mill
	}
	
	potential = {
		has_game_rule = banks_enabled
		has_interest_marker_in_region = sr:region_northeast_asia
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SEOUL
			}
		}
	}	
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_SEOUL
			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 = {
		interest_group_in_government_approval_add = 1
		interest_group_in_opposition_approval_add = 1
	
		country_minting_mult = 0.025
		country_loan_interest_rate_mult = -0.025
        country_private_construction_allocation_mult = 0.1		
		
		state_farmers_investment_pool_contribution_add = 0.015
		state_shopkeepers_investment_pool_contribution_add = 0.015
		state_clergymen_investment_pool_contribution_add = 0.04
		state_aristocrats_investment_pool_contribution_add = 0.04
		state_capitalists_investment_pool_contribution_add = 0.065
		
		building_nationalization_investment_return_add = 0.05
		country_government_dividends_reinvestment_add = 0.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_SEOUL
			is_incorporated = yes
		}
	}

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

# Joseon Enterprise Company
company_Joseon_Enterprise = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/joseon_enterprise.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_BUSAN }
	
	possible_prestige_goods = {
		#prestige_good_saint_etienne_rifles
	}
	
	building_types = { #19
		building_steel_mill
		building_logging_camp
	}
	
	extension_building_types = {
		building_rice_farm
		building_livestock_ranch
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northeast_asia
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
			state_region = {
				is_homeland = cu:korean
				}
			}
		}
	}
		
	possible = {
		any_scope_state = {
			state_region = {
				is_homeland = cu:korean
			}
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_construction_sector
					is_building_type = building_steel_mill
					is_building_type = building_logging_camp
				}
				level >= 5
			}
			count >=3
		}
		has_technology_researched = concrete_dockyards
	}
	
	prosperity_modifier = {
		state_construction_mult = 0.03 #14
		building_food_industry_throughput_add = 0.11 #10
		interest_group_ig_rural_folk_pop_attraction_mult = 0.1 #+5
	}


	ai_will_do = {
		has_technology_researched = concrete_dockyards
		any_scope_state = {
			state_region = s:STATE_BUSAN
			is_incorporated = yes
		}
	}

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

# Joseon Smelting Co., Ltd.
company_Joseon_Smelting = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/joseon_smelting.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_heavy.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SEOUL }
	
	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 = { #20
		building_steel_mill
		building_lead_mine
	}
	
	extension_building_types = {
		building_electrics_industry
	}
	
	potential = {
		has_interest_marker_in_region = sr:region_northeast_asia
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
			state_region = {
				is_homeland = cu:korean
				}
			}
		}
	}
		
	possible = {
		any_scope_state = {
			state_region = {
				is_homeland = cu:korean
			}
			is_incorporated = yes
			any_scope_building = {
				OR = {
					is_building_type = building_steel_mill
					is_building_type = building_lead_mine
				}
				level >= 5
			}
			count >=3
		}
		has_technology_researched = arc_welding
	}
	
	prosperity_modifier = {
		building_group_bg_mining_throughput_add = 0.8 #20
		state_pollution_reduction_health_mult = 0.04
	}


	ai_will_do = {
		has_technology_researched = arc_welding
		any_scope_state = {
			state_region = s:STATE_SEOUL
			is_incorporated = yes
		}
	}

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

# Gyeongseong Textile Company
company_Gyeongseong = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/kyungseong.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SEOUL }
	
	possible_prestige_goods = {
		prestige_good_generic_uniforms
	}

	building_types = { #24
		building_textile_mill
		building_cotton_plantation
	}
	
	extension_building_types = {
		building_synthetics_plant
	}

	potential = {
		has_interest_marker_in_region = sr:region_northeast_asia
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = s:STATE_SEOUL
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = s:STATE_SEOUL
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_textile_mill
				level >= 5
			}
		}
		has_technology_researched = art_silk
	}
	
	prosperity_modifier = {
		building_silk_plantation_throughput_add = 0.03 #4
		unit_morale_loss_mult = -0.05 #10
		country_war_exhaustion_casualties_mult = -0.05 #10
	}	
	

	ai_will_do = {
		has_technology_researched = art_silk
		any_scope_state = {
			state_region = s:STATE_SEOUL
			is_incorporated = yes
		}
	}

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

# Jipyeong Brewery
company_Jipyeong = {
	icon = "gfx/interface/icons/company_icons/historical_company_icons/jipyeongbrewery.png"
	background = "gfx/interface/icons/company_icons/company_backgrounds/comp_illu_manufacturing_light.dds"
	
	flavored_company = yes
	preferred_headquarters = { STATE_SEOUL }
	
	possible_prestige_goods = {
		prestige_good_generic_groceries
	}
	
	building_types = { #31
		building_food_industry
	}
	
	extension_building_types = {
		building_rice_farm
	}

	potential = {
		has_interest_marker_in_region = sr:region_northeast_asia
	}
	
	attainable = {
		hidden_trigger = { # Hide attainable if it's always fulfilled by possible
			any_scope_state = {
				state_region = { is_homeland = cu:korean }
			}
		}
	}
	
	possible = {
		any_scope_state = {
			state_region = {
				is_homeland = cu:korean
			}
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_food_industry
				level >= 3
			}
		}
		has_technology_researched = political_agitation
	}
	
	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_recovery_mult = 0.05 #10
		country_prestige_mult = 0.05 #5
	}	
	

	ai_will_do = {
		has_technology_researched = political_agitation
		any_scope_state = {
			state_region = s:STATE_SEOUL
			is_incorporated = yes
		}
	}

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