BLR_socdem_remove_soviet_shit = {
	if = {
		limit = { has_idea = BLR_post_soviet_economy }
		swap_ideas = {
			remove_idea = BLR_post_soviet_economy
			add_idea = BLR_economic_desovietification
		}
	}
	else_if = {
		limit = { has_idea = BLR_economic_desovietification }

		swap_ideas = {
			remove_idea = BLR_economic_desovietification
			add_idea = BLR_economic_desovietification_2
		}
	}
	else_if = {
		limit = { has_idea = BLR_economic_desovietification_2 }

		swap_ideas = {
			remove_idea = BLR_economic_desovietification_2
			add_idea = BLR_economic_desovietification_3
		}
	}
	else_if = {
		limit = { has_idea = BLR_economic_desovietification_3 }
		remove_ideas = BLR_economic_desovietification_3
	}
}

BLR_conservative_undo_soviet_shit = {
	if = {
		limit = { has_idea = BLR_post_soviet_economy }
		swap_ideas = {
			remove_idea = BLR_post_soviet_economy
			add_idea = BLR_economic_desovietification
		}
	}
	else_if = {
		limit = { has_idea = BLR_economic_desovietification }

		swap_ideas = {
			remove_idea = BLR_economic_desovietification
			add_idea = BLR_economic_desovietification_2
		}
	}
	else_if = {
		limit = { has_idea = BLR_economic_desovietification_2 }

		swap_ideas = {
			remove_idea = BLR_economic_desovietification_2
			add_idea = BLR_economic_desovietification_3
		}
	}
	else_if = {
		limit = { has_idea = BLR_economic_desovietification_3 }

		swap_ideas = {
			remove_idea = BLR_economic_desovietification_3
			add_idea = BLR_an_independent_economy
		}
	}
	
	else_if = {
		limit = { has_idea = BLR_an_independent_economy }

		swap_ideas = {
			remove_idea = BLR_an_independent_economy
			add_idea = BLR_an_independent_economy_2
		}
	}
	
	else_if = {
		limit = { has_idea = BLR_an_independent_economy_2 }

		swap_ideas = {
			remove_idea = BLR_an_independent_economy_2
			add_idea = BLR_an_independent_economy_3
		}
	}
}

BLR_good_relations_with_russian_minority_improve_effect = {
	if = {
		limit = { has_idea = BLR_good_relations_with_russian_minority }
		swap_ideas = {
			remove_idea = BLR_good_relations_with_russian_minority
			add_idea = BLR_good_relations_with_russian_minority_2
		}
	}
	else_if = {
		limit = { has_idea = BLR_good_relations_with_russian_minority_2 }

		swap_ideas = {
			remove_idea = BLR_good_relations_with_russian_minority_2
			add_idea = BLR_good_relations_with_russian_minority_3
		}
	}
}

BLR_start_up_union_state_stuff = {
	set_global_flag = BLR_union_state_decisions_unlocked #unlocks decisions for both Belarus and Russia
	custom_effect_tooltip = BLR_union_state_decisions_unlocked_tt
	hidden_effect = {
		set_variable = { global.BLR_Belarussian_influence_union_state = 30 }
		set_variable = { global.BLR_Russian_influence_union_state = 70 }
	}
}

BLR_increase_belarusian_influence_by_2_5 = {
	custom_effect_tooltip = BLR_increase_belarusian_influence_by_2_5_tt

	add_to_variable = {
		var = global.BLR_Russian_influence_union_state
		value = -2.5
	}
	clamp_variable = { var = global.BLR_Russian_influence_union_state min = 0 max = 100 }
	add_to_variable = {
		var = global.BLR_Belarussian_influence_union_state
		value = 2.5
	}
	clamp_variable = { var = global.BLR_Belarussian_influence_union_state min = 0 max = 100 }
}

