political_decisions = {
	claim_tibet = {
    picture = tibet_capital
        potential = {
            OR = {
                tag = CHI
                tag = TPG
            }
            neighbour = TIB
            NOT = { 1587 = { is_core = CHI } }
        }

        allow = {
            war = no
            nationalism_n_imperialism = 1
            OR = {
                war_policy = jingoism
                government = fascist_dictatorship
                government = proletarian_dictatorship
                government = presidential_dictatorship
                government = bourgeois_dictatorship
            }
        }

        effect = {
            TIB = { all_core = { add_core = CHI add_core = THIS } }
            badboy = 2
        }

        ai_will_do = { factor = 1 }
    }
    heavenly_capital = {
    picture = heavenly_seal
        potential = {
            tag = TPG
					has_global_flag = taiping_has_happened2
            NOT = { has_global_flag = heavenly_capital_decreted }
        }

        allow = {
            owns = 2221
        }

        effect = {
            prestige = 1
            set_global_flag = heavenly_capital_decreted
            2221 = { change_province_name = "Tianjing" }
            capital = 2221
        }

        ai_will_do = { factor = 1 }
    }

    abolish_heavenly_capital = {
    picture = heavenly_seal
        potential = {
				has_global_flag = heavenly_capital_decreted
            tag = CHI
        }

        allow = {
            owns = 2221
        }

        effect = {
            clr_global_flag = heavenly_capital_decreted
            2221 = { change_province_name = "Nanjing" }
			years_of_research = 4
        }

        ai_will_do = { factor = 1 }
    }
    move_China_capital = {
    picture = heavenly_seal
        potential = {
            tag = CHI
            NOT = { owns = 1616
					has_country_flag = nanjing_cap }
			
        }

        allow = {
            owns = 2221
        }

        effect = {
            set_country_flag = nanjing_cap
			capital = 2221
        }

        ai_will_do = { factor = 1 }
    }
    clear_out_the_manchu_elite = {
        picture = clear_out_the_manchu_elite
        potential = {
            tag = CHI
            government = absolute_monarchy
            is_greater_power = no
            civilized = no
            has_global_flag = taiping_has_happened2
            NOT = { has_country_flag = manchu_elite_cleared_out }
        }

        allow = { average_consciousness = 3 }

        effect = {
            years_of_research = 2
            add_accepted_culture = beifaren
            any_pop = {
                limit = { has_pop_culture = manchu }
                militancy = 2
                consciousness = 1
            }
            any_pop = {
                limit = {
                    NOT = { has_pop_culture = manchu }
                }
                militancy = -2
                consciousness = -1
            }
            set_country_flag = manchu_elite_cleared_out
        }
    }
    taiping_defeated = {
    picture = heavenly_seal
        potential = {
            tag = CHI
            has_global_flag = taiping_has_happened2
			NOT = { exists = TPG }
        }

        allow = {
            has_global_flag = taiping_has_happened2
        }

        effect = {
            clr_global_flag = taiping_has_happened2
			years_of_research = 4
        }
        ai_will_do = { factor = 1 }
    }
    China_defeated = {
    picture = heavenly_seal
        potential = {
            tag = TPG
			NOT = { exists = CHI }
        }

        allow = {
            has_global_flag = taiping_has_happened2
        }

        effect = {
            clr_global_flag = taiping_has_happened2
			years_of_research = 1
			CHI = { all_core = { add_core = THIS } }
        }
        ai_will_do = { factor = 1 }
    }
	Defeated_but_never_defeated = {
        potential = {
            tag = CHI
            NOT = { has_country_flag = korean_defeat }
			KOR = { vassal_of = JAP }
        }

        allow = {
            year = 1870
        }

        effect = {
            set_country_flag = korean_defeat
			years_of_research = 4
        }
        ai_will_do = { factor = 1 }
    }
	Defeated_but_never_defeated = {
        potential = {
            tag = CHI
            NOT = { has_country_flag = korean_defeat }
			KOR = { vassal_of = JAP }
        }

        allow = {
            year = 1870
        }

        effect = {
            set_country_flag = korean_defeat
			years_of_research = 4
        }
        ai_will_do = { factor = 1 }
    }
	chinese_1836_setup = {
        potential = {
            tag = CHI
            always = no
        }

        allow = {
            tag = CHI
        }

        effect = {
            add_country_modifier = {
                name = chinese_problems
                duration = -1
            }
		}
    }
}