# 增加决议 经济规划
PRC_economic_planning_cat = {

	# 已增加决议 156工程|自力更生
	PRC_five_year_plan_jianshe_decision = {

		icon = GFX_decision_generic_factory

		priority = 0

		cost = 10

		days_remove = 60

		on_map_mode = map_and_decisions_view

		highlight_states = {
			highlight_state_targets = {
				state = from
			}
		}

		state_target = yes

		allowed = {
			original_tag = PRC
		}
        target_root_trigger = {
			or = {
				has_completed_focus = PRC_ofx_project
				has_completed_focus = PRC_ziligs
			}
        }


		target_trigger = {
			FROM = {
				NOT = {
					has_state_flag = PRC_jianshe_over
				}
				NOT = {
					state = 287
				}
				is_core_of  = ROOT
				is_owned_and_controlled_by = ROOT
			}
		}

		visible = {
			or = {
				has_completed_focus = PRC_ofx_project
				has_completed_focus = PRC_ziligs
			}

		}

		available = {
			controls_state = FROM
			or = {
				has_completed_focus = PRC_ofx_project
				has_completed_focus = PRC_ziligs
			}

		}
		cancel_trigger = {
			NOT = {
				controls_state = FROM
			}
		}

		remove_effect = {
			from = {
				set_state_flag = PRC_jianshe_over
				add_extra_state_shared_building_slots = 1
				random_list = {
					60 = {
						add_building_construction = {
							type = industrial_complex 
							level = 1
							instant_build = yes
						}
					}
					40 = {
						add_building_construction = {
							type = arms_factory  
							level = 1
							instant_build = yes
						}
					}
				}
			
			}
		}



	}

	# 已增加决议 三大改造-和平赎买
    PRC_three_gaizao_decision_1 = {

		icon = GFX_decision_generic_civil_support

		priority = 0

		cost = 10

		days_remove = 30

		on_map_mode = map_and_decisions_view

		highlight_states = {
			highlight_state_targets = {
				state = from
			}
		}		
		
		state_target = yes

		allowed = {
			original_tag = PRC
		}
        target_root_trigger = {
			AND = {
				has_completed_focus = PRC_three_gaizao
				has_country_flag = PRC_three_1
			}
            
        }
        target_trigger = {
            FROM = {
				is_owned_and_controlled_by = ROOT
				is_core_of = ROOT
				not = { has_dynamic_modifier = PRC_three_great_reconstructions_state_modifier_bonus_1 }
				NOT = {
					state = 287
				}
            }
        }
		visible = {
			has_country_flag = PRC_three_1
		}
		cancel_trigger = {
			NOT = {
				controls_state = FROM
			}
		}
        remove_effect = {
            FROM = {
                add_dynamic_modifier = {
					modifier = PRC_three_great_reconstructions_state_modifier_bonus_1
				}
            }
        }
    }

	# 已增加决议 三大改造-清算剥削
    PRC_three_gaizao_decision_2 = {

		icon = GFX_decision_generic_civil_support

		priority = 0

		cost = 10

		days_remove = 30

		on_map_mode = map_and_decisions_view

		highlight_states = {
			highlight_state_targets = {
				state = from
			}
		}

		
		state_target = yes

		allowed = {
			original_tag = PRC
		}
        target_root_trigger = {
			AND = {
				has_completed_focus = PRC_three_gaizao
				has_country_flag = PRC_three_2
			}
            
        }
        target_trigger = {
            FROM = {
				is_owned_and_controlled_by = ROOT
				is_core_of = ROOT
				not = { has_dynamic_modifier = PRC_three_great_reconstructions_state_modifier_bonus_2 }
				NOT = {
					state = 287
				}
            }
        }
		visible = {
			has_country_flag = PRC_three_2
		}
		cancel_trigger = {
			NOT = {
				controls_state = FROM
			}
		}		
		modifier = {
			political_power_cost = 0.05
		}
        remove_effect = {
            FROM = {
                add_dynamic_modifier = {
					modifier = PRC_three_great_reconstructions_state_modifier_bonus_2
				}
            }
        }
    }

}