BLR_increase_belarusian_influence_by_5 = {
	custom_effect_tooltip = BLR_increase_belarusian_influence_by_5_tt
	add_to_variable = {
		var = global.BLR_Russian_influence_union_state
		value = -5
	}
	clamp_variable = { var = global.BLR_Russian_influence_union_state min = 0 max = 100 }
	add_to_variable = {
		var = global.BLR_Belarussian_influence_union_state
		value = 5
	}
	clamp_variable = { var = global.BLR_Belarussian_influence_union_state min = 0 max = 100 }
}

BLR_increase_belarusian_influence_by_7 = {
	custom_effect_tooltip = BLR_increase_belarusian_influence_by_7_tt
	add_to_variable = {
		var = global.BLR_Russian_influence_union_state
		value = -7
	}
	clamp_variable = { var = global.BLR_Russian_influence_union_state min = 0 max = 100 }
	add_to_variable = {
		var = global.BLR_Belarussian_influence_union_state
		value = 7
	}
	clamp_variable = { var = global.BLR_Belarussian_influence_union_state min = 0 max = 100 }
}

BLR_increase_belarusian_influence_by_10 = {
	custom_effect_tooltip = BLR_increase_belarusian_influence_by_10_tt
	add_to_variable = {
		var = global.BLR_Russian_influence_union_state
		value = -10
	}
	clamp_variable = { var = global.BLR_Russian_influence_union_state min = 0 max = 100 }
	add_to_variable = {
		var = global.BLR_Belarussian_influence_union_state
		value = 10
	}
	clamp_variable = { var = global.BLR_Belarussian_influence_union_state min = 0 max = 100 }
}

BLR_increase_Russian_influence_by_2_5 = {
	custom_effect_tooltip = BLR_increase_Russian_influence_by_2_5_tt

	add_to_variable = {
		var = global.BLR_Russian_influence_union_state
		value = 2.5
	}
	clamp_variable = { var = global.BLR_Russian_influence_union_state min = 0 max = 100 }
	add_to_variable = {
		var = global.BLR_Belarussian_influence_union_state
		value = -2.5
	}
	clamp_variable = { var = global.BLR_Belarussian_influence_union_state min = 0 max = 100 }
}

BLR_increase_Russian_influence_by_5 = {
	custom_effect_tooltip = BLR_increase_Russian_influence_by_5_tt
	add_to_variable = {
		var = global.BLR_Russian_influence_union_state
		value = 5
	}
	clamp_variable = { var = global.BLR_Russian_influence_union_state min = 0 max = 100 }
	add_to_variable = {
		var = global.BLR_Belarussian_influence_union_state
		value = -5
	}
	clamp_variable = { var = global.BLR_Belarussian_influence_union_state min = 0 max = 100 }
}

BLR_increase_Russian_influence_by_7 = {
	custom_effect_tooltip = BLR_increase_Russian_influence_by_7_tt
	add_to_variable = {
		var = global.BLR_Russian_influence_union_state
		value = 7
	}
	clamp_variable = { var = global.BLR_Russian_influence_union_state min = 0 max = 100 }
	add_to_variable = {
		var = global.BLR_Belarussian_influence_union_state
		value = -7
	}
	clamp_variable = { var = global.BLR_Belarussian_influence_union_state min = 0 max = 100 }
}

BLR_increase_Russian_influence_by_10 = {
	custom_effect_tooltip = BLR_increase_Russian_influence_by_10_tt
	add_to_variable = {
		var = global.BLR_Russian_influence_union_state
		value = 10
	}
	clamp_variable = { var = global.BLR_Russian_influence_union_state min = 0 max = 100 }
	add_to_variable = {
		var = global.BLR_Belarussian_influence_union_state
		value = -10
	}
	clamp_variable = { var = global.BLR_Belarussian_influence_union_state min = 0 max = 100 }
}

