ParadoxGameConverters / Vic2ToHoI4

Converts Victoria 2 saves into Hearts of Iron 4 mods.
MIT License
28 stars 21 forks source link

Dynamic ai_peace #1575

Closed Idhrendur closed 1 year ago

Idhrendur commented 1 year ago

This needs to be generated dynamically in common/peace_conference/ai_peace:

    dont_puppet_and_force_government = {
        peace_action_type = { puppet }

        enable = {
            if = {
                limit = { has_government = democratic }
                ROOT.FROM.FROM = { pc_is_forced_government_to = democratic }
            }
            else_if = {
                limit = { has_government = fascism }
                ROOT.FROM.FROM = { pc_is_forced_government_to = fascism }
            }
            else_if = {
                limit = { has_government = communism }
                ROOT.FROM.FROM = { pc_is_forced_government_to = communism }
            }
            else_if = {
                limit = { has_government = neutrality }
                ROOT.FROM.FROM = { pc_is_forced_government_to = neutrality }
            }
            else = {
                always = no
            }
        }
        ai_desire = -200
    }

It replaces a former one that hadn't directly coded the ideologies.

Idhrendur commented 1 year ago

force_gov_puppets has also been replaced with

    do_force_government_if_forced_to_our_ideology = {
        peace_action_type = { force_government }

        enable = {
            if = {
                limit = { has_government = democratic }
                ROOT.FROM.FROM = { pc_is_forced_government_to = democratic }
            }
            else_if = {
                limit = { has_government = fascism }
                ROOT.FROM.FROM = { pc_is_forced_government_to = fascism }
            }
            else_if = {
                limit = { has_government = communism }
                ROOT.FROM.FROM = { pc_is_forced_government_to = communism }
            }
            else_if = {
                limit = { has_government = neutrality }
                ROOT.FROM.FROM = { pc_is_forced_government_to = neutrality }
            }
            else = {
                always = no
            }
        }
        ai_desire = 20
    }
Idhrendur commented 1 year ago

force_gov_puppets was actually just moved