﻿add_namespace = manchu

country_event = {
    id = manchu.1
    title = "Japan Surrenders!"
    desc = "Our forces have successfully secured control over the Korean Peninsula. In response to this significant development, the Japanese Empire has dispatched a diplomatic envoy to our nation. They have conveyed an offer to terminate all hostilities, contingent upon the return of the occupied territories."
    picture = GFX_report_event_chinese_soldiers_fighting

    is_triggered_only = no

    trigger = {
			controls_state = 527
			controls_state = 525
            any_enemy_country = {
            	tag = JAP
        	}
    }
	
	mean_time_to_happen = {
    days = 30
	}

    option = { # Make peace with Japan
        name = "We have gotten what we came for. Now, we must end this war before it is too late."
        ai_chance = { factor = 90 }
        JAP = {
            white_peace = {
				tag = MAN
			}
            end_puppet = MEN
        }
        set_state_owner = 745
        set_state_owner = 609
    }

    option = { # Continue the war
        name = "To hell with them!"
        ai_chance = { factor = 10 }
        add_war_support = 0.05
        }
    }

country_event = {
    id = manchu.2
    title = "The Empress of Manchukuo Has Demanded Our Subjugation!"
    desc = "Empress Wanrong of Manchukuo has demanded we submit to her rule. Should we refuse this offer, they will take military action against us."
    picture = GFX_report_event_chinese_soldiers_fighting

    is_triggered_only = yes

    trigger = {
    }
	
	mean_time_to_happen = {
    days = 7
	}

    option = { 
        name = "We have no choice. We must submit."
        ai_chance = { 
            factor = 40 
        }
        MAN = {
            puppet = {
                target = TIB
                end_wars = yes
            }
        }
    }
    option = { 
        name = "We will not surrender, we will not fall!"
        ai_chance = { 
            factor = 60
        }
        MAN = {
            create_wargoal = {
                type = annex_everything
                target = TIB
            }
        }
    }
}

country_event = {
    id = manchu.3
    title = "A Royal Marriage"
    desc = "The Emperor, while currently espoused, has the opportunity to marry the heir to the throne of a foreign nation. There are a few candidates to choose from, all that's left now is for the Emperor to take his pick."
    picture = GFX_report_event_chinese_soldiers_fighting

    is_triggered_only = yes

    trigger = {
    }
	
	mean_time_to_happen = {
    days = 7
	}

    option = { 
        name = "Ashraf Pahlavi, Heir to Persia"
        ai_chance = { 
            factor = 40 
        }
        recruit_character = ashraf_pahlavi
        IF = {
            LIMIT = {
                PER = {
                    OR = {
                        has_government = neutrality
                        has_government = fascism
                    }
                }
            }
            PER = {
                add_opinion_modifier = {
                    target = ROOT
                    modifier = large_increase
                }
            }
        }
        set_variable = {
            var = royal_marriage
            value = 50
        }
    }
    option = { 
        name = "Galyani Vadhana, Princess of Siam"
        ai_chance = { 
            factor = 60
        }
        recruit_character = galyani_vadhana
        IF = {
            LIMIT = {
                SIA = {
                    OR = {
                        has_government = neutrality
                        has_government = fascism
                        has_government = democratic
                    }
                }
            }
            SIA = {
                add_opinion_modifier = {
                    target = ROOT
                    modifier = large_increase
                }
            }
        }
        set_variable = {
            var = royal_marriage
            value = 100
        }
    }
}