BLR_update_civil_support = {
	hidden_effect = {
		set_variable = { BLR_drift_defence_factor = BLR_get_reactionary_reforms_support }
		set_variable = { BLR_conscription_factor = BLR_get_reactionary_reforms_support }
		set_variable = { BLR_political_power_gain = BLR_get_reactionary_reforms_support }
		set_variable = { BLR_stability_factor = BLR_get_reactionary_reforms_support }

		divide_variable = { BLR_stability_factor = 1000 }
		divide_variable = { BLR_drift_defence_factor = 800 }
		divide_variable = { BLR_conscription_factor = 1000 }
		divide_variable = { BLR_political_power_gain = 800 }
		force_update_dynamic_modifier = yes
	}
}

BLR_add_religius_adviser = {
	custom_effect_tooltip = BLR_add_religius_adviser_tt
	set_country_flag = BLR_religius_adviser_unlocked
}

BLR_partially_remove_effects_of_legacy_of_ussr = {
	custom_effect_tooltip = BLR_decrease_legacy_of_USSR_spirit
	if = {
		limit = { has_idea = BLR_legacy_of_ussr }
		swap_ideas = {
			remove_idea = BLR_legacy_of_ussr
			add_idea = BLR_legacy_of_ussr_3
		}
	}
	else_if = {
		limit = { has_idea = BLR_legacy_of_ussr_3 }

		swap_ideas = {
			remove_idea = BLR_legacy_of_ussr_3
			add_idea = BLR_legacy_of_ussr_4
		}
	}
	else_if = {
		limit = { has_idea = BLR_legacy_of_ussr_4 }
		remove_ideas = BLR_legacy_of_ussr_4
	}
}

BLR_decrease_reactionary_reforms_support_by_5 = {
	custom_effect_tooltip = BLR_decrease_reactionary_reforms_support_tt
	BLR_update_civil_support = yes
	add_to_variable = {
		var = BLR_get_reactionary_reforms_support
		value = -5
	}
	clamp_variable = { var = BLR_get_reactionary_reforms_support min = 0 max = 100 }
}

BLR_decrease_reactionary_reforms_support_by_10 = {
	custom_effect_tooltip = BLR_decrease_reactionary_reforms_support_by_10_tt
	BLR_update_civil_support = yes
	add_to_variable = {
		var = BLR_get_reactionary_reforms_support
		value = -10
	}
	clamp_variable = { var = BLR_get_reactionary_reforms_support min = 0 max = 100 }
}

BLR_increase_reactionary_reforms_support_by_5 = {
	custom_effect_tooltip = BLR_increase_reactionary_reforms_support_tt
	BLR_update_civil_support = yes
	add_to_variable = {
		var = BLR_get_reactionary_reforms_support
		value = 5
	}
	clamp_variable = { var = BLR_get_reactionary_reforms_support min = 0 max = 100 }
}

BLR_increase_reactionary_reforms_support_by_10 = {
	custom_effect_tooltip = BLR_increase_reactionary_reforms_support_by_10_tt
	BLR_update_civil_support = yes
	add_to_variable = {
		var = BLR_get_reactionary_reforms_support
		value = 10
	}
	clamp_variable = { var = BLR_get_reactionary_reforms_support min = 0 max = 100 }
}

BLR_decrease_western_concern_level = {
	custom_effect_tooltip = BLR_decrease_western_concern_level_tt
	if = {
		limit = { has_country_flag = BLR_western_conccern_low }
		set_country_flag = BLR_western_conccern_very_low
		clr_country_flag = BLR_western_conccern_low
		if = {
		limit = { has_idea = BLR_sanctioned_by_west }
		remove_ideas = BLR_sanctioned_by_west
      }	
	}
	else_if = {
		limit = { has_country_flag =  BLR_western_conccern_medium}
		set_country_flag = BLR_western_conccern_low
		clr_country_flag = BLR_western_conccern_medium
	}
	else_if = {
		limit = { has_country_flag = BLR_western_conccern_worrying }
		set_country_flag = BLR_western_conccern_medium
		clr_country_flag = BLR_western_conccern_worrying
	}

	else_if = {
		limit = { has_country_flag = BLR_western_conccern_large }
		set_country_flag = BLR_western_conccern_worrying
		clr_country_flag = BLR_western_conccern_large
	}
	else_if = {
		limit = { has_country_flag = BLR_western_conccern_sanctioned }
		set_country_flag = BLR_western_conccern_large
		clr_country_flag = BLR_western_conccern_sanctioned
	}
}

