#############################################
#                 ±                  #
#############################################

diplomatic_decisions = {
          chinese_xian_shibian = {
                 potential = {
                              tag = CHC
                              not = { has_country_flag = chinese_xian_shibian }
                              exists = CHI
                              war_with = CHI
                              year = 1936
                 }
                 allow = {
                          year = 1936
                          month = 11 #12
                 }
                 effect = {
                           set_country_flag = chinese_xian_shibian
                           dissent = -5
                           national_unity = 5
                           CHI = { country_event = 80101 }
                 }
                 ai_will_do = {
                               factor = 1
                 }
          }
}
####################
# ͳһս #
####################

diplomatic_decisions = {
          
          chinese_alliance_against_japan = {
                 potential = {
                              tag = CHI
          
                              not = { has_country_flag = chinese_alliance_against_japan }
                              not = { alliance_with = CHC }
                              exists = JAP
                              war_with = JAP

                              year = 1937  
                  }
                  effect = {
                            CHC = { country_event = 80301 }
                            CGX = { country_event = 80301 }
                            CYN = { country_event = 80301 }
                            set_country_flag = chinese_alliance_against_japan
                  }
                  ai_will_do = {
                     factor = 1
                  }
          }
}

####################
# ͳһ֮·CHI 
####################

diplomatic_decisions = {
          
          the_road_that_china_unifies_chi = {
                 potential = {
                              tag = CHI
          
                              not = { has_country_flag = the_road_that_china_unifies_chi }
                              JAP = { has_country_flag = japan_surrendered_to_china }
                              or = {
                                    and = {
                                           exists = CHC
                                           not = { alliance_with = CHC }
                                           not = { war_with = CHC }
                                    }
                                    and = {
                                           exists = CGX
                                           not = { alliance_with = CGX }
                                           not = { war_with = CGX }
                                    }
                                    and = {
                                           exists = CSX
                                           not = { alliance_with = CSX }
                                           not = { war_with = CSX }
                                    }
                                    and = {
                                           exists = CYN
                                           not = { alliance_with =CYN }
                                           not = { war_with = CYN }
                                    }
                                    and = {
                                           exists = SIK
                                           not = { alliance_with = SIK }
                                           not = { war_with = SIK }
                                    }
                                    and = {
                                           exists = TIB
                                           not = { alliance_with = TIB }
                                           not = { war_with = TIB }
                                    }
                              }
                  }
                  allow = {
                           or = {
                                 exists = KOR
                                 CHI= {
                                       controls = 5341 #
                                       controls = 5056
                                       controls = 5116
                                       controls = 4691
                                 }
                           }
                  }
                  effect = {
                            war = CHC
                            dissent = -5
                            national_unity = 5
                            threat = { which = CSX value = 100 }
                            threat = { which = CXB value = 100 }
                            threat = { which = CYN value = 100 }
                            threat = { which = SIK value = 100 }
                            threat = { which = TIB value = 100 }
                            threat = { which = CGX value = 100 }
                            relation = { who = SOV  value = -20 }               
                            set_country_flag = the_road_that_china_unifies_chi
                  }
                  ai_will_do = {
                     factor = 1
                  }
          }
}

##########################
# ͳһ֮·ϲ
##########################

diplomatic_decisions = {
          
          the_road_that_china_unifies_cxb = {
                 potential = {
                              tag = CXB
          
                              not = { has_country_flag = the_road_that_china_unifies_cxb }
                              exists = CHI
                              CHI = { has_country_flag = the_road_that_china_unifies_chi }
                              not = { exists = CHC }
                              not = { exists = CGX }
                              not = { exists = CSX }
                              not = { exists = CYN }
                              not = { exists = SIK }
                              not = { exists = TIB }
                  }
                  effect = {
                            CHI = { country_event = 80501 }             
                            set_country_flag = the_road_that_china_unifies_cxb
                  }
                  ai_will_do = {
                     factor = 1
                  }
          }
}

####################
# ͳһ֮·CHC 
####################

diplomatic_decisions = {
          
          the_road_that_china_unifies_chc = {
                 potential = {
                              tag = CHC
          
                              not = { has_country_flag = the_road_that_china_unifies_chc }
                              JAP = { has_country_flag = japan_surrendered_to_china }
                              exists = CHI
                              not = { alliance_with = CHI }
                              not = { war_with = CHI }
                  }
                  allow = {
                           or = {
                                 exists = PRK
                                 CHC= {
                                       controls = 5341 #
                                       controls = 5056
                                       controls = 5116
                                       controls = 4691
                                 }
                           }
                  }
                  effect = {
                            war = CHI
                            dissent = -5
                            national_unity = 5 
                            threat = { which = CSX value = 100 }
                            threat = { which = CXB value = 100 }
                            threat = { which = CYN value = 100 }
                            threat = { which = SIK value = 100 }
                            threat = { which = TIB value = 100 }
                            threat = { which = CGX value = 100 }
                            relation = { who = USA value = -20 }  
                            relation = { who = ENG value = -20 }       
                            set_country_flag = the_road_that_china_unifies_chc
                  }
                  ai_will_do = {
                     factor = 1
                  }
          }
}

########################
# ۡŻع-CHI
########################

diplomatic_decisions = {
          
          chinese_demand_macau_hongkong_chi = {
                 potential = {
                              tag = CHI
                              not = { has_country_flag = chinese_demand_macau_hongkong_chi }
                              has_country_flag = united_china_chi
                              ENG = { controls = 5868 }
                              not = { war_with = ENG }
                              POR = { controls = 5886 }
                              not = { war_with = POR }
                  }
                  effect = {
                            dissent = -1
                            national_unity = 1        
                            set_country_flag = chinese_demand_macau_hongkong_chi
                            relation = { who = ENG value = -20 }  
                            relation = { who = POR value = -20 } 
                            5868 = { add_core = CHI }
                            5886 = { add_core = CHI }
                            ENG = { country_event = 80801 }
                            POR = { country_event = 80804 }
                  }
                  ai_will_do = {
                     factor = 1
                  }
          }
}

########################
# ۡŻع-CHC
########################

diplomatic_decisions = {
          
          chinese_demand_macau_hongkong_chc = {
                 potential = {
                              tag = CHC
                              not = { has_country_flag = chinese_demand_macau_hongkong_chc }
                              has_country_flag = united_china_chc
                              ENG = { controls = 5868 }
                              not = { war_with = ENG }
                              POR = { controls = 5886 }
                              not = { war_with = POR }
                  }
                  effect = {
                            dissent = -1
                            national_unity = 1        
                            set_country_flag = chinese_demand_macau_hongkong_chc
                            relation = { who = ENG value = -20 }  
                            relation = { who = POR value = -20 } 
                            5868 = { add_core = CHC }
                            5886 = { add_core = CHC }
                            ENG = { country_event = 80807 }
                            POR = { country_event = 80808 } 
                  }
                  ai_will_do = {
                     factor = 1
                  }
          }
}

########################
# ǨƽCHC
########################

diplomatic_decisions = {
          
          chinese_change_capital_beiping = {
                 potential = {
                              tag = CHC
                              owns = 4979
                              controls = 4979
                              not = { capital = 4979 }
                  }
                  effect = {
                            CHC = { country_event = 80604 }
                  }
                  ai_will_do = {
                     factor = 1
                  }
          }
}