###########################
# Sweden Decisions
###########################
# Kind of stolen from KX
###########################

SWE_party_boosting = {

	SWE_support_socdems = {
		icon = GFX_decision_generic_political_discourse
		allowed = { original_tag = SWE }
		available = {
			NOT = { has_country_flag = SWE_ongoing_rallying }
			has_elections = yes
		}
		visible = {
			tag = SWE
			date < 2002.09.15
		}

		fire_only_once = no

		cost = 25
		days_remove = 90
		modifier = {
			political_power_gain = -0.20
		}

		days_re_enable = 25

		ai_will_do = {
			factor = 0
		}
		
		complete_effect = {
			set_country_flag = SWE_ongoing_rallying
		}

		remove_effect = {
			add_popularity = { ideology = social_democrat popularity = 0.05 }
			clr_country_flag = SWE_ongoing_rallying
		}
	}
	
	SWE_support_lolberts = {
		icon = GFX_decision_generic_political_discourse
		allowed = { original_tag = SWE }
		available = {
			NOT = { has_country_flag = SWE_ongoing_rallying }
			has_elections = yes
		}
		visible = {
			tag = SWE
			date < 2002.09.15
		}

		fire_only_once = no

		cost = 25
		days_remove = 90
		modifier = {
			political_power_gain = -0.20
		}

		days_re_enable = 25

		ai_will_do = {
			factor = 0
		}
		
		complete_effect = {
			set_country_flag = SWE_ongoing_rallying
		}

		remove_effect = {
			add_popularity = { ideology = market_liberal popularity = 0.05 }
			clr_country_flag = SWE_ongoing_rallying
		}
	}
	
	SWE_support_liberals = {
		icon = GFX_decision_generic_political_discourse
		allowed = { original_tag = SWE }
		available = {
			NOT = { has_country_flag = SWE_ongoing_rallying }
			has_elections = yes
		}
		visible = {
			tag = SWE
			date < 2002.09.15
		}

		fire_only_once = no

		cost = 25
		days_remove = 90
		modifier = {
			political_power_gain = -0.20
		}

		days_re_enable = 25

		ai_will_do = {
			factor = 0
		}
		
		complete_effect = {
			set_country_flag = SWE_ongoing_rallying
		}

		remove_effect = {
			add_popularity = { ideology = social_liberal popularity = 0.05 }
			clr_country_flag = SWE_ongoing_rallying
		}
	}

	SWE_support_conservatives = {
		icon = GFX_decision_generic_political_discourse
		allowed = { original_tag = SWE }
		available = {
			NOT = { has_country_flag = SWE_ongoing_rallying }
			has_elections = yes
		}
		visible = {
			tag = SWE
			date < 2002.09.15
		}

		fire_only_once = no

		cost = 25
		days_remove = 90
		modifier = {
			political_power_gain = -0.20
		}

		days_re_enable = 25

		ai_will_do = {
			factor = 0
		}
		
		complete_effect = {
			set_country_flag = SWE_ongoing_rallying
		}

		remove_effect = {
			add_popularity = { ideology = conservative popularity = 0.05 }
			clr_country_flag = SWE_ongoing_rallying
		}
	}
	
	SWE_support_socialists = {
		icon = GFX_decision_generic_political_discourse
		allowed = { original_tag = SWE }
		available = {
			NOT = { has_country_flag = SWE_ongoing_rallying }
			has_elections = yes
		}
		visible = {
			tag = SWE
			date < 2002.09.15
		}

		fire_only_once = no

		cost = 25
		days_remove = 90
		modifier = {
			political_power_gain = -0.20
		}

		days_re_enable = 25

		ai_will_do = {
			factor = 0
		}
		
		complete_effect = {
			set_country_flag = SWE_ongoing_rallying
		}

		remove_effect = {
			add_popularity = { ideology = democratic_socialist popularity = 0.05 }
			clr_country_flag = SWE_ongoing_rallying
		}
	}
	
	SWE_support_progressives = {
		icon = GFX_decision_generic_political_discourse
		allowed = { original_tag = SWE }
		available = {
			NOT = { has_country_flag = SWE_ongoing_rallying }
			has_elections = yes
		}
		visible = {
			tag = SWE
			date < 2002.09.15
		}

		fire_only_once = no

		cost = 25
		days_remove = 90
		modifier = {
			political_power_gain = -0.20
		}

		days_re_enable = 25

		ai_will_do = {
			factor = 0
		}
		
		complete_effect = {
			set_country_flag = SWE_ongoing_rallying
		}

		remove_effect = {
			add_popularity = { ideology = progressive popularity = 0.05 }
			clr_country_flag = SWE_ongoing_rallying
		}
	}
	
	SWE_support_reactionaries = {
		icon = GFX_decision_generic_political_discourse
		allowed = { original_tag = SWE }
		available = {
			NOT = { has_country_flag = SWE_ongoing_rallying }
			has_elections = yes
		}
		visible = {
			tag = SWE
			date < 2002.09.15
		}

		fire_only_once = no

		cost = 25
		days_remove = 90
		modifier = {
			political_power_gain = -0.20
		}

		days_re_enable = 25

		ai_will_do = {
			factor = 0
		}
		
		complete_effect = {
			set_country_flag = SWE_ongoing_rallying
		}

		remove_effect = {
			add_popularity = { ideology = reactionary popularity = 0.05 }
			clr_country_flag = SWE_ongoing_rallying
		}
	}

}