# 增加决议 整合决议
PRC_integration_decision_cat = {

		

	# 已修改并增加决议 整合西藏
	PRC_integration_decision_tibet_1 = {

		priority = 2000

		cost = 5

		days_remove = 30


		state_target = yes
		target_array = TIB.core_states

		target_trigger = {
			FROM = {
				NOT = {
					is_core_of = PRC
				}
			}
		}

		visible = {
			has_completed_focus = PRC_reclaim_tibet
		}

		available = {
			controls_state = FROM
			has_completed_focus = PRC_reclaim_tibet

		}


		cancel_trigger = {
			NOT = {
				controls_state = FROM
			}
		}

		remove_effect = {
			FROM = {
				add_core_of = PRC
			}

		}



	}

	# 已修改并增加决议 整合北方
	PRC_integration_decision_soviet_states_1 = {

		priority = 2000

		cost = 5

		days_remove = 30


		state_target = yes

		target_array = PRC.PRC_northern_target_states_array


		target_trigger = {
			FROM = {
				NOT = {
					is_core_of = PRC
				}
			}
		}

		visible = {
			has_completed_focus = PRC_dare_to_win
		}

		available = {
			controls_state = FROM
			has_completed_focus = PRC_dare_to_win

		}

		cancel_trigger = {
			NOT = {
				controls_state = FROM
			}
		}
	

		remove_effect = {
			FROM = {
				add_core_of = PRC
			}

		}



	}

	


	# 已增加决议 整合朝鲜
	PRC_integration_decision_KOR = {

		priority = 2000

		cost = 5

		days_remove = 30


		state_target = yes

		target_array = KOR.core_states


		target_trigger = {
			FROM = {
				NOT = {
					is_core_of = PRC
				}
			}
		}

		visible = {
			has_completed_focus = PRC_subjugate_korea
		}

		available = {
			controls_state = FROM
			has_completed_focus = PRC_subjugate_korea

		}

		cancel_trigger = {
			NOT = {
				controls_state = FROM
			}
		}

		remove_effect = {
			FROM = {
				add_core_of = PRC
				set_state_flag = PRC_no_china_state
			}

		}



	}

	# 已增加决议 吞并日本
	PRC_ANNEX_JAP = {

		priority = 1900
		cost = 100


		allowed = {
			original_tag = PRC
		}
		visible = {
			has_completed_focus = PRC_JAP_fate
			JAP = {is_subject_of = PRC}
		}

		available = {
			has_completed_focus = PRC_JAP_fate
			JAP = {is_subject_of = PRC}
		}

		fire_only_once = yes

		days_remove = 30

		remove_effect = {
			annex_country = {
				target = JAP
				transfer_troops = yes
			}
		}
	}

	# 已增加决议 整合日本
	PRC_integration_decision_JAP = {

		priority = 1800

		cost = 5

		days_remove = 30


		state_target = yes

		target_array = JAP.core_states


		target_trigger = {
			FROM = {
				NOT = {
					is_core_of = PRC
				}
			}
		}

		visible = {
			has_completed_focus = PRC_JAP_fate
		}

		available = {
			controls_state = FROM
			has_completed_focus = PRC_JAP_fate

		}

		cancel_trigger = {
			NOT = {
				controls_state = FROM
			}
		}

		remove_effect = {
			FROM = {
				if = {
					limit = { state = 537 }
					537 = { 
						add_core_of = PRC
					} 
				}
				if = {
					limit = { NOT = {state = 537} }
					add_core_of = PRC
					set_state_flag = PRC_no_china_state
				}

			}

		}



	}
	
}


