create_faction = "Nanhai Lianmeng"
capital = 608 #622
set_country_flag = polit_china
load_focus_tree = generic_focus
oob = "PRC_1936"
puppet = AOI
puppet = NIR
MAN = {give_guarantee = PRC}
PRC = {give_guarantee = MAN}
VIN = {give_guarantee = PRC}
PRC = {give_guarantee = VIN}
LAO = {give_guarantee = PRC}
PRC = {give_guarantee = LAO}
#CUB = {give_guarantee = PRC}
PRC = {give_guarantee = CUB}
SOV = {give_guarantee = PRC}
#PRC = {give_guarantee = SOV} #makes the game implayable
PER = {give_guarantee = PRC}
# Starting tech
set_technology = {
	infantry_weapons = 1
	tech_trucks = 1
	mass_assault = 1
}
set_stability = 0.6
set_war_support = 0.7

recruit_character = PRC_xi #PRC_mao_zedong
recruit_character = PRC_zhu_de
recruit_character = PRC_chen_yi
recruit_character = PRC_peng_dehuai
recruit_character = PRC_lin_biao
recruit_character = PRC_kwong_hu
recruit_character = PRC_luo_zhao
recruit_character = PRC_liang_ma
recruit_character = PRC_ma_jin
recruit_character = PRC_ziao_jingguang
recruit_character = PRC_nie_rongzhen
recruit_character = PRC_su_yu
recruit_character = PRC_liu_bocheng
recruit_character = PRC_chen_geng
recruit_character = PRC_gao_qiu
recruit_character = PRC_liang_shen
recruit_character = PRC_otto_braun
recruit_character = PRC_gao_gang
recruit_character = PRC_fang_zeyi
recruit_character = PRC_xu_xiangqian
recruit_character = PRC_deng_ye_peng
recruit_character = PRC_ye_jianying
recruit_character = PRC_hsia_tian
recruit_character = PRC_zhang_wei
recruit_character = PRC_zhou_enlai
recruit_character = PRC_liu_shaoqi
recruit_character = PRC_lin_bojiu
recruit_character = PRC_dong_biwu
recruit_character = PRC_he_yuandang


save_global_event_target_as = WTT_communist_china



set_politics = {
	ruling_party = communism
	last_election = "1936.1.1"
	election_frequency = 48
	elections_allowed = no
}
set_popularities = {
	communism = 100
}

add_ideas = {
	closed_economy
	#service_by_requirement
	partial_economic_mobilisation
}

if = {
	limit = {
		has_dlc = "Waking the Tiger"
	}
	add_ideas = {
		#PRC_the_long_march_1
		PRC_low_popular_support_3
		#PRC_power_struggles
		PRC_red_army_weakened
	}
}
set_technology = {
	infantry_weapons = 1
	infantry_weapons1 = 1
	tech_support = 1		
	tech_recon = 1
	tech_engineers = 1
	tech_trucks = 1
	motorised_infantry = 1
	marines  = 1
	gw_artillery = 1
	basic_train = 1

	base_strike = 1
	fuel_silos = 1
	synth_oil_experiments = 1
	fuel_refining = 1
}


	#set_oob = "JAP_1936"

