fascism_on_the_rise = {
	prepare_for_fascist_civil_war = {

		icon = generic_prepare_civil_war

		available = {
			fascism > 0.1
		}

		visible = {
			NOT = { has_country_flag = preparation_for_fascist_civil_war }
			has_idea_with_trait = fascist_demagogue
			check_has_focus_tree_to_switch_to_fascism = yes
			NOT = { has_government = fascism }
		}
		
		fire_only_once = yes
		
		cost = 50
		
		complete_effect = {
			set_country_flag = preparation_for_fascist_civil_war
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	
	expand_civil_fascism_support = {

		icon = generic_civil_support

		visible = {
			OR = {
				has_country_flag = preparation_for_fascist_civil_war
				has_country_flag = open_up_political_discourse_fascism
			}
			has_idea_with_trait = fascist_demagogue
			check_has_focus_tree_to_switch_to_fascism = yes
			NOT = { has_government = fascism }
		}
		
		fire_only_once = no
		
		cost = 25

		days_remove = 30

		modifier = {
			fascism_drift = 0.02
			stability_weekly = -0.02
 			political_power_gain = -0.2
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	army_support_for_fascist_civil_war = {

		icon = generic_army_support

		visible = {
			has_country_flag = preparation_for_fascist_civil_war
			has_idea_with_trait = fascist_demagogue
			check_has_focus_tree_to_switch_to_fascism = yes
			NOT = { has_government = fascism }
		}
	
		fire_only_once = no
	
		cost = 50

		days_remove = 30

		modifier = {
			command_power_gain = -0.02
		}

		remove_effect = {
			if = {
				limit = {
					check_variable = { var = army_support_var value = 0.1 compare = less_than }
				}
				set_variable = { var = army_support_var value = 0.1 } 
			}
			if = {
				limit = {
					check_variable = { var = army_support_var value = 0.1 compare = greater_than_or_equals }
				}
				add_to_variable = { var = army_support_var value = 0.1 } 
			}
			set_country_flag = military_support_for_fascist_civil_war
		}
		
		complete_effect = {
		}
		
		ai_will_do = {
			factor = 0
		}
	}

	ensure_general_loyalty_for_fascist_civil_war = {

		icon = generic_army_support

		available = {
			has_country_flag = military_support_for_fascist_civil_war
		}

		visible = {
			has_country_flag = preparation_for_fascist_civil_war
			has_idea_with_trait = fascist_demagogue
			any_army_leader = {
				NOT = { has_trait = hidden_sympathies }
			}
			check_has_focus_tree_to_switch_to_fascism = yes
			NOT = { has_government = fascism }
		}
	
		fire_only_once = yes
	
		cost = 50
		
		complete_effect = {
			country_event = { id = decisions.1 }
		}
		
		ai_will_do = {
			factor = 0
		}
	}

	ensure_marshal_loyalty_for_fascist_civil_war = {

		icon = generic_army_support

		available = {
			has_country_flag = military_support_for_fascist_civil_war
		}

		visible = {
			has_country_flag = preparation_for_fascist_civil_war
			has_idea_with_trait = fascist_demagogue
			any_army_leader = {
				NOT = { has_trait = hidden_sympathies }
			}
			check_has_focus_tree_to_switch_to_fascism = yes
			NOT = { has_government = fascism }
		}
	
		fire_only_once = yes
	
		cost = 50
		
		complete_effect = {
			country_event = { id = decisions.2 }
		}
		
		ai_will_do = {
			factor = 0
		}
	}

	siphon_equipment_stockpiles_for_fascist_civil_war = {

		icon = generic_prepare_civil_war

		available = {
			has_country_flag = military_support_for_fascist_civil_war
			has_equipment = { infantry_equipment > 1000 }
			command_power > 2
		}

		visible = {
			has_country_flag = preparation_for_fascist_civil_war
			has_country_flag = military_support_for_fascist_civil_war
			has_idea_with_trait = fascist_demagogue
			check_has_focus_tree_to_switch_to_fascism = yes
			NOT = { has_government = fascism }
		}
	
		fire_only_once = no
	
		cost = 50
		
		complete_effect = {
			add_command_power = -2
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
			set_country_flag = siphoned_equipment_stockpiles_for_civil_war
		}
		
		ai_will_do = {
			factor = 0
		}
	}

	formulate_surprise_attack_plan_for_fascist_civil_war = {

		icon = generic_army_support

		available = {
			has_country_flag = military_support_for_fascist_civil_war
			command_power > 2
		}

		visible = {
			has_country_flag = preparation_for_fascist_civil_war
			has_idea_with_trait = fascist_demagogue
			check_has_focus_tree_to_switch_to_fascism = yes
			NOT = { has_government = fascism }
		}
	
		fire_only_once = yes
	
		cost = 50
		
		complete_effect = {
			add_command_power = -2
			custom_effect_tooltip = formulate_surprise_attack_plan_for_civil_war_tt
			set_country_flag = formulated_surprise_attack_plan_for_civil_war
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	
	ignite_the_fascist_civil_war = {

		icon = generic_ignite_civil_war

		available = {
			has_stability < 0.5
		}

		visible = {
			has_country_flag = preparation_for_fascist_civil_war
			has_idea_with_trait = fascist_demagogue
			check_has_focus_tree_to_switch_to_fascism = yes
			NOT = { has_government = fascism }
		}
	
		fire_only_once = yes
	
		cost = 50
		
		complete_effect = {
			if = {
				limit = {
					has_government = democratic
				}
				set_variable = {
					var = civil_war_size_var
					value = party_popularity@democratic
				}
			}
			if = {
				limit = {
					has_government = communism
				}
				set_variable = {
					var = civil_war_size_var
					value = party_popularity@communism
				}
			}
			if = {
				limit = {
					has_government = neutrality
				}
				set_variable = {
					var = civil_war_size_var
					value = party_popularity@neutrality
				}
			}
			subtract_from_variable = {
				var = civil_war_size_var
				value = army_support_var
			}
			if = {
				limit = {
					check_variable = {
						var = civil_war_size_var
						value = 0.3
						compare = less_than
					}
				}
				set_variable = {
					var = civil_war_size_var
					value = 0.3
				}
			}
			start_civil_war = {
				ruling_party = fascism
				ideology = ROOT
				size = civil_war_size_var
				keep_unit_leaders_trigger = {
					has_trait = hidden_sympathies
				}
			}
			clr_country_flag = preparation_for_fascism_civil_war
			clr_country_flag = military_support_for_fascism_civil_war
			clr_country_flag = civil_support_for_fascism_civil_war
			set_country_flag = ideology_civil_war
		}
		
		ai_will_do = {
			factor = 0
		}
	}

	open_up_political_discourse_fascism = {

		icon = generic_political_discourse

		available = {
			fascism < 0.9
			democratic < 0.9
			communism < 0.9
			neutrality < 0.9
		}

		visible = {
			has_idea_with_trait = fascist_demagogue
			NOT = { has_country_flag = open_up_political_discourse_fascism }
			check_has_focus_tree_to_switch_to_fascism = yes
			NOT = { has_government = fascism }
		}
		
		remove_trigger = {
			has_government = fascism
		}
		
		fire_only_once = yes
		
		cost = 75
		
		complete_effect = {
			set_country_flag = open_up_political_discourse_fascism
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	discredit_government_fascism = {

		icon = generic_political_discourse

		available = {
			fascism < 0.8
			democratic < 0.8
			communism < 0.8
			neutrality < 0.8
			has_idea_with_trait = fascist_demagogue
		}

		visible = {
			has_country_flag = open_up_political_discourse_fascism
			check_has_focus_tree_to_switch_to_fascism = yes
			NOT = { has_government = fascism }
		}
		
		remove_trigger = {
			has_government = fascism
		}
		
		fire_only_once = yes
		
		cost = 50
		
		complete_effect = {
			add_stability = -0.010
			if = {
				limit = {
					has_government = democratic
				}
				add_popularity = {
					ideology = democratic
					popularity = -0.1
				}
			}
			if = {
				limit = {
					has_government = communism
				}
				add_popularity = {
					ideology = communism
					popularity = -0.1
				}
			}
			if = {
				limit = {
					has_government = neutrality
				}
				add_popularity = {
					ideology = neutrality
					popularity = -0.1
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	hold_the_fascist_national_referendum = {

		icon = generic_political_discourse

		visible = {
			fascism > 0.5
			NOT = { has_government = fascism }
			check_has_focus_tree_to_switch_to_fascism = yes
		}
		
		remove_trigger = {
			has_government = fascism
		}
		
		fire_only_once = yes
		
		cost = 100
		
		complete_effect = {
			country_event = { id = political.18 }
		}
		
		ai_will_do = {
			factor = 210
			modifier = {
				fascism > 0.6
				factor = 10
			}
		}
	}
}

democratic_on_the_rise = {
	prepare_for_democratic_civil_war = {

		icon = generic_prepare_civil_war

		available = {
			democratic > 0.1
		}

		visible = {
			NOT = { has_country_flag = preparation_for_democratic_civil_war }
			has_idea_with_trait = democratic_reformer
			check_has_focus_tree_to_switch_to_democratic = yes
			NOT = { has_government = democratic }
		}
		
		fire_only_once = yes
		
		cost = 50
		
		complete_effect = {
			set_country_flag = preparation_for_democratic_civil_war
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	
	expand_civil_democratic_support = {

		icon = generic_civil_support

		visible = {
			OR = {
				has_country_flag = preparation_for_democratic_civil_war
				has_country_flag = open_up_political_discourse_democratic
			}
			has_idea_with_trait = democratic_reformer
			check_has_focus_tree_to_switch_to_democratic = yes
			NOT = { has_government = democratic }
		}
		
		fire_only_once = no
		
		cost = 25

		days_remove = 30

		modifier = {
			democratic_drift = 0.02
			stability_weekly = -0.02
 			political_power_gain = -0.2
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	army_support_for_democratic_civil_war = {

		icon = generic_army_support

		visible = {
			has_country_flag = preparation_for_democratic_civil_war
			has_idea_with_trait = democratic_reformer
			check_has_focus_tree_to_switch_to_democratic = yes
			NOT = { has_government = democratic }
		}
	
		fire_only_once = no
	
		cost = 50

		days_remove = 30

		modifier = {
			command_power_gain = -0.02
		}

		remove_effect = {
			if = {
				limit = {
					check_variable = { var = army_support_var value = 0.1 compare = less_than }
				}
				set_variable = { var = army_support_var value = 0.1 } 
			}
			if = {
				limit = {
					check_variable = { var = army_support_var value = 0.1 compare = greater_than_or_equals }
				}
				add_to_variable = { var = army_support_var value = 0.1 } 
			}
			set_country_flag = military_support_for_democratic_civil_war
		}
		
		complete_effect = {
		}
		
		ai_will_do = {
			factor = 0
		}
	}

	ensure_general_loyalty_for_democratic_civil_war = {

		icon = generic_army_support

		available = {
			has_country_flag = military_support_for_democratic_civil_war
			command_power > 2
		}

		visible = {
			has_country_flag = preparation_for_democratic_civil_war
			has_idea_with_trait = democratic_reformer
			any_army_leader = {
				NOT = { has_trait = hidden_sympathies }
			}
			check_has_focus_tree_to_switch_to_democratic = yes
			NOT = { has_government = democratic }
		}
	
		fire_only_once = yes
	
		cost = 50
		
		complete_effect = {
			country_event = { id = decisions.1 }
		}
		
		ai_will_do = {
			factor = 0
		}
	}

	ensure_marshal_loyalty_for_democratic_civil_war = {

		icon = generic_army_support

		available = {
			has_country_flag = military_support_for_democratic_civil_war
			command_power > 2
		}

		visible = {
			has_country_flag = preparation_for_democratic_civil_war
			has_idea_with_trait = democratic_reformer
			any_army_leader = {
				NOT = { has_trait = hidden_sympathies }
			}
			check_has_focus_tree_to_switch_to_democratic = yes
			NOT = { has_government = democratic }
		}
	
		fire_only_once = yes
	
		cost = 50
		
		complete_effect = {
			country_event = { id = decisions.2 }
		}
		
		ai_will_do = {
			factor = 0
		}
	}

	siphon_equipment_stockpiles_for_democratic_civil_war = {

		icon = generic_prepare_civil_war

		available = {
			has_country_flag = military_support_for_democratic_civil_war
			has_equipment = { infantry_equipment > 1000 }
			command_power > 2
		}

		visible = {
			has_country_flag = preparation_for_democratic_civil_war
			has_country_flag = military_support_for_democratic_civil_war
			has_idea_with_trait = democratic_reformer
			check_has_focus_tree_to_switch_to_democratic = yes
			NOT = { has_government = democratic }
		}
	
		fire_only_once = no
	
		cost = 50
		
		complete_effect = {
			add_command_power = -2
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
			set_country_flag = siphoned_equipment_stockpiles_for_civil_war
		}
		
		ai_will_do = {
			factor = 0
		}
	}

	formulate_surprise_attack_plan_for_democratic_civil_war = {

		icon = generic_army_support

		available = {
			has_country_flag = military_support_for_democratic_civil_war
			command_power > 2
		}

		visible = {
			has_country_flag = preparation_for_democratic_civil_war
			has_idea_with_trait = democratic_reformer
			check_has_focus_tree_to_switch_to_democratic = yes
			NOT = { has_government = democratic }
		}
	
		fire_only_once = yes
	
		cost = 50
		
		complete_effect = {
			add_command_power = -2
			custom_effect_tooltip = formulate_surprise_attack_plan_for_civil_war_tt
			set_country_flag = formulated_surprise_attack_plan_for_civil_war
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	
	ignite_the_democratic_civil_war = {

		icon = generic_ignite_civil_war

		available = {
			has_stability < 0.5
		}

		visible = {
			has_country_flag = preparation_for_democratic_civil_war
			has_idea_with_trait = democratic_reformer
			check_has_focus_tree_to_switch_to_democratic = yes
			NOT = { has_government = democratic }
		}
	
		fire_only_once = yes
	
		cost = 50
		
		complete_effect = {
			if = {
				limit = {
					has_government = fascism
				}
				set_variable = {
					var = civil_war_size_var
					value = party_popularity@fascism
				}
			}
			if = {
				limit = {
					has_government = communism
				}
				set_variable = {
					var = civil_war_size_var
					value = party_popularity@communism
				}
			}
			if = {
				limit = {
					has_government = neutrality
				}
				set_variable = {
					var = civil_war_size_var
					value = party_popularity@neutrality
				}
			}
			subtract_from_variable = {
				var = civil_war_size_var
				value = army_support_var
			}
			if = {
				limit = {
					check_variable = {
						var = civil_war_size_var
						value = 0.3
						compare = less_than
					}
				}
				set_variable = {
					var = civil_war_size_var
					value = 0.3
				}
			}
			start_civil_war = {
				ruling_party = democratic
				ideology = ROOT
				size = civil_war_size_var
				keep_unit_leaders_trigger = {
					has_trait = hidden_sympathies
				}
			}
			clr_country_flag = preparation_for_democratic_civil_war
			clr_country_flag = military_support_for_democratic_civil_war
			clr_country_flag = civil_support_for_democratic_civil_war
		}
		
		ai_will_do = {
			factor = 0
		}
	}

	open_up_political_discourse_democratic = {

		icon = generic_political_discourse

		available = {
			fascism < 0.9
			democratic < 0.9
			communism < 0.9
			neutrality < 0.9
		}

		visible = {
			has_idea_with_trait = democratic_reformer
			check_has_focus_tree_to_switch_to_democratic = yes
			NOT = { has_government = democratic }
		}
		
		remove_trigger = {
			has_government = democratic
		}
		
		fire_only_once = yes
		
		cost = 75
		
		complete_effect = {
			set_country_flag = open_up_political_discourse_democratic
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	discredit_government_democratic = {

		icon = generic_political_discourse

		available = {
			fascism < 0.8
			democratic < 0.8
			communism < 0.8
			neutrality < 0.8
			has_idea_with_trait = democratic_reformer
		}

		visible = {
			has_country_flag = open_up_political_discourse_democratic
			check_has_focus_tree_to_switch_to_democratic = yes
			NOT = { has_government = democratic }
		}
		
		remove_trigger = {
			has_government = democratic
		}
		
		fire_only_once = yes
		
		cost = 50
		
		complete_effect = {
			add_stability = -0.010
			if = {
				limit = {
					has_government = fascism
				}
				add_popularity = {
					ideology = fascism
					popularity = -0.1
				}
			}
			if = {
				limit = {
					has_government = communism
				}
				add_popularity = {
					ideology = communism
					popularity = -0.1
				}
			}
			if = {
				limit = {
					has_government = neutrality
				}
				add_popularity = {
					ideology = neutrality
					popularity = -0.1
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	hold_the_democratic_national_referendum = {

		icon = generic_political_discourse

		visible = {
			democratic > 0.5
			NOT = { has_government = democratic }
			check_has_focus_tree_to_switch_to_democratic = yes
		}
		
		remove_trigger = {
			has_government = democratic
		}
		
		fire_only_once = yes
		
		cost = 100
		
		complete_effect = {
			country_event = { id = political.20 }
		}
		
		ai_will_do = {
			factor = 210
			modifier = {
				democratic > 0.6
				factor = 10
			}
		}
	}
}

communism_on_the_rise = {
	prepare_for_communist_civil_war = {

		icon = generic_prepare_civil_war

		available = {
			communism > 0.1
		}

		visible = {
			NOT = { has_country_flag = preparation_for_communism_civil_war }
			has_idea_with_trait = communist_revolutionary
			check_has_focus_tree_to_switch_to_communism = yes
			NOT = { has_government = communism }
		}
		
		fire_only_once = yes
		
		cost = 50
		
		complete_effect = {
			set_country_flag = preparation_for_communist_civil_war
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	
	expand_civil_communist_support = {

		icon = generic_civil_support

		visible = {
			OR = {
				has_country_flag = preparation_for_communist_civil_war
				has_country_flag = open_up_political_discourse_communism
			}
			has_idea_with_trait = communist_revolutionary
			check_has_focus_tree_to_switch_to_communism = yes
			NOT = { has_government = communism }
		}
		
		fire_only_once = no
		
		cost = 25

		days_remove = 30

		modifier = {
			communism_drift = 0.02
			stability_weekly = -0.02
 			political_power_gain = -0.2
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	army_support_for_communist_civil_war = {

		icon = generic_army_support

		visible = {
			has_country_flag = preparation_for_communist_civil_war
			has_idea_with_trait = communist_revolutionary
			check_has_focus_tree_to_switch_to_communism = yes
			NOT = { has_government = communism }
		}
	
		fire_only_once = no
	
		cost = 50

		days_remove = 30

		modifier = {
			command_power_gain = -0.02
		}

		remove_effect = {
			if = {
				limit = {
					check_variable = { var = army_support_var value = 0.1 compare = less_than }
				}
				set_variable = { var = army_support_var value = 0.1 } 
			}
			if = {
				limit = {
					check_variable = { var = army_support_var value = 0.1 compare = greater_than_or_equals }
				}
				add_to_variable = { var = army_support_var value = 0.1 } 
			}
			set_country_flag = military_support_for_communist_civil_war
		}
		
		complete_effect = {
		}
		
		ai_will_do = {
			factor = 0
		}
	}

	ensure_general_loyalty_for_communist_civil_war = {

		icon = generic_army_support

		available = {
			has_country_flag = military_support_for_communist_civil_war
			command_power > 2
		}

		visible = {
			has_country_flag = preparation_for_communist_civil_war
			has_idea_with_trait = communist_revolutionary
			any_army_leader = {
				NOT = { has_trait = hidden_sympathies }
			}
			check_has_focus_tree_to_switch_to_communism = yes
			NOT = { has_government = communism }
		}
	
		fire_only_once = yes
	
		cost = 50
		
		complete_effect = {
			country_event = { id = decisions.1 }
		}
		
		ai_will_do = {
			factor = 0
		}
	}

	ensure_marshal_loyalty_for_communist_civil_war = {

		icon = generic_army_support

		available = {
			has_country_flag = military_support_for_communist_civil_war
			command_power > 2
		}

		visible = {
			has_country_flag = preparation_for_communist_civil_war
			has_idea_with_trait = communist_revolutionary
			any_army_leader = {
				NOT = { has_trait = hidden_sympathies }
			}
			check_has_focus_tree_to_switch_to_communism = yes
			NOT = { has_government = communism }
		}
	
		fire_only_once = yes
	
		cost = 50
		
		complete_effect = {
			country_event = { id = decisions.2 }
		}
		
		ai_will_do = {
			factor = 0
		}
	}

	siphon_equipment_stockpiles_for_communist_civil_war = {

		icon = generic_prepare_civil_war

		available = {
			has_country_flag = military_support_for_communist_civil_war
			has_equipment = { infantry_equipment > 1000 }
			command_power > 2
		}

		visible = {
			has_country_flag = preparation_for_communist_civil_war
			has_country_flag = military_support_for_communist_civil_war
			has_idea_with_trait = communist_revolutionary
			check_has_focus_tree_to_switch_to_communism = yes
			NOT = { has_government = communism }
		}
	
		fire_only_once = no
	
		cost = 50
		
		complete_effect = {
			add_command_power = -2
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
			set_country_flag = siphoned_equipment_stockpiles_for_civil_war
		}
		
		ai_will_do = {
			factor = 0
		}
	}

	formulate_surprise_attack_plan_for_communist_civil_war = {

		icon = generic_army_support

		available = {
			has_country_flag = military_support_for_communist_civil_war
			command_power > 2
		}

		visible = {
			has_country_flag = preparation_for_communist_civil_war
			has_idea_with_trait = communist_revolutionary
			check_has_focus_tree_to_switch_to_communism = yes
			NOT = { has_government = communism }
		}
	
		fire_only_once = yes
	
		cost = 50
		
		complete_effect = {
			add_command_power = -2
			custom_effect_tooltip = formulate_surprise_attack_plan_for_civil_war_tt
			set_country_flag = formulated_surprise_attack_plan_for_civil_war
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	
	ignite_the_communist_civil_war = {

		icon = generic_ignite_civil_war

		available = {
			has_stability < 0.5
		}

		visible = {
			has_country_flag = preparation_for_communist_civil_war
			has_idea_with_trait = communist_revolutionary
			check_has_focus_tree_to_switch_to_communism = yes
			NOT = { has_government = communism }
		}
	
		fire_only_once = yes
	
		cost = 50
		
		complete_effect = {
			if = {
				limit = {
					has_government = fascism
				}
				set_variable = {
					var = civil_war_size_var
					value = party_popularity@fascism
				}
			}
			if = {
				limit = {
					has_government = democratic
				}
				set_variable = {
					var = civil_war_size_var
					value = party_popularity@democratic
				}
			}
			if = {
				limit = {
					has_government = neutrality
				}
				set_variable = {
					var = civil_war_size_var
					value = party_popularity@neutrality
				}
			}
			subtract_from_variable = {
				var = civil_war_size_var
				value = army_support_var
			}
			if = {
				limit = {
					check_variable = {
						var = civil_war_size_var
						value = 0.3
						compare = less_than
					}
				}
				set_variable = {
					var = civil_war_size_var
					value = 0.3
				}
			}
			start_civil_war = {
				ruling_party = communism
				ideology = ROOT
				size = civil_war_size_var
				keep_unit_leaders_trigger = {
					has_trait = hidden_sympathies
				}				
			}
			clr_country_flag = preparation_for_communist_civil_war
			clr_country_flag = military_support_for_communist_civil_war
			clr_country_flag = civil_support_for_communist_civil_war
		}
		
		ai_will_do = {
			factor = 0
		}
	}

	open_up_political_discourse_communist = {

		icon = generic_political_discourse

		available = {
			fascism < 0.9
			democratic < 0.9
			communism < 0.9
			neutrality < 0.9
		}

		visible = {
			has_idea_with_trait = communist_revolutionary
			check_has_focus_tree_to_switch_to_communism = yes
			NOT = { has_government = communism }
		}
		
		remove_trigger = {
			has_government = communism
		}
		
		fire_only_once = yes
		
		cost = 75
		
		complete_effect = {
			set_country_flag = open_up_political_discourse_communist
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	discredit_government_communism = {

		icon = generic_political_discourse

		available = {
			fascism < 0.8
			democratic < 0.8
			communism < 0.8
			neutrality < 0.8
			has_idea_with_trait = communist_revolutionary
		}

		visible = {
			has_country_flag = open_up_political_discourse_communist
			check_has_focus_tree_to_switch_to_communism = yes
			NOT = { has_government = communism }
		}
		
		remove_trigger = {
			has_government = communism
		}
		
		fire_only_once = yes
		
		cost = 50
		
		complete_effect = {
			add_stability = -0.010
			if = {
				limit = {
					has_government = fascism
				}
				add_popularity = {
					ideology = fascism
					popularity = -0.1
				}
			}
			if = {
				limit = {
					has_government = democratic
				}
				add_popularity = {
					ideology = democratic
					popularity = -0.1
				}
			}
			if = {
				limit = {
					has_government = neutrality
				}
				add_popularity = {
					ideology = neutrality
					popularity = -0.1
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	hold_the_communist_national_referendum = {

		icon = generic_political_discourse

		visible = {
			communism > 0.5
			NOT = { has_government = communism }
			check_has_focus_tree_to_switch_to_communism = yes
		}
		
		remove_trigger = {
			has_government = communism
		}
		
		fire_only_once = yes
		
		cost = 100
		
		complete_effect = {
			country_event = { id = political.19 }
		}
		
		ai_will_do = {
			factor = 210
			modifier = {
				communism > 0.6
				factor = 10
			}
		}
	}
}

political_actions = {
	give_refuge_ger = {

		icon = generic_research

        allowed = {
            OR = {
                original_tag = AUS
                original_tag = USA
#               original_tag = CAN
            }
#           NOT = { has_government = fascism }
#           NOT = { has_government = communism }
        }
        cost = 150
        fire_only_once = yes
        
        days_remove = -1

        available = {
            NOT = { country_exists = FIN }
        }

        modifier = {
            research_speed_factor = 0.05
#           stability_factor = -0.05
        }

        remove_trigger = {
              AND = {
                   country_exists = FIN
                   FIN = { has_government = ROOT }
              }
        }

        ai_will_do = {
			factor = 30
		}
    }

    give_refuge_ita = {

    	icon = generic_research

        allowed = {
            OR = {
#               original_tag = ENG
                original_tag = USA
#               original_tag = FRA
#               original_tag = CAN
            }
        }
        cost = 100
        fire_only_once = yes
        days_remove = -1

        available = {
            ITA = { NOT = { has_government = ROOT } }
        }

        modifier = {
            research_speed_factor = 0.03
            stability_factor = -0.05
        }

        remove_trigger = {
            ITA = { has_government = ROOT }
        }
        ai_will_do = {
			factor = 1
		}
    }

    anti_fascist_raids = {

    	icon = generic_civil_support

    	visible = {
			NOT = { has_government = fascism }
		}

		available = {
            fascism > 0.1
        }
	
		modifier = {
			fascism_drift = -0.05
			stability_weekly = 0.007
		}
	
		days_remove = 120
		cost = 50

		complete_effect = {
			add_stability = -0.1
		}
		
		remove_effect = {
		}
		
		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				tag = AUS
				fascism > 0.45
				is_historical_focus_on = no
			}
			modifier = {
				add = 10
				tag = AUS
				fascism > 0.45
			}
			modifier = {
				add = 10
				tag = AUS
				fascism > 0.45
				has_completed_focus = liberty_ethos
			}
		}
    }

    anti_democratic_raids = {

    	icon = generic_civil_support

    	visible = {
			NOT = { has_government = democratic }
		}

		available = {
            democratic > 0.1
        }
	
		modifier = {
			democratic_drift = -0.05
			stability_weekly = 0.007
		}
	
		days_remove = 120
		cost = 50

		complete_effect = {
			add_stability = -0.1
		}
		
		remove_effect = {
		}
		
		ai_will_do = {
			factor = 0
		}
    }

    anti_communist_raids = {

    	icon = generic_civil_support

    	visible = {
			NOT = { has_government = communism }
		}

		available = {
            communism > 0.1
        }
	
		modifier = {
			communism_drift = -0.05
			stability_weekly = 0.007
		}
	
		days_remove = 120
		cost = 50

		complete_effect = {
			add_stability = -0.1
		}
		
		remove_effect = {
		}
		
		ai_will_do = {
			factor = 0
		}
    }
    
	ban_fascist_party = {

		icon = generic_civil_support

		available = {
			fascism < 0.2
		}

		visible = {
			NOT = { has_government = fascism }
			fascism > 0
		}

		remove_trigger = {
			hidden_trigger = {
				has_government = fascism
			}
		}
	
		modifier = {
			fascism_drift = -0.02
		}
	
		days_remove = -1
		cost = 100
		
		complete_effect = {
			hidden_effect = {
				set_temp_variable = {
					var = ban_ideology_var
					value = party_popularity@fascism
				}
				multiply_temp_variable = {
					var = ban_ideology_var
					value = -1
				}
				add_popularity = {
					ideology = fascism
					popularity = ban_ideology_var
				}
				multiply_temp_variable = {
					var = ban_ideology_var
					value = 0.66
				}				
			}
			custom_effect_tooltip = ban_fascist_party_tt
			add_stability = ban_ideology_var
		}
	}

	ban_democratic_party = {

		icon = generic_civil_support

		available = {
			democratic < 0.2
		}

		visible = {
			NOT = { has_government = democratic }
			democratic > 0
		}

		remove_trigger = {
			hidden_trigger = {
				has_government = democratic
			}
		}
	
		modifier = {
			democratic_drift = -0.02
		}
	
		days_remove = -1
		cost = 100
		
		complete_effect = {
			hidden_effect = {
				set_temp_variable = {
					var = ban_ideology_var
					value = party_popularity@democratic
				}
				multiply_temp_variable = {
					var = ban_ideology_var
					value = -1
				}
				add_popularity = {
					ideology = democratic
					popularity = ban_ideology_var
				}
				multiply_temp_variable = {
					var = ban_ideology_var
					value = 0.66
				}				
			}
			custom_effect_tooltip = ban_democratic_party_tt
			add_stability = ban_ideology_var
		}
	}
	
	ban_communist_party = {

		icon = generic_civil_support

		available = {
			communism < 0.2
		}

		visible = {
			NOT = { has_government = communism }
			communism > 0
		}

		remove_trigger = {
			hidden_trigger = {
				has_government = communism
			}
		}
	
		modifier = {
			communism_drift = -0.02
		}
	
		days_remove = -1
		cost = 100
		
		complete_effect = {
			hidden_effect = {
				set_temp_variable = {
					var = ban_ideology_var
					value = party_popularity@communism
				}
				multiply_temp_variable = {
					var = ban_ideology_var
					value = -1
				}
				add_popularity = {
					ideology = communism
					popularity = ban_ideology_var
				}
				multiply_temp_variable = {
					var = ban_ideology_var
					value = 0.66
				}				
			}
			custom_effect_tooltip = ban_communist_party_tt
			add_stability = ban_ideology_var
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	
	institute_press_censorship_fascist_state = {

		icon = generic_political_discourse

		visible = {
			has_government = fascism
		}
	
		modifier = {
			communism_drift = -0.01
			fascism_drift = 0.03
			democratic_drift = -0.01
			neutrality_drift = -0.01
		}
	
		days_remove = 360
		cost = 150
	
		ai_will_do = {
			factor = 0
		}
	}
	
	institute_press_censorship_democratic_state = {

		icon = generic_political_discourse

		visible = {
			has_government = democratic
		}
		
		modifier = {
			communism_drift = -0.01
			fascism_drift = -0.01
			democratic_drift = 0.03
			neutrality_drift = -0.01
		}
	
		days_remove = 360
		cost = 150
	
		ai_will_do = {
			factor = 0
		}
	}
	
	institute_press_censorship_communist_state = {

		icon = generic_political_discourse

		visible = {
			has_government = communism
		}
	
		modifier = {
			communism_drift = 0.03
			fascism_drift = -0.01
			democratic_drift = -0.01
			neutrality_drift = -0.01
		}
	
		days_remove = 360
		cost = 150
		
		ai_will_do = {
			factor = 0
		}
	}
	
	institute_press_censorship_neutrality_state = {

		icon = generic_political_discourse

		visible = {
			has_government = neutrality
		}
	
		modifier = {
			communism_drift = -0.01
			fascism_drift = -0.01
			democratic_drift = -0.01
			neutrality_drift = 0.03
		}
	
		days_remove = 360
		cost = 150
		
		ai_will_do = {
			factor = 0
		}
	}
}