# Scripted cost modifiers for peace actions.
# See documentation.info file for more detailed scripting information.

peace_action_modifiers = {
    
    DEN_puppet_former_overlord = {
        category = events_or_focuses
        peace_action_type = { puppet }
        enable = {
            ROOT = {
                original_tag = DEN
                has_completed_focus = DEN_secure_danish_freedom
                OR = {
                    has_government = fascism
                    has_government = communism
                }
            }
            FROM.FROM = { #Only puppet former overlord if they're close by
                OR = {
                    check_variable = { DEN.DEN_overlord_nation = GER }
                    check_variable = { DEN.DEN_overlord_nation = ENG }
                    check_variable = { DEN.DEN_overlord_nation = SWE }
                    check_variable = { DEN.DEN_overlord_nation = NOR }
                    check_variable = { DEN.DEN_overlord_nation = HOL }
                    check_variable = { DEN.DEN_overlord_nation = POL }
                }
            }
        }
        cost_multiplier = 0.75 #25% cost reduction
    }

     DEN_take_former_overlords_state = {
        category = events_or_focuses
        peace_action_type = { take_states }
        enable = {
            ROOT = {
                original_tag = DEN
                has_completed_focus = DEN_secure_danish_freedom
            }
            FROM.FROM.FROM = {
                has_state_flag = DEN_buffert_zone_state_flag
            }
        }
        cost_multiplier = 0.75 #25% cost reduction
    }

    DEN_topple_former_overlords_government = {
        category = events_or_focuses
        peace_action_type = { force_government liberate }
        enable = {
            ROOT = {
                original_tag = DEN
                 has_completed_focus = DEN_secure_danish_freedom  
            }
            FROM.FROM = {
                original_tag = var:DEN.DEN_overlord_nation
            }
        }
        cost_multiplier = 0.7 #30% cost reduction
    }

    DEN_take_former_overlords_state = {
        category = events_or_focuses
        peace_action_type = { take_states }
        enable = {
            ROOT = {
                original_tag = DEN
                has_completed_focus = DEN_avenging_1864
            }
            FROM.FROM.FROM = {
                has_state_flag = DEN_southern_baltic_sea_state_flag
            }
        }
        cost_multiplier = 0.75 #25% cost reduction
    }
}
