﻿# Institutional opposition created by Cucked-but-not-Owned rulers who coordinate against their Patron.
domcom_defiance_coalition_war = {
    icon = independence_faction_war
    group = independence
    target_titles = none
    ai = no
    should_check_for_interface_availability = no
    white_peace_possible = yes
    ticking_war_score_targets_entire_realm = yes
    attacker_ticking_warscore_delay = { months = 6 }
    defender_ticking_warscore_delay = { months = 6 }
    attacker_ticking_warscore = 0.2
    defender_ticking_warscore = 0.2
    attacker_score_from_battles_scale = 175
    defender_score_from_battles_scale = 175
    defender_capital_gives_war_score = yes
    truce_days = 1825
    allowed_for_character = { is_landed = yes }
    allowed_against_character = { scope:defender = { is_landed = yes } }
    valid_to_start = { scope:attacker = { is_alive = yes is_at_war = no } scope:defender = { is_alive = yes is_at_war = no } }
    should_invalidate = { OR = { scope:attacker = { is_alive = no } scope:defender = { is_alive = no } } }
    on_declaration = { on_declared_war = yes }
    on_victory_desc = { desc = DOMCOM_DEFIANCE_COALITION_VICTORY_DESC }
    on_white_peace_desc = { desc = DOMCOM_DEFIANCE_COALITION_WHITE_PEACE_DESC }
    on_defeat_desc = { desc = DOMCOM_DEFIANCE_COALITION_DEFEAT_DESC }
    on_invalidated_desc = { desc = DOMCOM_DEFIANCE_COALITION_INVALIDATED_DESC }
    on_victory = {
        scope:defender = { add_prestige = -1200 if = { limit = { has_legitimacy = yes } add_legitimacy = -200 } domcom_rep_opposition_loss_effect = yes }
        scope:war = { every_war_attacker = { add_prestige = 400 remove_character_modifier = domcom_defiant_opposition_desperate remove_character_modifier = domcom_defiant_opposition_major } }
    }
    on_white_peace = { scope:defender = { add_prestige = -300 } scope:war = { every_war_attacker = { add_prestige = 100 } } }
    on_defeat = { scope:defender = { add_prestige = 700 domcom_rep_gain_overlord_major_effect = yes } scope:war = { every_war_attacker = { add_prestige = -250 } } }
    on_invalidated = { }
    war_name = DOMCOM_DEFIANCE_COALITION_WAR_NAME
}
