﻿reform_polish_commonwealth_decision = {
    picture = { reference = "gfx/interface/illustrations/decisions/Poland_storng.dds" }
    decision_group_type = major
    ai_check_interval = 120
    desc = unite_the_e_polish_commonwealth_decision_desc
    selection_tooltip = reform_polish_commonwealth_decision_tooltip
    confirm_text = reform_polish_commonwealth_decision_confirm

    is_shown = {
        is_landed = yes
        culture = { has_cultural_pillar = heritage_west_slavic }
        title:e_polish_commonwealth = { NOT = { exists = holder } }
    }

    is_valid = {
        is_independent_ruler = yes
        culture = { has_cultural_pillar = heritage_west_slavic }
        has_title = title:k_poland
        has_title = title:k_lithuania
        OR = {
            has_primary_title = title:k_poland
            has_primary_title = title:k_lithuania
            highest_held_title_tier = tier_empire
        }
    }

    is_valid_showing_failures_only = { is_landed = yes }

    effect = {
        show_as_tooltip = { form_polish_commonwealth_scripted_effect = yes }
        trigger_event = reform_polish_commonwealth_decision.0002
    }

    ai_potential = { always = yes }
    ai_will_do = { base = 100 }
}

sejm_decision = {
    picture = { reference = "gfx/interface/illustrations/decisions/siem.dds" }
    decision_group_type = major
    ai_check_interval = 60
    title = plc_sejm_decision_title
    desc = plc_sejm_decision_desc
    selection_tooltip = plc_sejm_decision_tooltip
    confirm_text = plc_sejm_decision_confirm

    is_shown = {
        has_title = title:e_polish_commonwealth
        is_ruler = yes
    }

    is_valid = {
        has_title = title:e_polish_commonwealth
        is_ruler = yes
        is_independent_ruler = yes
        is_adult = yes
        is_imprisoned = no
        plc_has_sejm_voting_estate_trigger = yes
    }

    is_valid_showing_failures_only = { is_landed = yes }

    effect = { trigger_event = plc_sejm.0001 }

    ai_potential = { always = yes }
    ai_will_do = {
        base = 25
        modifier = { add = 35 is_at_war = yes }
        modifier = { add = 15 gold < 100 }
    }

    cooldown = { years = 5 }
}

henrician_articles_decision = {
    picture = { reference = "gfx/interface/illustrations/decisions/henry.dds" }
    ai_check_interval = 120
    desc = henrician_articles_decision_desc
    selection_tooltip = henrician_articles_decision_tooltip
    confirm_text = henrician_articles_decision_confirm

    is_shown = {
        has_title = title:e_polish_commonwealth
        is_ruler = yes
    }

    is_valid = {
        has_title = title:e_polish_commonwealth
        is_ruler = yes
        NOT = { has_character_modifier = henrician_articles_supported }
        NOT = { has_character_modifier = henrician_articles_rejected }
    }

    is_valid_showing_failures_only = {
        is_ruler = yes
        NOT = { has_character_modifier = henrician_articles_supported }
        NOT = { has_character_modifier = henrician_articles_rejected }
    }

    effect = { trigger_event = henrician_articles.010 }

    ai_potential = { always = yes }
    ai_will_do = { base = 60 }
}