BLR_increase_western_concern_level = {
	custom_effect_tooltip = BLR_increase_western_concern_level_tt
	if = {
		limit = { has_country_flag = BLR_western_conccern_very_low }
		custom_effect_tooltip = BLR_increase_western_concern_level_tt
		clr_country_flag = BLR_western_conccern_very_low
		set_country_flag = BLR_western_conccern_low
	}
	else_if = {
		limit = { has_country_flag = BLR_western_conccern_low }
		custom_effect_tooltip = BLR_increase_western_concern_level_tt
		clr_country_flag = BLR_western_conccern_low
		set_country_flag = BLR_western_conccern_medium
	}
	else_if = {
		limit = { has_country_flag = BLR_western_conccern_medium }
		custom_effect_tooltip = BLR_increase_western_concern_level_tt
		clr_country_flag = BLR_western_conccern_medium
		set_country_flag = BLR_western_conccern_worrying
	}

	else_if = {
		limit = { has_country_flag = BLR_western_conccern_worrying }
		custom_effect_tooltip = BLR_increase_western_concern_level_tt
		clr_country_flag = BLR_western_conccern_worrying
		set_country_flag = BLR_western_conccern_large
	}
	else_if = {
		limit = { has_country_flag = BLR_western_conccern_large }
		custom_effect_tooltip = BLR_increase_western_concern_level_tt
		custom_effect_tooltip = BLR_santions_begin_tt
		BLR = { country_event = Belarus_Events_News.17 }
		clr_country_flag = BLR_western_conccern_large
		set_country_flag = BLR_western_conccern_sanctioned
	}
}

BLR_decrease_commie_support_support_5 = {
	custom_effect_tooltip = BLR_decrease_commie_support_5_tt
	add_to_variable = {
		var = BLR_commie_support_var
		value = -5
	}
	hidden_effect = {
		random_list = {
			33 = {
				add_to_variable = {
					var = BLR_Lukashenko_support
					value = 5
				}
			}
			33 = {
				add_to_variable = {
					var = BLR_democrat_popular_support
					value = 5
				}
			}
			34 = {
				add_to_variable = {
					var = BLR_Lukashenko_support
					value = 2.5
				}
				add_to_variable = {
					var = BLR_democrat_popular_support
					value = 2.5
				}
			}
		}
	}
	clamp_variable = { var = BLR_Lukashenko_support min = 0 max = 100 }
	clamp_variable = { var = BLR_commie_support_var min = 0 max = 100 }
	clamp_variable = { var = BLR_democrat_popular_support min = 0 max = 100 }
}

BLR_increase_commie_support_4 = {
	custom_effect_tooltip = BLR_increase_commie_support_4_tt
	add_to_variable = {
		var = BLR_commie_support_var
		value = 4
	}
	hidden_effect = {
		random_list = {
			33 = {
				add_to_variable = {
					var = BLR_Lukashenko_support
					value = -4
				}
			}
			33 = {
				add_to_variable = {
					var = BLR_democrat_popular_support
					value = -4
				}
			}
			34 = {
				add_to_variable = {
					var = BLR_Lukashenko_support
					value = -2
				}
				add_to_variable = {
					var = BLR_democrat_popular_support
					value = -2
				}
			}
		}
	}
	clamp_variable = { var = BLR_Lukashenko_support min = 0 max = 100 }
	clamp_variable = { var = BLR_commie_support_var min = 0 max = 100 }
	clamp_variable = { var = BLR_democrat_popular_support min = 0 max = 100 }
}