if = {
	limit = {
		has_dlc = "Man the Guns"
	}
	set_technology = {
		basic_naval_mines = 1
		submarine_mine_laying = 1
		basic_torpedo = 1
		basic_battery = 1
		basic_light_battery = 1
		basic_heavy_battery = 1
		basic_medium_battery = 1
		improved_ship_torpedo_launcher = 1
		early_ship_hull_submarine = 1
		basic_ship_hull_submarine = 1
		early_ship_hull_light = 1
		early_ship_hull_cruiser = 1
		basic_ship_hull_cruiser = 1
		early_ship_hull_heavy = 1
		basic_ship_hull_heavy = 1
		early_ship_hull_carrier = 1
		basic_ship_hull_carrier = 1
		mtg_transport = 1
		coastal_defense_ships = 1
		basic_depth_charges = 1
		basic_cruiser_armor_scheme = 1
		cruiser_submarines = 1
		basic_dp_light_battery = 1
	}
	set_naval_oob = "PRC_1936_naval_mtg"
}
if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	set_technology = {
		early_submarine = 1
		basic_submarine = 1
		early_destroyer = 1
		early_light_cruiser = 1
		basic_light_cruiser = 1
		early_heavy_cruiser = 1
		basic_heavy_cruiser = 1
		early_battleship = 1
		basic_battleship = 1
		early_battlecruiser = 1
		early_carrier = 1
		basic_carrier = 1
		transport = 1
	}
	set_naval_oob = "PRC_1936_naval_legacy"
}
if = {
	limit = { has_dlc = "By Blood Alone" }
		set_air_oob = "PRC_1936_air_bba"
		set_technology = {
			aa_lmg = 1
			engines_1 = 1
			engines_2 = 1
			early_bombs = 1
			aircraft_construction = 1
			iw_small_airframe = 1
			iw_medium_airframe = 1
			basic_small_airframe = 1
			air_torpedoe_1 = 1
		}
	else = {
		set_air_oob = "PRC_1936_air_legacy"
		set_technology = {
			cv_early_fighter = 1
			cv_CAS1 = 1
			cv_naval_bomber1 = 1
			early_fighter = 1
			naval_bomber1 = 1
			early_bomber = 1
			CAS1 = 1
		}
	}
}
if = {
	limit = {
		has_dlc = "La Resistance"
	}
	set_technology = {
		armored_car1 = 1
	}
	#JAP_create_john_farnsworth_operative = yes
}
add_opinion_modifier = { target = CHI modifier = hostile_status }
set_research_slots = 5
add_ideas = disarmed_nation 
add_ideas = PRC_nails
country_lock_all_division_template = yes
add_ideas = CRI_first_world_country
news_event = {
	id = covid.001
	days = 1800
	random_days = 100
}
if = {
	limit = { has_dlc = "Man the Guns" }
	# Destroyers #
	create_equipment_variant = {
		name = "Jianwei Class"			
		type = ship_hull_light_1
		name_group = CHI_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_battery_1
			fixed_ship_anti_air_slot = empty
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = light_ship_engine_1
			fixed_ship_torpedo_slot = empty
			mid_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
	# Light Cruisers #
	create_equipment_variant = {
		name = "Hairong Class"					# Hairong protected cruisers and Zhaohe, Yingrui training cruisers
		type = ship_hull_cruiser_coastal_defense_ship
		name_group = CHI_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_medium_battery_1
			fixed_ship_anti_air_slot = empty
			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
			mid_1_custom_slot = empty
			mid_2_custom_slot = empty
			rear_1_custom_slot = empty
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Haiqi Class"
		type = ship_hull_cruiser_coastal_defense_ship
		name_group = CHI_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_medium_battery_1
			fixed_ship_anti_air_slot = empty
			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_secondaries_slot = ship_secondaries_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			mid_1_custom_slot = empty
			mid_2_custom_slot = empty
			rear_1_custom_slot = empty
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Ninghai Class"
		type = ship_hull_cruiser_1
		name_group = CHI_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_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
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
	create_equipment_variant = {
		name = "Longrang Class"
		name_group = CHI_CL_HISTORICAL
		type = ship_hull_carrier_1
		parent_version = 0
		modules = {
			fixed_ship_deck_slot_1 = ship_deck_space
			fixed_ship_deck_slot_2 = ship_deck_space
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = carrier_ship_engine_1
			fixed_ship_secondaries_slot = dp_ship_secondaries_1
			front_1_custom_slot = empty
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Changdao Class"
		name_group = CHI_CL_HISTORICAL
		type = ship_hull_heavy_1
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_heavy_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 = heavy_ship_engine_2
			fixed_ship_secondaries_slot = ship_secondaries_1
			fixed_ship_armor_slot = ship_armor_bb_1
			front_1_custom_slot = empty
			mid_1_custom_slot = ship_secondaries_1
			mid_2_custom_slot = ship_airplane_launcher_1
			rear_1_custom_slot = ship_heavy_battery_2
		}
	}
	### Submarine Variants	
	create_equipment_variant = {
		name = "Qianting III Class"
		type = ship_hull_submarine_1
		name_group = JAP_SS_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_torpedo_slot = ship_torpedo_sub_1
			fixed_ship_engine_slot = sub_ship_engine_1
			rear_1_custom_slot = ship_torpedo_sub_1
		}
	}	
	create_equipment_variant = {
		name = "Miaoli Class"
		type = ship_hull_cruiser_2
		name_group = CHI_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_medium_battery_2
			fixed_ship_anti_air_slot = empty
			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 = dp_ship_secondaries_1
			front_1_custom_slot = ship_medium_battery_2
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = ship_torpedo_1
			rear_1_custom_slot = ship_airplane_launcher_1
		}
		obsolete = yes
	}
}
set_convoys = 353