﻿# GRAND CAPITULATION — availability and target safety gates.

ddm_grand_capitulation_available_trigger = {
    is_alive = yes
    is_landed = yes
    is_imprisoned = no
    is_at_war = no
    any_held_title = {
        tier = tier_kingdom
        count >= 3
    }
    NOT = { has_character_flag = ddm_grand_capitulation_cooldown }
}

ddm_grand_capitulation_target_trigger = {
    is_alive = yes
    is_landed = yes
    is_independent_ruler = yes
    is_imprisoned = no
    is_at_war = no
    this != scope:ddm_cap_actor
    in_diplomatic_range = scope:ddm_cap_actor
    NOT = { government_has_flag = cannot_be_vassal_or_liege }
}

# Safe title subset for the 80% surrender draw. The capital county, religious head offices and
# landless/personal institutional titles are never randomly stripped by the mass routine.
ddm_grand_capitulation_transferable_title_trigger = {
    NOT = { is_landless_type_title = yes }
    NOT = { is_head_of_faith = yes }
    NOT = { is_noble_family_title = yes }
    this != scope:ddm_cap_target.capital_county
}