BLR_increase_commie_support_2 = {
	custom_effect_tooltip = BLR_increase_commie_support_2_tt
	add_to_variable = {
		var = BLR_commie_support_var
		value = 2
	}
	hidden_effect = {
		random_list = {
			33 = {
				add_to_variable = {
					var = BLR_Lukashenko_support
					value = -2
				}
			}
			33 = {
				add_to_variable = {
					var = BLR_democrat_popular_support
					value = -2
				}
			}
			34 = {
				add_to_variable = {
					var = BLR_Lukashenko_support
					value = -1
				}
				add_to_variable = {
					var = BLR_democrat_popular_support
					value = -1
				}
			}
		}
	}
	clamp_variable = { var = BLR_Lukashenko_support min = 0 max = 100 }
	clamp_variable = { var = BLR_commie_support_var min = 0 max = 100 }
	clamp_variable = { var = BLR_democrat_popular_support min = 0 max = 100 }
}

BLR_democratic_support_support_5 = {
	custom_effect_tooltip = BLR_decrease_democratic_support_5_tt
	add_to_variable = {
		var = BLR_democrat_popular_support
		value = -5
	}
	hidden_effect = {
		random_list = {
			33 = {
				add_to_variable = {
					var = BLR_Lukashenko_support
					value = 5
				}
			}
			33 = {
				add_to_variable = {
					var = BLR_commie_support_var
					value = 5
				}
			}
			34 = {
				add_to_variable = {
					var = BLR_Lukashenko_support
					value = 2.5
				}
				add_to_variable = {
					var = BLR_commie_support_var
					value = 2.5
				}
			}
		}
	}
	clamp_variable = { var = BLR_Lukashenko_support min = 0 max = 100 }
	clamp_variable = { var = BLR_commie_support_var min = 0 max = 100 }
	clamp_variable = { var = BLR_democrat_popular_support min = 0 max = 100 }
}

BLR_increase_democratic_support_4 = {
	custom_effect_tooltip = BLR_increase_democratic_support_4_tt
	add_to_variable = {
		var = BLR_democrat_popular_support
		value = 4
	}
	hidden_effect = {
		random_list = {
			33 = {
				add_to_variable = {
					var = BLR_Lukashenko_support
					value = -4
				}
			}
			33 = {
				add_to_variable = {
					var = BLR_commie_support_var
					value = -4
				}
			}
			34 = {
				add_to_variable = {
					var = BLR_Lukashenko_support
					value = -2
				}
				add_to_variable = {
					var = BLR_commie_support_var
					value = -2
				}
			}
		}
	}
	clamp_variable = { var = BLR_Lukashenko_support min = 0 max = 100 }
	clamp_variable = { var = BLR_commie_support_var min = 0 max = 100 }
	clamp_variable = { var = BLR_democrat_popular_support min = 0 max = 100 }
}

BLR_increase_democratic_support_2 = {
	custom_effect_tooltip = BLR_increase_democratic_support_2_tt
	add_to_variable = {
		var = BLR_democrat_popular_support
		value = 2
	}
	hidden_effect = {
		random_list = {
			33 = {
				add_to_variable = {
					var = BLR_Lukashenko_support
					value = -2
				}
			}
			33 = {
				add_to_variable = {
					var = BLR_commie_support_var
					value = -2
				}
			}
			34 = {
				add_to_variable = {
					var = BLR_Lukashenko_support
					value = -1
				}
				add_to_variable = {
					var = BLR_commie_support_var
					value = -1
				}
			}
		}
	}
	clamp_variable = { var = BLR_Lukashenko_support min = 0 max = 100 }
	clamp_variable = { var = BLR_commie_support_var min = 0 max = 100 }
	clamp_variable = { var = BLR_democrat_popular_support min = 0 max = 100 }
}

BLR_decrease_lukashenko_support_5 = {
	custom_effect_tooltip = BLR_decrease_lukashenko_support_5_tt
	add_to_variable = {
		var = BLR_Lukashenko_support
		value = -5
	}
	hidden_effect = {
		random_list = {
			33 = {
				add_to_variable = {
					var = BLR_democrat_popular_support
					value = 5
				}
			}
			33 = {
				add_to_variable = {
					var = BLR_commie_support_var
					value = 5
				}
			}
			34 = {
				add_to_variable = {
					var = BLR_democrat_popular_support
					value = 2.5
				}
				add_to_variable = {
					var = BLR_commie_support_var
					value = 2.5
				}
			}
		}
	}
	clamp_variable = { var = BLR_Lukashenko_support min = 0 max = 100 }
	clamp_variable = { var = BLR_commie_support_var min = 0 max = 100 }
	clamp_variable = { var = BLR_democrat_popular_support min = 0 max = 100 }
}

