# Utility scripted effects to reduce repetition

# Clear reform screen flags
clear_reform_screen_flags = {
    clr_country_flag = reform_screen_subcat_open
    clr_country_flag = reform_civ_lib_religion
    clr_country_flag = reform_civ_lib_education
    clr_country_flag = reform_civ_lib_press
    clr_country_flag = reform_civ_lib_freedom_assembly
    clr_country_flag = reform_civ_lib_trade_union
    clr_country_flag = reform_civ_lib_court
    clr_country_flag = reform_eco_trade_laws
    clr_country_flag = reform_eco_tax_rates
    clr_country_flag = reform_eco_child_labour
    clr_country_flag = reform_eco_military_spendage
    clr_country_flag = reform_pop_border_laws
    clr_country_flag = reform_pop_discriminatory_laws
    clr_country_flag = reform_pop_suffrage
    clr_country_flag = reform_pop_political_parties
    clr_country_flag = reform_int_bud_healthcare
    clr_country_flag = reform_int_bud_law_and_order
    clr_country_flag = reform_int_bud_road_maintenance
    clr_country_flag = reform_int_bud_naval_infrastructure
    clr_country_flag = reform_int_bud_economic_mobilization
    clr_country_flag = reform_int_bud_scientific_funding
}

# Apply executive order (costs 450 PP)
apply_executive_order = {
    add_political_power = -450
    set_executive_cooldown = yes
    if = {
        limit = {
            NOT = {
                OR = {
                    #has_idea = absolute_monarchy
                    #has_idea = revolutionary_government
                    #has_idea = totalitarian_dictatorship
                    #has_idea = socialist_state
                } 
            }
        }
        decrease_ps_by_one = yes
    }
}

# Apply cheap executive order (costs 100 PP - for less important decisions)
apply_cheap_executive_order = {
    add_political_power = -100
    set_executive_cooldown = yes
    if = {
        limit = {
            NOT = {
                OR = {
                    #has_idea = absolute_monarchy
                    #has_idea = revolutionary_government
                    #has_idea = totalitarian_dictatorship
                    #has_idea = socialist_state
                } 
            }
        }
        decrease_ps_by_one = yes
    }
}
