# Scripted AI desire for peace actions.
# See documentation.info file for more detailed scripting information.

peace_ai_desires = {
    # Warlords want to expand their territory in China, not create puppets- So take states even if not cores, they _can_ be in the future, right. This goes for MAN as well
    warlords_want_to_conquer_china = {
        peace_action_type = { take_states }
        enable = {
            FROM.FROM.FROM = {
                OR = {
                    is_core_of = PRC
                    is_core_of = CHI
                }
                any_neighbor_state = {
                    OR = {
                        is_owned_by = ROOT
                        pc_is_state_claimed_by = ROOT.FROM
                    }
                }
            }
            FROM = {
                tag = ROOT
            }
            ROOT = {
                OR = {
                    WTT_is_chinese_warlord = yes
                    tag = MAN
                }
            }
        }
        ai_desire = 150
    }
    warlords_want_to_conquer_china_carefully = {
        peace_action_type = { take_states }
        enable = {
            FROM.FROM.FROM = {
                OR = {
                    is_core_of = PRC
                    is_core_of = CHI
                }
                NOT = {
                    any_neighbor_state = {
                        OR = {
                            is_owned_by = ROOT
                            pc_is_state_claimed_by = ROOT.FROM
                        }
                    }
                }
            }
            FROM = {
                tag = ROOT
            }
            ROOT = {
                OR = {
                    WTT_is_chinese_warlord = yes
                    tag = MAN
                    tag = PRC
                    tag = CHI
                }
            }
        }
        ai_desire = -75
    }
    warlords_dont_puppet_or_liberate_china = {
        peace_action_type = { puppet force_government liberate }
        enable = {
            FROM.FROM.FROM = {
                OR = {
                    is_core_of = PRC
                    is_core_of = CHI
                }
            }
            ROOT = {
                OR = {
                    WTT_is_chinese_warlord = yes
                    tag = PRC
                    tag = CHI
                    tag = MAN
                }
            }
        }
        ai_desire = -200
    }
}