SWE_nordas_decisions = {

start_influencing_campaign = {
    icon = GFX_decision_NOR_deploy_prep_comm_1
    fire_only_once = no
	cost = 25
    days_remove = 180
    available = {
        NOT = {
            has_country_flag = SWE_influencing_campaign_start
        }
    }
	visible = {
		has_completed_focus = SWE_nordas
	}
    complete_effect = {
        set_country_flag = SWE_influencing_campaign_start
        FROM = {
         add_ideas = SWE_nordas_pressure
        }
    }
    targets_dynamic = yes
    target_trigger = {
        FROM = {
            is_neighbor_of = SWE
        }
    }

	remove_effect = {
			clr_country_flag = SWE_influencing_campaign_start
			FROM = {
         remove_ideas = SWE_nordas_pressure
        }
		}
}

SWE_coup_decision = {
    icon = GFX_decision_generic_civil_support
    fire_only_once = yes
	cost = 100
    days_remove = 1
    available = {
        NOT = {
            has_country_flag = SWE_influencing_campaign_start
        }
		FROM = {
				custom_trigger_tooltip = {
		tooltip = SWE_abandon_capitalism_trigger_tooltip
		set_temp_variable = { SWE_lw_support = party_popularity@democratic_socialist }
		  add_to_temp_variable = { SWE_lw_support = party_popularity@communist }
		  check_variable = { SWE_lw_support > 0.5 } }
		is_ai = yes
		}
    }
	visible = {
		has_completed_focus = SWE_nordas
	}
    complete_effect = {
		FROM = {
		set_politics = {
    ruling_party = democratic_socialist
    elections_allowed = no
    election_frequency = 48
} 
}
    }
    targets_dynamic = yes
    target_trigger = {
        FROM = {
            is_neighbor_of = SWE
        }
    }

}

SWE_revolution_decision = {
    icon = GFX_decision_generic_ignite_civil_war
    fire_only_once = yes
	cost = 50
    days_remove = 1
    available = {
        NOT = {
            has_country_flag = SWE_influencing_campaign_start
        }
		FROM = {
			OR ={
				custom_trigger_tooltip = {
		tooltip = SWE_abandon_capitalism_trigger_tooltip
		set_temp_variable = { SWE_lw_support = party_popularity@democratic_socialist }
		  add_to_temp_variable = { SWE_lw_support = party_popularity@communist }
		  check_variable = { SWE_lw_support > 0.35 } }
				has_stability < 0.5
			}
		}
    }
	visible = {
		has_completed_focus = SWE_nordas
	}
    complete_effect = {
		FROM = {
		start_civil_war = {
    ideology = democratic_socialist
    size = 0.1
    army_ratio = 0.5
    navy_ratio = 0
    air_ratio = 1
    keep_all_characters = yes
} 
}
        SWE = {
            declare_war_on = {
                target = FROM
                type = puppet_wargoal_focus
            }
        }
    }
    targets_dynamic = yes
    target_trigger = {
        FROM = {
            is_neighbor_of = SWE
        }
    }

	remove_effect = {
			
        }
}
}