# 增加决议 政治行动
political_actions = {

	# 否定上海公共租界的合法性
	PRC_remove_shanghai_international_settlement = {

		priority = 1000

		icon = generic_form_nation

		cost = 50

		days_remove = 30

		fire_only_once = yes

		allowed = {
			original_tag = PRC
		}

		visible = {
			controls_state = 613
			613 = {
				has_dynamic_modifier = {
					modifier = CHI_shanghai_international_settlement
				}
			}
		}

		available = {
			controls_state = 613
			613 = {
				has_dynamic_modifier = {
					modifier = CHI_shanghai_international_settlement
				}
			}
		}

		cancel_trigger = {
			NOT = {
				controls_state = 613
			}
		}

		remove_effect = {
			613 = {
				remove_dynamic_modifier = { modifier = CHI_shanghai_international_settlement }
			}
		}

	}

	# 重组藏南
	PRC_zangnan_reorganization = {

		priority = 900 

		icon = GFX_decision_eng_trade_unions_support

		highlight_states = {
			highlight_state_targets = {
				state = 434
			}
		}

		cost = 20

		fire_only_once = yes


		allowed = {
			original_tag = PRC
		}

		visible = { 
			owns_state = 434
		}
	
		available = {
			434 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		complete_effect = {
			add_stability = 0.02

			custom_effect_tooltip = generic_skip_one_line_tt
			
			434 = {set_state_name = PRC_zangnan}

			custom_effect_tooltip = generic_skip_one_line_tt

			set_province_name = { id = 1116 name = PRC_yitabao }

		}



	}

	# 重组唐努乌梁海
	PRC_tnwlh_reorganization = {

		priority = 900 

		icon = GFX_decision_eng_trade_unions_support

		highlight_states = {
			highlight_state_targets = {
				state = 329
			}
		}

		cost = 20

		fire_only_once = yes


		allowed = {
			original_tag = PRC
		}

		visible = { 
			owns_state = 329
		}
	
		available = {
			329 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		complete_effect = {

			add_stability = 0.02

			custom_effect_tooltip = generic_skip_one_line_tt
			
			329 = {set_state_name = PRC_tnwlh}

			custom_effect_tooltip = generic_skip_one_line_tt

			set_province_name = { id = 10627 name = PRC_tnwlh }
		}



	}

	# 重组库页岛
	PRC_kuye_reorganization = {

		priority = 900 

		icon = GFX_decision_eng_trade_unions_support

		highlight_states = {
			highlight_state_targets = {
				state = 655
				state = 537
			}
		}

		cost = 25

		fire_only_once = yes


		allowed = {
			original_tag = PRC
		}

		visible = { 
			owns_state = 655
			owns_state = 537		
		}
	
		available = {
			655 = {
				is_owned_and_controlled_by = ROOT
			}
			537 = {
				is_owned_and_controlled_by = ROOT
			}

		}

		complete_effect = {

			add_stability = 0.02

			custom_effect_tooltip = generic_skip_one_line_tt

			655 = {set_state_name = PRC_beikuye}

			custom_effect_tooltip = generic_skip_one_line_tt

			537 = {set_state_name = PRC_nankuye} 


		}



	}

	# 重组外东北地区
	PRC_ouder_northeastern_reorganization = {

		priority = 900 

		icon = GFX_decision_eng_trade_unions_support

		highlight_states = {
			highlight_state_targets = {
				state = 560
				state = 408
				state = 409
				state = 561

			}
		}

		cost = 25

		fire_only_once = yes


		allowed = {
			original_tag = PRC
		}

		visible = { 
			owns_state = 560
			owns_state = 408
			owns_state = 409
			owns_state = 561		
		}
	
		available = {
			560 = {
				is_owned_and_controlled_by = ROOT
			}			
			408 = {
				is_owned_and_controlled_by = ROOT
			}
			409 = {
				is_owned_and_controlled_by = ROOT
			}
			561 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		complete_effect = {

			add_stability = 0.02

			custom_effect_tooltip = generic_skip_one_line_tt
			
			560 = {set_state_name = PRC_miaojie}

			custom_effect_tooltip = generic_skip_one_line_tt

			408 = {set_state_name = PRC_haishenwai}
			set_province_name = { id = 957 name = PRC_haishenwai }

			custom_effect_tooltip = generic_skip_one_line_tt

			409 = {set_state_name = PRC_boli}
			set_province_name = { id = 12189 name = PRC_boli }

			custom_effect_tooltip = generic_skip_one_line_tt

			561 = {set_state_name = PRC_hailanpao}
			set_province_name = { id = 7851 name = PRC_yakesa }


		}



	}

}


# 完整的秋海棠叶
PRC_reunification_of_China_decision_categories = {

	# 宣告中华大一统
	PRC_reunification_of_China = {

		icon = generic_form_nation

		priority = 1949
		
		fire_only_once = yes

		cost = 50

		allowed = {
			original_tag = PRC
		}
		available = {

			is_ai = no
			
			PRC = { has_war = no }

			custom_trigger_tooltip = {
				tooltip = PRC_reunification_of_China_1
				CHI = {exists = no}
				SIK = {exists = no}
				YUN = {exists = no}
				GXC = {exists = no}
				SHX = {exists = no}
				XSM = {exists = no}
				GDC = {exists = no}
				XIC = {exists = no}
				SND = {exists = no}
				KHM = {exists = no}
				NXM = {exists = no}
				GSM = {exists = no}
				SIC = {exists = no}
				KUM = {exists = no}
				HBC = {exists = no}
				TIB = {exists = no}

				1039 = { is_controlled_by = PRC }
				608 = { is_controlled_by = PRC }
				614 = { is_controlled_by = PRC }
				1038 = { is_controlled_by = PRC }
				597 = { is_controlled_by = PRC }
				743 = { is_controlled_by = PRC }

				598 = { is_controlled_by = PRC }
				606 = { is_controlled_by = PRC }
				749 = { is_controlled_by = PRC }
				596 = { is_controlled_by = PRC }
				1035 = { is_controlled_by = PRC }
				1034 = { is_controlled_by = PRC }
				613 = { is_controlled_by = PRC }

				1036 = { is_controlled_by = PRC }
				602 = { is_controlled_by = PRC }
				600 = { is_controlled_by = PRC }
				595 = { is_controlled_by = PRC }

				607 = { is_controlled_by = PRC }
				620 = { is_controlled_by = PRC }
				744 = { is_controlled_by = PRC }
				605 = { is_controlled_by = PRC }
				750 = { is_controlled_by = PRC }

				603 = { is_controlled_by = PRC }
				748 = { is_controlled_by = PRC }
				1037 = { is_controlled_by = PRC }
				1041 = { is_controlled_by = PRC }
				751 = { is_controlled_by = PRC }
				752 = { is_controlled_by = PRC }
				
				747 = { is_controlled_by = PRC }
				325 = { is_controlled_by = PRC }

				591 = { is_controlled_by = PRC }
				1033 = { is_controlled_by = PRC }
				594 = { is_controlled_by = PRC }
				599 = { is_controlled_by = PRC }
				592 = { is_controlled_by = PRC }
				593 = { is_controlled_by = PRC }

				615 = { is_controlled_by = PRC }
				621 = { is_controlled_by = PRC }
				746 = { is_controlled_by = PRC }

				1046 = { is_controlled_by = PRC }
				622 = { is_controlled_by = PRC }
				1032 = { is_controlled_by = PRC }

				1040 = { is_controlled_by = PRC }
				616 = { is_controlled_by = PRC }
				1045 = { is_controlled_by = PRC }

				756 = { is_controlled_by = PRC }
				1044 = { is_controlled_by = PRC }
				283 = { is_controlled_by = PRC }

				753 = { is_controlled_by = PRC }
				754 = { is_controlled_by = PRC }
				755 = { is_controlled_by = PRC }
				604 = { is_controlled_by = PRC }

				617 = { is_controlled_by = PRC }
				618 = { is_controlled_by = PRC }
				619 = { is_controlled_by = PRC }
				287 = { is_controlled_by = PRC }
				759 = { is_controlled_by = PRC }
				760 = { is_controlled_by = PRC }
				1042 = { is_controlled_by = PRC }

				611 = { is_controlled_by = PRC }
				612 = { is_controlled_by = PRC }
				1043 = { is_controlled_by = PRC }

				714 = { is_controlled_by = PRC }
				715 = { is_controlled_by = PRC }
				716 = { is_controlled_by = PRC }
				717 = { is_controlled_by = PRC }
				761 = { is_controlled_by = PRC }
				328 = { is_controlled_by = PRC }
				610 = { is_controlled_by = PRC }

			}
			custom_trigger_tooltip = {
				tooltip =  PRC_reunification_of_China_2
				has_completed_focus = PRC_reclaim_tibet
				has_completed_focus = PRC_dare_to_struggle
				has_completed_focus = PRC_dare_to_win
				732 = { is_core_of = PRC }
				586 = { is_core_of = PRC }
				589 = { is_core_of = PRC }
				588 = { is_core_of = PRC }
				408 = { is_core_of = PRC }
				409 = { is_core_of = PRC }
				560 = { is_core_of = PRC }
				657 = { is_core_of = PRC }
				561 = { is_core_of = PRC }
				655 = { is_core_of = PRC }
				329 = { is_core_of = PRC }
				330 = { is_core_of = PRC }
				817 = { is_core_of = PRC }
				818 = { is_core_of = PRC }
				819 = { is_core_of = PRC }
				820 = { is_core_of = PRC }
				322 = { is_core_of = PRC }
				601 = { is_core_of = PRC }
				758 = { is_core_of = PRC }
				757 = { is_core_of = PRC }
				434 = { is_core_of = PRC }
				728 = { is_controlled_by = PRC }
				729 = { is_controlled_by = PRC }
				326 = { is_controlled_by = PRC }
			}
			custom_trigger_tooltip = {
				tooltip = PRC_reunification_of_China_3
				has_completed_focus = PRC_JAP_fate
				609 = { is_controlled_by = PRC }
				745 = { is_controlled_by = PRC }
				524 = { is_controlled_by = PRC }
				537 = { is_core_of = PRC }
			}


		}

		complete_effect = {
			custom_effect_tooltip = PRC_reunification_of_China_tt_1
			custom_effect_tooltip = PRC_reunification_of_China_tt_2
			custom_effect_tooltip = generic_skip_one_line_tt
			hidden_effect = {
				every_country = {
					limit = {
						original_tag = PRC
						is_ai = no
					}
					every_core_state = {
						limit = {
							is_owned_and_controlled_by = PRC
							NOT = {
								has_state_flag = PRC_no_china_state
							}
						}
						for_each_scope_loop = {
							array = global.countries
							if = {
								limit = { not = { tag = PRC } }
								PREV = {
									remove_core_of = PREV
									remove_claim_by = PREV
								}
							}
						}
					}
				}
			}
			
			add_ideas = PRC_1_idea
		}


		
	}



}


# 整合自治省
PRC_integrate_the_autonomous_province_decision_categories = {


	# 已添加决议 整合自治省
	PRC_integrate_the_autonomous_province = {
		icon = GFX_decision_eng_trade_unions_demand

		priority = 1


		available = {
			is_ai = no
			original_tag = PRC
		}

		target_root_trigger = {
			is_in_faction = yes
			is_ai = no
			original_tag = PRC
			has_completed_focus = PRC_allow_autonomous_regions
		}

		target_array = global.is_chinese_warlord
		target_array = CHI

		target_trigger = {
			FROM = {
				is_in_faction_with = ROOT
				exists = yes
			}

		}

		fire_only_once = yes

		days_remove = 30

		cost = 30
		
		remove_effect = {

			annex_country = {
				target = FROM
				transfer_troops = yes
				
			}
			FROM = {
				every_unit_leader = {set_nationality = ROOT}
			}	

		}
	}



}


# 军队建设
PRC_military_construction = {


	# 和人民在一起
	PRC_being_with_the_people = {

		icon = generic_form_nation

		priority = 1936
		
		fire_only_once = yes

		allowed = {
			original_tag = PRC
		}

		available = {
			is_ai = no
			has_government = communism
			custom_trigger_tooltip = {
				tooltip = PRC_being_with_the_people_tt
				has_country_flag = flag_PRC_PLA_1
				has_country_flag = flag_PRC_PLA_2
				has_country_flag = flag_PRC_PLA_3
				has_country_flag = flag_PRC_PLA_4
			}
		}

		complete_effect = {
			custom_effect_tooltip = PRC_being_with_the_people_tt_1
			set_country_flag = flag_PRC_active_defense
		}

	}

	# 为人民服务
	PRC_serving_the_people = {

		icon = generic_form_nation

		priority = 1927
		
		fire_only_once = yes

		allowed = {
			original_tag = PRC
		}

		available = {
			is_ai = no
			has_government = communism
			custom_trigger_tooltip = {
				tooltip = PRC_serving_the_people_tt
				has_country_flag = flag_PRC_PLA_1
				has_country_flag = flag_PRC_PLA_2
				has_country_flag = flag_PRC_PLA_3
				has_country_flag = flag_PRC_PLA_4
			}
		}

		complete_effect = {
			custom_effect_tooltip = PRC_serving_the_people_tt_1
			set_country_flag = flag_PRC_PLA
		}

	}



	# 重整组织架构
	PRC_reorganizing_the_organizational_structure = {

		icon = GFX_decision_generic_prepare_civil_war

		priority = 1911
		
		fire_only_once = yes

		cost = 50

		allowed = {
			original_tag = PRC
		}

		available = {
			is_ai = no
			has_government = communism
			
		}

		complete_effect = {
			set_country_flag = flag_PRC_PLA_1
		}

	}

	# 练兵运动
	PRC_military_training_campaign = {

		icon = GFX_decision_generic_prepare_civil_war

		priority = 1911
		
		fire_only_once = yes

		cost = 50

		allowed = {
			original_tag = PRC
		}

		available = {
			is_ai = no
			has_government = communism
			
		}

		complete_effect = {
			set_country_flag = flag_PRC_PLA_2
		}

	}

	# 在战争中学习战争
	PRC_learn_warfare_through_warfare = {

		icon = GFX_decision_generic_prepare_civil_war

		priority = 1911
		
		fire_only_once = yes

		allowed = {
			original_tag = PRC
		}

		available = {
			is_ai = no
			has_government = communism
		}


		custom_cost_trigger = {
			command_power > 29
		}

		custom_cost_text = decision_cost_CP_30
		
		complete_effect = {
			hidden_effect = {
				add_command_power = -30
			}
			set_country_flag = flag_PRC_PLA_3
		}
	}

	# 优化技战术
	PRC_optimize_tactics_and_techniques = {

		icon = GFX_decision_generic_prepare_civil_war

		priority = 1911
		
		fire_only_once = yes

		allowed = {
			original_tag = PRC
		}

		available = {
			is_ai = no
			has_government = communism
		}

		custom_cost_trigger = {
			command_power > 29
		}

		custom_cost_text = decision_cost_CP_30
		
		complete_effect = {
			hidden_effect = {
				add_command_power = -30
			}
			set_country_flag = flag_PRC_PLA_4
		}

	}



	# 侦察兵与特种作战理论
	PRC_reconnaissance_and_special_operations_theory = {

		icon = GFX_decision_generic_military

		priority = 1911
		
		fire_only_once = yes

		allowed = {
			original_tag = PRC
		}

		available = {
			is_ai = no
			has_government = communism
		}

		custom_cost_trigger = {
			command_power > 29
		}

		custom_cost_text = decision_cost_CP_30
		
		complete_effect = {
			hidden_effect = {
				add_command_power = -30
			}
			add_potential_special_forces_tree = yes
		}

	}



	# 陆军战略推演
	PRC_army_strategic_simulation = {

		icon = GFX_decision_generic_prepare_civil_war

		priority = 1911
		
		fire_only_once = no

		cost = 50

		allowed = {
			original_tag = PRC
		}

		available = {
			is_ai = no
			has_government = communism
		}


		complete_effect = {
			army_experience = 50
		}

	}

	# 海军战略推演
	PRC_navy_strategic_simulation = {

		icon = GFX_decision_generic_prepare_civil_war

		priority = 1911
		
		fire_only_once = no

		cost = 50

		allowed = {
			original_tag = PRC
		}

		available = {
			is_ai = no
			has_government = communism
		}


		complete_effect = {
			navy_experience = 50
		}

	}

	# 空军战略推演
	PRC_air_strategic_simulation = {

		icon = GFX_decision_generic_prepare_civil_war

		priority = 1911
		
		fire_only_once = no

		cost = 50

		allowed = {
			original_tag = PRC
		}

		available = {
			is_ai = no
			has_government = communism
		}


		complete_effect = {
			air_experience = 50
		}

	}

	# 总体战略推演
	PRC_overall_strategic_simulation = {

		icon = GFX_decision_generic_prepare_civil_war

		priority = 1911
		
		fire_only_once = no

		cost = 50
		
		allowed = {
			original_tag = PRC
		}

		available = {
			is_ai = no
			has_government = communism
		}


		complete_effect = {
			add_command_power = 50
		}

	}

	# 军工组织增加经费投入
	PRC_add_MIO_size = {

		priority = 1911
		
		fire_only_once = no

		cost = 200
		
		allowed = {
			original_tag = PRC
		}

		available = {
			is_ai = no
			has_government = communism
		}


		complete_effect = {

			every_military_industrial_organization = {
				add_mio_size = 1
			}	

		}		
	}


}

# 输出革命
PRC_Output_Revolution_decision_categories = {

	PRC_Output_Revolution_decision_1 = {
		icon = GFX_decision_eng_propaganda_campaigns

		priority = 100
	
	    cost = 50		

		fire_only_once = yes

	    on_map_mode = decision_view_only 

		allowed = {
			original_tag = PRC
		}

		visible = {
			has_completed_focus = PRC_Output_Revolution
		}

		target_array = global.countries
	    
	    target_trigger = {
	        FROM = {
	        	NOT = {
	        		has_war_with = ROOT
	        	}
	        	NOT = {
	        		has_government = communism
	        	}
				has_civil_war = no
	        }
	    }

		complete_effect = {

			FROM = {
				add_timed_idea = {
					idea = FROM_PRC_communist_propaganda
					days = 720
				}
			}		
		}

	}

	PRC_Output_Revolution_decision_2 = {
		icon = GFX_decision_hol_exchange_intelligence_data

		priority = 50

	    cost = 10	

		fire_only_once = yes

	    on_map_mode = decision_view_only 

		allowed = {
			original_tag = PRC
		}

		visible = {
			has_completed_focus = PRC_Output_Revolution
		}

		target_array = global.countries
	    
	    target_trigger = {
	        FROM = {
	        	is_subject = no
	        	is_in_faction = no
	        	NOT = {
	        		has_war_with = ROOT
	        	}
	        	has_government = communism
				NOT = {
					has_idea = SIK_battle_for_sinkiang
				}
	        }
	    }

		complete_effect = {

			FROM = {
				country_event = {
					id = NEW_PRC_misc_events.23
					hours = 6
					random_hours = 12
				}	
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				ROOT = {
					add_to_faction = FROM
				}
			}
			
		}

	}


}



# 增加决议 整合军阀
CHI_integrate_the_warlords_sea_cat = {

	# 已增加决议 整合军阀
	PRC_press_warlord_to_become_puppet = {
		icon = GFX_decision_eng_trade_unions_demand

		priority = 100

		available = {
			is_ai = no
			set_temp_variable = { CHI_get_warlord_influence = FROM.faction_influence_ratio }
			multiply_temp_variable = { CHI_get_warlord_influence = 2 }
			faction_influence_ratio > CHI_get_warlord_influence
		}

		target_root_trigger = {
			is_in_faction = yes
			is_ai = no
			OR = {
				has_faction_template = faction_template_wang_front
				has_faction_template = faction_template_chinese_united_front
				has_faction_template = faction_template_PRC_the_peoples_front
			}
		}

		ai_hint_pp_cost = 10
		custom_cost_trigger = {
			faction_influence_ratio > 0.0499 # If changing this, remember to update refunds in the events found in SEA_warlords.txt 
			has_political_power > 9
		}
		custom_cost_text = decision_cost_faction_influence_5_PP_10

		target_array = global.is_chinese_warlord

		target_trigger = {
			FROM = {
				is_in_faction_with = ROOT
				exists = yes
				OR = {
					has_faction_template = faction_template_wang_front
					has_faction_template = faction_template_chinese_united_front
					has_faction_template = faction_template_PRC_the_peoples_front
				}
			}
			if = {
				limit = {
					has_completed_focus = CHI_tour_the_north
				}
				FROM = {
					CHI_northern_warlords = no
				}
			}
			if = {
				limit = {
					has_completed_focus = CHI_tour_the_west
				}
				FROM = {
					CHI_western_warlords = no
				}
			}
			if = {
				limit = {
					has_completed_focus = CHI_tour_the_south
				}
				FROM = {
					CHI_southern_warlords = no
				}
			}
			CHI = {
				NOT = {
					has_completed_focus = CHI_affirm_civilian_primacy
				}
			}
		}

		fire_only_once = yes

		days_remove = 14
		
		complete_effect = {
			hidden_effect = {
				add_faction_influence_ratio = -0.05
				add_political_power = -10
			}
		}
		remove_effect = {
			annex_country = {
				target = FROM
				transfer_troops = yes
				
			}
			FROM = {
				every_unit_leader = {set_nationality = ROOT}
			}	
		}
	}



}


# 增加决议 农村调查
PRC_rural_surveyer_decision_cat = {

	# 增加决议 发展牧区
	PRC_develop_pastoral = {

		icon = GFX_decision_generic_electricity

		priority = -1

		on_map_mode = map_and_decisions_view

		highlight_states = {
			highlight_state_targets = {
				state = from
			}
		}

		state_target = yes

        target_root_trigger = {
			has_completed_focus = PRC_rural_survey
        }
		target_trigger = {
			FROM = {
				has_state_category = pastoral
				is_core_of  = ROOT
				is_owned_and_controlled_by = ROOT
			}
		}

		allowed = {
			original_tag = PRC
		}
		available = {
			controls_state = FROM
			num_of_civilian_factories_available_for_projects > 2
			has_completed_focus = PRC_rural_survey

		}

		visible = {
			has_completed_focus = PRC_rural_survey
		}

		days_remove = 60

		cost = 25

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			NOT = {
				controls_state = FROM
			}
		}

		remove_effect = {
			
			FROM = {
				set_state_category = rural
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}

	# 增加决议 发展乡村
	PRC_develop_rural = {

		icon = GFX_decision_generic_electricity
		
		priority = -1

		on_map_mode = map_and_decisions_view

		highlight_states = {
			highlight_state_targets = {
				state = from
			}
		}

		state_target = yes

        target_root_trigger = {
			has_completed_focus = PRC_rural_region_development_two
        }
		target_trigger = {
			FROM = { 
				has_state_category = rural
				is_core_of  = ROOT
				is_owned_and_controlled_by = ROOT
			}
		}

		allowed = {
			original_tag = PRC
		}
		available = {
			controls_state = FROM
			num_of_civilian_factories_available_for_projects > 4
			has_completed_focus = PRC_rural_region_development_two

		}

		visible = {
			has_completed_focus = PRC_rural_region_development_two
		}

		days_remove = 60

		cost = 50

		modifier = {
			civilian_factory_use = 5
		}

		cancel_trigger = {
			NOT = {
				controls_state = FROM
			}
		}

		remove_effect = {
			
			FROM = {
				set_state_category = town
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}
}


# 增加决议 重工业项目
special_projects = {

	# 官厅水库
	PRC_dam_guanting = {

		icon = GFX_decision_generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 608
			}
		}

		available = {
			608 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_dam
		}
	
		fire_only_once = yes
	
		days_remove = 90
	
		cost = 50
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			608 = {
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 9843
					}
				}
			}
		}

	}
	# 狮子滩水库
	PRC_dam_shizitan = {

		icon = GFX_decision_generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 1037
			}
		}

		available = {
			1037 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_dam
		}
	
		fire_only_once = yes
	
		days_remove = 90
	
		cost = 50
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			1037 = {
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 6999
					}
				}
			}
		}

	}
	# 刘家峡水电站
	PRC_dam_liujiaxia = {

		icon = GFX_decision_generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 283
			}
		}

		available = {
			283 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_dam
		}
	
		fire_only_once = yes
	
		days_remove = 90
	
		cost = 50
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			283 = {
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 2022
					}
				}
			}
		}

	}
	# 岗南水库
	PRC_dam_gangnan = {

		icon = GFX_decision_generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 614
			}
		}

		available = {
			614 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_dam
		}
	
		fire_only_once = yes
	
		days_remove = 90
	
		cost = 50
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			614 = {
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 10053
					}
				}
			}
		}

	}
	# 三门峡大坝
	PRC_dam_sanmenxia = {

		icon = GFX_decision_generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 607
			}
		}

		available = {
			607 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_dam
		}
	
		fire_only_once = yes
	
		days_remove = 90
	
		cost = 50
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			607 = {
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 6932
					}
				}
			}
		}

	}	
	# 丹江口大坝
	PRC_dam_danjiangkou = {

		icon = GFX_decision_generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 620
			}
		}

		available = {
			620 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_dam
		}
	
		fire_only_once = yes
	
		days_remove = 90
	
		cost = 50
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			620 = {
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 10474
					}
				}
			}
		}

	}
	# 大伙房水库
	PRC_dam_dahuofang = {

		icon = GFX_decision_generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 716
			}
		}

		available = {
			716 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_dam
		}
	
		fire_only_once = yes
	
		days_remove = 90
	
		cost = 50
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			716 = {
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 11808
					}
				}
			}
		}

	}
	# 青铜峡水利枢纽
	PRC_dam_qingtongxia = {

		icon = GFX_decision_generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 616
			}
		}

		available = {
			616 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_dam
		}
	
		fire_only_once = yes
	
		days_remove = 90
	
		cost = 50
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			616 = {
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 7511
					}
				}
			}
		}

	}
	# 松涛水库
	PRC_dam_songtao = {

		icon = GFX_decision_generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 591
			}
		}

		available = {
			591 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_dam
		}
	
		fire_only_once = yes
	
		days_remove = 90
	
		cost = 50
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			591 = {
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 11963
					}
				}
			}
		}

	}
	# 新安江水电站
	PRC_dam_xinanjiang = {

		icon = GFX_decision_generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 596
			}
		}

		available = {
			596 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_dam
		}
	
		fire_only_once = yes
	
		days_remove = 90
	
		cost = 50
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			596 = {
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 10086
					}
				}
			}
		}

	}	



	# 成渝铁路
	PRC_railway_cheng_yu = {

		icon = GFX_decision_generic_train

		highlight_states = {
			highlight_state_targets = {
				state = 1041
				state = 1037
			}
		}

		available = {
			1041 = { is_fully_controlled_by = ROOT }
			1037 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_railway
		}
	
		fire_only_once = yes
	
		days_remove = 45
	
		cost = 20
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {

			1041 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 4925
				}

			}

			build_railway = {
				level = 5
				fallback = yes
				path = { 4925 1395 12705 6999 }
			}

		}

	}
	# 天兰铁路
	PRC_railway_tian_lan = {

		icon = GFX_decision_generic_train

		highlight_states = {
			highlight_state_targets = {
				state = 283
			}
		}
		
		available = {
			283 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_railway
		}
	
		fire_only_once = yes
	
		days_remove = 45
	
		cost = 20
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {

			283 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 7911
				}
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 2022
				}
			}

			build_railway = {
				level = 5
				fallback = yes
				path = { 7911 12882 12797 2022 }
			}
			set_country_flag = PRC_railway_lanzho

		}

	}
	# 黔桂铁路
	PRC_railway_qian_gui = {

		icon = GFX_decision_generic_train

		highlight_states = {
			highlight_state_targets = {
				state = 603				
				state = 599
			}
		}
		
		available = {
			603 = { is_fully_controlled_by = ROOT }
			599 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_railway
		}
	
		fire_only_once = yes
	
		days_remove = 60
	
		cost = 20
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			603 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 4504
				}

			}
			599 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 1597
				}

			}

			build_railway = {
				level = 5
				fallback = yes
				path = { 4504 4532 12436 4134 1597 }
			}

		}

	}
	# 兰新铁路
	PRC_railway_lan_xin = {

		icon = GFX_decision_generic_train

		highlight_states = {
			highlight_state_targets = {
				state = 283
				state = 1044
				state = 756
				state = 760			
				state = 617
				state = 618					
			}
		}
		
		available = {
			283 = { is_fully_controlled_by = ROOT }
			1044 = { is_fully_controlled_by = ROOT }
			756 = { is_fully_controlled_by = ROOT }
			760 = { is_fully_controlled_by = ROOT }
			617 = { is_fully_controlled_by = ROOT }
			618 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_railway
			has_country_flag = PRC_railway_lanzho
		}
	
		fire_only_once = yes
	
		days_remove = 90
	
		cost = 20
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {

			1044 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 5100
				}

			}
			756 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 7971
				}

			}
			760 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 4704
				}

			}
			618 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 1844
				}

			}
			build_railway = {
				level = 5
				fallback = yes
				path = { 
					2022 1630 5057 12327 5100 2028 7971 12820 1838 4704 7732 12656 4709 7850 1783 1844
				}
			}

		}

	}
	# 兰青铁路
	PRC_railway_lan_qing = {

		icon = GFX_decision_generic_train

		highlight_states = {
			highlight_state_targets = {
				state = 283
				state = 754
			}
		}
		
		available = {
			283 = { is_fully_controlled_by = ROOT }
			754 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_railway
			has_country_flag = PRC_railway_lanzho
		}
	
		fire_only_once = yes
	
		days_remove = 45
	
		cost = 20
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {

			build_railway = {
				level = 5
				fallback = yes
				path = { 2022 12732 }
			}

		}

	}
	# 包兰铁路
	PRC_railway_bao_lan = {

		icon = GFX_decision_generic_train

		highlight_states = {
			highlight_state_targets = {
				state = 621
				state = 746
				state = 616
				state = 1044
				state = 283
			}
		}
		
		available = {
			621 = { is_fully_controlled_by = ROOT }
			746 = { is_fully_controlled_by = ROOT }
			616 = { is_fully_controlled_by = ROOT }
			1044 = { is_fully_controlled_by = ROOT }
			283 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_railway
		}
	
		fire_only_once = yes
	
		days_remove = 75
	
		cost = 20
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			621 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 4525
				}				
			}
			746 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 10854
				}				
			}			
			616 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 8127
				}				
			}			
			build_railway = {
				level = 5
				fallback = yes
				path = { 4525 2087 4960 1959 10854 10724 8127 3742 1630 2022 }
			}

		}

	}
	# 京承铁路
	PRC_railway_jing_cheng = {

		icon = GFX_decision_generic_train

		highlight_states = {
			highlight_state_targets = {
				state = 608
				state = 609
				state = 610
			}
		}
		
		available = {
			608 = { is_fully_controlled_by = ROOT }
			609 = { is_fully_controlled_by = ROOT }
			610 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_railway
		}
	
		fire_only_once = yes
	
		days_remove = 60
	
		cost = 20
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			610 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 11801
				}				
			}
			build_railway = {
				level = 5
				fallback = yes
				path = { 9843 11822 6969 881 11801 }
			}

		}

	}
	# 贵昆铁路
	PRC_railway_gui_kun = {

		icon = GFX_decision_generic_train

		highlight_states = {
			highlight_state_targets = {
				state = 603
				state = 325
			}
		}
		
		available = {
			603 = { is_fully_controlled_by = ROOT }
			325 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_railway
		}
	
		fire_only_once = yes
	
		days_remove = 45
	
		cost = 20
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			603 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 4504
				}				
			}
			build_railway = {
				level = 5
				fallback = yes
				path = { 4504 4192 1319 }
			}

		}

	}
	# 成昆铁路
	PRC_railway_cheng_kun = {

		icon = GFX_decision_generic_train

		highlight_states = {
			highlight_state_targets = {
				state = 1041
				state = 751
				state = 325
			}
		}
		
		available = {
			1041 = { is_fully_controlled_by = ROOT }
			751 = { is_fully_controlled_by = ROOT }
			325 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_railway
		}
	
		fire_only_once = yes
	
		days_remove = 60
	
		cost = 20
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			1041 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 4925
				}				
			}
			build_railway = {
				level = 5
				fallback = yes
				path = { 4925 12141 12819 2067 7294 4559 1319 }
			}

		}

	}	
	# 宝成铁路
	PRC_railway_bao_cheng = {

		icon = GFX_decision_generic_train

		highlight_states = {
			highlight_state_targets = {
				state = 744
				state = 605
				state = 1041

			}
		}
		
		available = {
			744 = { is_fully_controlled_by = ROOT }
			605 = { is_fully_controlled_by = ROOT }
			1041 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_railway
		}
	
		fire_only_once = yes
	
		days_remove = 60
	
		cost = 20
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			744 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 1976
				}				
			}
			1041 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 1367
				}				
			}			
			1041 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 4925
				}				
			}			
			build_railway = {
				level = 5
				fallback = yes
				path = { 1976 10257 4295 7256 12767 1367 4925 }
			}

		}

	}
	# 鹰厦铁路
	PRC_railway_ying_xia = {

		icon = GFX_decision_generic_train

		highlight_states = {
			highlight_state_targets = {
				state = 600
				state = 595

			}
		}
		
		available = {
			600 = { is_fully_controlled_by = ROOT }
			595 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_railway
		}
	
		fire_only_once = yes
	
		days_remove = 60
	
		cost = 20
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			600 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 11961
				}				
			}
			595 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 7071
				}				
			}			
		
			build_railway = {
				level = 5
				fallback = yes
				path = { 11961 4113 10042 1193 12057 12084 7071 }
			}

		}

	}
	# 黎湛铁路
	PRC_railway_li_zhan = {

		icon = GFX_decision_generic_train

		highlight_states = {
			highlight_state_targets = {
				state = 594
				state = 1033
				state = 728
			}
		}
		
		available = {
			594 = { is_fully_controlled_by = ROOT }
			1033 = { is_fully_controlled_by = ROOT }
			728 = { is_fully_controlled_by = ROOT }
			num_of_civilian_factories_available_for_projects > 14
		}
	
		visible = {
			has_country_flag = PRC_railway
		}
	
		fire_only_once = yes
	
		days_remove = 60
	
		cost = 20
	
		modifier = {
			civilian_factory_use = 15
		}
	
		remove_effect = {
			728 = {
				add_building_construction = {
					type = supply_node
					level = 1
					instant_build = yes
					province = 11981
				}				
			}		
		
			build_railway = {
				level = 5
				fallback = yes
				path = { 7137 10050 12023 11983 10105 11981 }
			}

		}

	}


}