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

peace_action_modifiers = {

    ITA_proclaim_the_empire = {
        category = events_or_focuses
        peace_action_type = { take_states }
        enable = {
            ROOT = {
                original_tag = ITA
                has_completed_focus = ITA_proclaim_the_italian_empire
            }
            FROM.FROM.FROM = {
                is_on_continent = africa
            }
        }
        cost_multiplier = 0.85 #15% cost reduction
    }


    italy_catholic_dominion = {
        category = events_or_focuses
        peace_action_type = { puppet }
        enable = {
            ROOT = {
                original_tag = ITA
                OR = {
                    has_idea = ITA_papal_state_catholic_dominion_no_lar
                    has_idea = ITA_papal_state_catholic_dominion
                }
            }
        }
        cost_multiplier = 0.75 #25% cost reduction
    }


    italy_sol_dell_avvenire = {
        category = events_or_focuses
        peace_action_type = { take_states force_government }
        enable = {
            ROOT = {
                original_tag = ITA
                has_completed_focus = ITA_il_sol_dell_avvenire
            }
        }
        cost_multiplier = 0.75 #25% cost reduction
    }

    ITA_forced_peace_with_ethiopia = {
        category = treaties_or_conferences
        peace_action_type = take_states

        enable = {
            ROOT = {
                tag = ETH
                has_global_flag = second_italo_ethiopian_war_flag
            }
            FROM.FROM.FROM = {
                is_owned_by = ITA
                NOT = { has_state_flag = ITA_forced_peace_states_flag }
            }
        }

        cost_multiplier = 1.5 #Makes all Italian states without ITA_forced_peace_states_flag more expansive 
    }

}