BLR_increase_lukashenko_support_4 = {
	custom_effect_tooltip = BBLR_increase_lukashenko_support_4_tt
	add_to_variable = {
		var = BLR_Lukashenko_support
		value = 4
	}
	hidden_effect = {
		random_list = {
			33 = {
				add_to_variable = {
					var = BLR_democrat_popular_support
					value = -4
				}
			}
			33 = {
				add_to_variable = {
					var = BLR_commie_support_var
					value = -4
				}
			}
			34 = {
				add_to_variable = {
					var = BLR_democrat_popular_support
					value = -2
				}
				add_to_variable = {
					var = BLR_commie_support_var
					value = -2
				}
			}
		}
	}
	clamp_variable = { var = BLR_Lukashenko_support min = 0 max = 100 }
	clamp_variable = { var = BLR_commie_support_var min = 0 max = 100 }
	clamp_variable = { var = BLR_democrat_popular_support min = 0 max = 100 }
}

BLR_increase_lukashenko_support_2 = {
	custom_effect_tooltip = BBLR_increase_lukashenko_support_2_tt
	add_to_variable = {
		var = BLR_Lukashenko_support
		value = 2
	}
	hidden_effect = {
		random_list = {
			33 = {
				add_to_variable = {
					var = BLR_democrat_popular_support
					value = -2
				}
			}
			33 = {
				add_to_variable = {
					var = BLR_commie_support_var
					value = -2
				}
			}
			34 = {
				add_to_variable = {
					var = BLR_democrat_popular_support
					value = -1
				}
				add_to_variable = {
					var = BLR_commie_support_var
					value = -1
				}
			}
		}
	}
	clamp_variable = { var = BLR_Lukashenko_support min = 0 max = 100 }
	clamp_variable = { var = BLR_commie_support_var min = 0 max = 100 }
	clamp_variable = { var = BLR_democrat_popular_support min = 0 max = 100 }
}

BLR_decrease_oligarhic_relations_by_5 = {
	custom_effect_tooltip = BLR_decrease_oligarhic_relations_by_5_tt
	add_to_variable = {
		var = BRL_oligarchic_relations_var
		value = -5
	}
	clamp_variable = { var = BRL_oligarchic_relations_var min = 0 max = 100 }
}

BLR_decrease_oligarhic_relations_by_10 = {
	custom_effect_tooltip = BLR_decrease_oligarhic_relations_by_10_tt
	add_to_variable = {
		var = BRL_oligarchic_relations_var
		value = -10
	}
	clamp_variable = { var = BRL_oligarchic_relations_var min = 0 max = 100 }
}

BLR_increase_oligarhic_relations_by_2 = {
	custom_effect_tooltip = BLR_increase_oligarhic_relations_by_2_tt
	add_to_variable = {
		var = BRL_oligarchic_relations_var
		value = 2
	}
	clamp_variable = { var = BRL_oligarchic_relations_var min = 0 max = 100 }
}

BLR_increase_oligarhic_relations_by_5 = {
	custom_effect_tooltip = BLR_increase_oligarhic_relations_by_5_tt
	add_to_variable = {
		var = BRL_oligarchic_relations_var
		value = 5
	}
	clamp_variable = { var = BRL_oligarchic_relations_var min = 0 max = 100 }
}

BLR_increase_oligarhic_relations_by_10 = {
	custom_effect_tooltip = BLR_increase_oligarhic_relations_by_10_tt
	add_to_variable = {
		var = BRL_oligarchic_relations_var
		value = 10
	}
	clamp_variable = { var = BRL_oligarchic_relations_var min = 0 max = 100 }
}
