load_focus_tree = generic_focus

	# CHI is RoC/Taiwan. For the People's Republic, refer to PRC. #

	capital = 1148

	oob = "CHI_2020"
	if = {
		limit = { has_dlc = "Man the Guns" }
			set_naval_oob = "CHI_2000_naval_mtg"
		else = {
			set_naval_oob = "CHI_2000_naval_legacy"
		}
	}
	send_embargo = PRC
	send_embargo = PRK
	set_variable = { Russian_Influence = 0.00 }
	set_variable = { Chinese_Influence = 0.20 }
	set_variable = { American_Influence = 0.00 }
	set_variable = { European_Influence = 0.15 }
	set_variable = { PDO_Influence = 0.60 }
	set_variable = { Sovereign_Influence = 0.05 }

	recruit_character = CHI_tsai_ing_wen_char
	recruit_character = CHI_han_kuo_yu_char
	recruit_character = CHI_chen_chen_hsiang_char
	recruit_character = CHI_chen_pao_yu_char
	recruit_character = CHI_ko_wen_je_char
	recruit_character = CHI_lin_de_wang_char
	recruit_character = CHI_wu_rong_yuan_char
	recruit_character = CHI_chen_yi_qi_char
	recruit_character = CHI_lai_ching_te_char
	recruit_character = CHI_chen_qi_mai_char
	recruit_character = CHI_zheng_wen_can_char
	recruit_character = CHI_hou_yu_ih_char
	recruit_character = CHI_zhao_shao_kang_char
	recruit_character = CHI_chiu_kuo_cheng_char
	recruit_character = CHI_kao_kuang_chi_char
	recruit_character = CHI_lee_hsi_min_char
	recruit_character = CHI_lin_chen_yi_char
	recruit_character = CHI_huoh_shoou_yeh_char
	recruit_character = CHI_hsu_yen_pu_char
	recruit_character = CHI_chang_guan_chung_char
	recruit_character = CHI_wang_shin_lung_char
	recruit_character = CHI_hung_chi_chang_char
	recruit_character = CHI_Taipei_Demon
	recruit_character = CHI_cai_yanming
	recruit_character = CHI_nobody_char

	set_research_slots = 5
	set_convoys = 700
	set_stability = 0.8

	set_country_flag = country_language_chinese

	set_country_flag = CHI_DPP_in_power_flag
	set_technology = {
		## Infantry ##
		
		infantry_weapons1 = 1
		infantry_weapons2 = 1
		motorised_infantry = 1
		infantry_rifle_upgrade = 1
		support_weapons = 1
		support_weapons2 = 1
		night_vision = 1
		body_armor = 1
		camouflage = 1
		marines = 1
		tech_mountaineers = 1
		tech_rangers = 1
		paratroopers = 1
		
		## Support Companies ##
		tech_support = 1
		tech_engineers = 1
		tech_recon = 1
		tech_military_police = 1
		tech_maintenance_company = 1
		tech_field_hospital = 1
		tech_logistics_company = 1
		tech_signal_company = 1
		basic_train = 1
		
		## Armor ##
		main_battle_tank1 = 1
		main_battle_tank2 = 1
		main_battle_tank3 = 1
		light_tank1 = 1
		mechanised_infantry1 = 1
		mechanised_infantry2 = 1
		light_mechanized_infantry1 = 1
		
		## Artillery ##
		gw_artillery = 1
		interwar_antitank = 1
		interwar_antiair = 1
		tank_destroyer1 = 1
		self_propelled_aa1 = 1
		interwar_artillery = 1
		sp_artillery1 = 1
		
		## Air ##
		attack_helicopter_1 = 1
		utility_helicopter_1 = 1
		
		## Engineering ##
		electronic_mechanical_engineering = 1
		radio = 1
		
		## Industry ##
		basic_machine_tools = 1
		fuel_silos = 1
		fuel_refining = 1
		
		## Doctrines ##
		mobile_warfare = 1
		fleet_in_being = 1
		
	}
	
	if = {
		limit = { has_dlc = "By Blood Alone" }
			set_air_oob = "CHI_2020_air_bba"
			set_technology = {
				aa_lmg = 1
				aa_cannon_1 = 1
				aa_hmg = 1
				engines_1 = 1
				engines_2 = 1
				early_bombs = 1
				guided_bombs = 1
				aircraft_construction = 1
				survivability_studies = 1
				iw_small_airframe = 1
				basic_small_airframe = 1
				iw_medium_airframe = 1
				basic_medium_airframe = 1
				iw_large_airframe = 1
			}
		else = {
			set_air_oob = "CHI_2020_air_legacy"
			set_technology = {
				CAS1 = 1
				CAS2 = 1
				fighter1 = 1
				fighter2 = 1
				fighter3 = 1
				naval_bomber1 = 1
				naval_bomber2 = 1
				strategic_bomber1 = 1
				tactical_bomber1 = 1
				transport_plane2 = 1
			}
		}
	}

	if = {
		limit = { not = { has_dlc = "Man the Guns" } }
		set_technology = {
			early_destroyer = 1
			early_light_cruiser = 1
			basic_light_cruiser = 1
			early_heavy_cruiser = 1
			basic_heavy_cruiser = 1
			early_submarine = 1
			basic_submarine = 1
			transport = 1
		}
	}
	if = {
		limit = { has_dlc = "Man the Guns" }
		set_technology = {
			early_ship_hull_light = 1
			early_ship_hull_cruiser = 1
			basic_ship_hull_cruiser = 1
			early_ship_hull_submarine = 1
			basic_ship_hull_submarine = 1
			smoke_generator = 1
			sonar = 1
			basic_depth_charges = 1
			improved_airplane_launcher = 1
			basic_cruiser_armor_scheme = 1
			basic_torpedo = 1
			basic_battery = 1
			basic_light_battery = 1
			basic_medium_battery = 1
			#basic_secondary_battery = 1
			mtg_transport = 1
			basic_naval_mines = 1
			submarine_mine_laying = 1
		}
	}

	add_opinion_modifier = {
		target = JAP
		modifier = past_japanese_war_crimes
	}
	
	add_ideas = {
		#National Spirits
		CHI_gdp_fix
		CHI_taiwanese_independence_movement_idea
		CHI_tsmc_idea #CHI_lower_mainland_influence_idea
		CHI_low_international_recognition_idea
		CHI_american_protection_idea
		CHI_prc_embargo_idea
		#Laws
		low_conscription
		higher_poverty
	}
	
	#Events
	country_event = {
		id = taiwan.1
		days = 1
	}

	set_politics = {
		ruling_party = social_liberal
		last_election = "2016.1.16"
		election_frequency = 48
		elections_allowed = yes
	}

	set_popularities = {
		conservative = 43.5
		social_democrat  = 1.3
		social_liberal = 47.5
		market_liberal  = 7.7
	}
	
	### VARIANTS ###
	# 2000 Start #
	if = {
		limit = { not = { has_dlc = "Man the Guns" } }
		
	}
	if = {
		limit = { has_dlc = "Man the Guns" }
		## Frigates ##
		create_equipment_variant = { #Frigate 1
			name = "Knox class"
			type = ship_hull_cruiser_1
			parent_version = 0
			modules = {
				fixed_ship_battery_slot = ship_medium_battery_1
				fixed_ship_anti_air_slot = ship_anti_air_1
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = cruiser_ship_engine_1
				fixed_ship_armor_slot = ship_armor_cruiser_1
				fixed_ship_secondaries_slot = ship_secondaries_1
				mid_1_custom_slot = ship_airplane_launcher_1
				mid_2_custom_slot = ship_anti_air_1
				rear_1_custom_slot = empty
			}
			obsolete = yes
		}
		create_equipment_variant = { #Frigate 2
			name = "Kang Ding class"
			type = ship_hull_cruiser_2
			parent_version = 0
			modules = {
				fixed_ship_battery_slot = ship_light_medium_battery_2
				fixed_ship_anti_air_slot = ship_anti_air_1
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = cruiser_ship_engine_2
				fixed_ship_armor_slot = ship_armor_cruiser_2
				fixed_ship_secondaries_slot = ship_secondaries_1
				front_1_custom_slot = ship_light_medium_battery_2
				mid_1_custom_slot = ship_airplane_launcher_1
				mid_2_custom_slot = ship_anti_air_1
				rear_1_custom_slot = empty
			}
		}
		## Destroyers ##
		create_equipment_variant = { #Destroyer 1
			name = "Gearing class"
			type = ship_hull_cruiser_1
			parent_version = 0
			modules = {
				fixed_ship_battery_slot = ship_medium_battery_1
				fixed_ship_anti_air_slot = ship_anti_air_1
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_radar_slot = ship_radar_1
				fixed_ship_engine_slot = cruiser_ship_engine_1
				fixed_ship_armor_slot = ship_armor_cruiser_1
				mid_1_custom_slot = ship_airplane_launcher_1
				mid_2_custom_slot = ship_anti_air_1
				rear_1_custom_slot = ship_medium_battery_1
			}
		}
		## Submarines ##
		create_equipment_variant = { #Diesel Sub 1A
			name = "Tench class"
			type = ship_hull_submarine_1
			parent_version = 0
			modules = {
				fixed_ship_radar_slot = ship_radar_1
				fixed_ship_torpedo_slot = ship_torpedo_sub_1
				fixed_ship_engine_slot = sub_ship_engine_1
				rear_1_custom_slot = empty
			}
			obsolete = yes
		}
		create_equipment_variant = { #Nuclear Sub 2A
			name = "Chien Lung class"
			type = ship_hull_submarine_2
			parent_version = 0
			modules = {
				fixed_ship_radar_slot = ship_radar_1
				fixed_ship_torpedo_slot = ship_torpedo_sub_2
				fixed_ship_engine_slot = sub_ship_engine_2
				rear_1_custom_slot = ship_torpedo_sub_2
			}
		}
	}
	if = {
		limit = {
			has_dlc = "By Blood Alone"
		}
		create_equipment_variant = {
			name = "F-CK-1 Ching-kuo"
			type = small_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = heavy_mg_4x
				fixed_auxiliary_weapon_slot_1 = heavy_mg_4x
				fixed_auxiliary_weapon_slot_2 = light_mg_4x
				engine_type_slot = engine_1_2x
				special_type_slot_1 = hmg_defense_turret
			}
			icon = "GFX_PRC_j7"
		}
		
		create_equipment_variant = {
			name = "F-16V Viper"
			type = small_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = heavy_mg_4x
				fixed_auxiliary_weapon_slot_1 = heavy_mg_4x
				fixed_auxiliary_weapon_slot_2 = light_mg_4x
				fixed_auxiliary_weapon_slot_3 = light_mg_4x
				engine_type_slot = engine_1_2x
				special_type_slot_1 = hmg_defense_turret
			}
			icon = "GFX_PRC_fighter4_medium"
		}
	}