FRA_eco_reform_update_industry = {
	if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_malpractice_industry1
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_malpractice_industry1
			add_idea = DB_FRA_eco_malpractice_industry2
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_malpractice_industry2
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_malpractice_industry2
			add_idea = DB_FRA_eco_malpractice_industry3
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_malpractice_industry3
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_malpractice_industry3
			add_idea = DB_FRA_eco_malpractice_industry4
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_malpractice_industry4
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_malpractice_industry4
			add_idea = DB_FRA_eco_malpractice_industry5
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_malpractice_industry5
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_malpractice_industry5
			add_idea = DB_FRA_eco_better_industry
		}
	}
}

FRA_eco_reform_update_agriculture = {
	if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_malpractice_agriculture1
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_malpractice_agriculture1
			add_idea = DB_FRA_eco_malpractice_agriculture2
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_malpractice_agriculture2
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_malpractice_agriculture2
			add_idea = DB_FRA_eco_malpractice_agriculture3
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_malpractice_agriculture3
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_malpractice_agriculture3
			add_idea = DB_FRA_eco_better_agriculture
		}
	}
}

FRA_eco_reform_update_innovation = {
	if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_malpractice_innovation1
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_malpractice_innovation1
			add_idea = DB_FRA_eco_malpractice_innovation2
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_malpractice_innovation2
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_malpractice_innovation2
			add_idea = DB_FRA_eco_malpractice_innovation3
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_malpractice_innovation3
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_malpractice_innovation3
			add_idea = DB_FRA_eco_malpractice_innovation4
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_malpractice_innovation4
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_malpractice_innovation4
			add_idea = DB_FRA_eco_better_innovation
		}
	}
}

FRA_eco_jaco_update = {
	if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_jaco1
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_jaco1
			add_idea = DB_FRA_eco_reform_jaco2
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_jaco2
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_jaco2
			add_idea = DB_FRA_eco_reform_jaco3
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_jaco3
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_jaco3
			add_idea = DB_FRA_eco_reform_jaco4
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_jaco4
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_jaco4
			add_idea = DB_FRA_eco_reform_jaco5
		}
	}
}

FRA_eco_sore_update = {
	if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_sore1
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_sore1
			add_idea = DB_FRA_eco_reform_sore2
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_sore2
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_sore2
			add_idea = DB_FRA_eco_reform_sore3
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_sore3
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_sore3
			add_idea = DB_FRA_eco_reform_sore4
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_sore4
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_sore4
			add_idea = DB_FRA_eco_reform_sore5
		}
	}
}

FRA_eco_anar_update = {
	if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_anar1
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_anar1
			add_idea = DB_FRA_eco_reform_anar2
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_anar2
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_anar2
			add_idea = DB_FRA_eco_reform_anar3
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_anar3
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_anar3
			add_idea = DB_FRA_eco_reform_anar4
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_anar4
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_anar4
			add_idea = DB_FRA_eco_reform_anar5
		}
	}
}

FRA_eco_synd_update = {
	if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_synd1
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_synd1
			add_idea = DB_FRA_eco_reform_synd2
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_synd2
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_synd2
			add_idea = DB_FRA_eco_reform_synd3
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_synd3
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_synd3
			add_idea = DB_FRA_eco_reform_synd4
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_synd4
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_synd4
			add_idea = DB_FRA_eco_reform_synd5
		}
	}
}

FRA_eco_all_update = {
	if = {
		limit = {
			FRA = {
				has_country_flag = ECO_JACO
			}
		}
		FRA_eco_jaco_update = yes
	}
	else_if = {
		limit = {
			FRA = {
				has_country_flag = ECO_SORE
			}
		}
		FRA_eco_sore_update = yes
	}
	else_if = {
		limit = {
			FRA = {
				has_country_flag = ECO_TRAV
			}
		}
		FRA_eco_synd_update = yes
	}
	else_if = {
		limit = {
			FRA = {
				has_country_flag = ECO_anar
			}
		}
		FRA_eco_anar_update = yes
	}
}

FRA_eco_reform_end = {
	if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_jaco5
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_jaco5
			add_idea = DB_FRA_eco_reform_jaco_end
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_sore5
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_sore5
			add_idea = DB_FRA_eco_reform_sore_end
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_synd5
			}
		}
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_synd5
			add_idea = DB_FRA_eco_reform_synd_end
		}
	}
	else_if = {
		limit = {
			FRA = {
				has_idea = DB_FRA_eco_reform_anar5
			}
		}
		remove_idea = DB_FRA_eco_reform2
		swap_ideas = {
			remove_idea = DB_FRA_eco_reform_anar5
			add_idea = DB_FRA_eco_reform_anar_end
		}
	}
}

FRA_influence_change_total = {
	if = {
		limit = {
			OR = {
				has_country_flag = FRA_western_eup_enable_once
				has_country_flag = FRA_middle_eup_enable_once
				has_country_flag = FRA_north_eup_enable_once
				has_country_flag = FRA_russia_enable_once
			}
		}
		custom_effect_tooltip = infulence_change_eu
		add_to_variable = {
			FRA_infulence_europe = var:FRA_infulence_change
		}
	}
	else_if = {
		limit = {
			OR = {
				has_country_flag = FRA_eastern_asia_enable_once
				has_country_flag = FRA_southern_asia_enable_once
				has_country_flag = FRA_southeast_asia_enable_once
			}
		}
		custom_effect_tooltip = infulence_change_as
		add_to_variable = {
			FRA_infulence_asia = var:FRA_infulence_change
		}
	}
	else_if = {
		limit = {
			OR = {
				has_country_flag = FRA_mideast_iran_enable_once
				has_country_flag = FRA_mideast_ottoman_enable_once
				has_country_flag = FRA_mideast_egypt_enable_once
				has_country_flag = FRA_mideast_arab_enable_once
			}
		}
		custom_effect_tooltip = infulence_change_me
		add_to_variable = {
			FRA_infulence_mideast = var:FRA_infulence_change
		}
	}
	else_if = {
		limit = {
			OR = {
				has_country_flag = FRA_mideast_ethiopia_enable_once
				has_country_flag = FRA_northern_afr_enable_once
				has_country_flag = FRA_middle_afr_enable_once
				has_country_flag = FRA_southern_afr_enable_once
			}
		}
		custom_effect_tooltip = infulence_change_af
		add_to_variable = {
			FRA_infulence_africa = var:FRA_infulence_change
		}
	}
	else_if = {
		limit = {
			OR = {
				has_country_flag = FRA_northern_amer_enable_once
				has_country_flag = FRA_middle_amer_enable_once
				has_country_flag = FRA_southern_amer_enable_once
			}
		}
		custom_effect_tooltip = infulence_change_am
		add_to_variable = {
			FRA_infulence_america = var:FRA_infulence_change
		}
	}
	FRA_influence_check_low = yes
}

FRA_influence_check_low = {
	if = {
		limit = {
			check_variable = {
				FRA_infulence_europe < 0
			}
		}
		set_country_flag = FRA_low_influence_eu
	}
	else = {
		clr_country_flag = FRA_low_influence_eu
	}
	if = {
		limit = {
			check_variable = {
				FRA_infulence_asia < 0
			}
		}
		set_country_flag = FRA_low_influence_as
	}
	else = {
		clr_country_flag = FRA_low_influence_as
	}
	if = {
		limit = {
			check_variable = {
				FRA_infulence_mideast < 0
			}
		}
		set_country_flag = FRA_low_influence_me
	}
	else = {
		clr_country_flag = FRA_low_influence_me
	}
	if = {
		limit = {
			check_variable = {
				FRA_infulence_america < 0
			}
		}
		set_country_flag = FRA_low_influence_am
	}
	else = {
		clr_country_flag = FRA_low_influence_am
	}
	if = {
		limit = {
			check_variable = {
				FRA_infulence_africa < 0
			}
		}
		set_country_flag = FRA_low_influence_af
	}
	else = {
		clr_country_flag = FRA_low_influence_af
	}
}

FRA_infulence_check = {
	if = {
		limit = {
			FROM = {
				capital_scope = {
					is_on_continent = europe
				}
			}
		}
		custom_effect_tooltip = infulence_change_eu
		add_to_variable = {
			FRA_infulence_europe = var:FRA_infulence_change
		}
	}
	else_if = {
		limit = {
			FROM = {
				capital_scope = {
					OR = {
						is_on_continent = asia
						is_on_continent = australia
						is_on_continent = india
					}
				}
			}
		}
		custom_effect_tooltip = infulence_change_as
		add_to_variable = {
			FRA_infulence_asia = var:FRA_infulence_change
		}
	}
	else_if = {
		limit = {
			FROM = {
				OR = {
					capital_scope = {
						is_on_continent = middle_east
					}
					original_tag = EGY
				}
			}
		}
		custom_effect_tooltip = infulence_change_me
		add_to_variable = {
			FRA_infulence_mideast = var:FRA_infulence_change
		}
	}
	else_if = {
		limit = {
			FROM = {
				capital_scope = {
					OR = {
						is_on_continent = north_america
						is_on_continent = central_america
						is_on_continent = south_america
					}
				}
			}
		}
		custom_effect_tooltip = infulence_change_am
		add_to_variable = {
			FRA_infulence_america = var:FRA_infulence_change
		}
	}
	else_if = {
		limit = {
			FROM = {
				capital_scope = {
					is_on_continent = africa
				}
				NOT = {
					original_tag = EGY
				}
			}
		}
		custom_effect_tooltip = infulence_change_af
		add_to_variable = {
			FRA_infulence_africa = var:FRA_infulence_change
		}
	}
}

FRA_dec_destroy = {
	PREV = {
		add_political_power = -25
		add_stability = -0.05
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = -1000
		}
	}
}

FRA_create_volunteer_corps = {
	custom_effect_tooltip = FRA_create_volunteer_corps_tips
	hidden_effect = {
		division_template = {
			name = "Commune Expedition Volunteer Corps"
			division_names_group = FRA_VOL_01
			regiments = {
				infantry = {
					x = 0
					y = 0
				}
				infantry = {
					x = 0
					y = 1
				}
				infantry = {
					x = 0
					y = 2
				}
				infantry = {
					x = 1
					y = 0
				}
				infantry = {
					x = 1
					y = 1
				}
				infantry = {
					x = 1
					y = 2
				}
				infantry = {
					x = 2
					y = 0
				}
				artillery_brigade = {
					x = 3
					y = 0
				}
				artillery_brigade = {
					x = 3
					y = 1
				}
			}
			support = {
				engineer = {
					x = 0
					y = 0
				}
				artillery = {
					x = 0
					y = 1
				}
				signal_company = {
					x = 0
					y = 2
				}
			}
			priority = 2
		}
		capital_scope = {
			create_unit = {
				division = "division_template = \"Commune Expedition Volunteer Corps\" start_experience_factor = 0.5 start_equipment_factor = 1"
				owner = PREV
				count = 3
			}
		}
	}
}

FRA_africa_colonist_level_up = {
	if = {
		limit = {
			has_idea = AFRICA_revo_attack
		}
		swap_ideas = {
			remove_idea = AFRICA_revo_attack
			add_idea = AFRICA_revo_attack_level_up
		}
	}
	else_if = {
		limit = {
			has_idea = AFRICA_revo_attack_level_up
		}
		swap_ideas = {
			remove_idea = AFRICA_revo_attack_level_up
			add_idea = AFRICA_revo_attack_level_max
		}
	}
}

FRA_social_politic_situation_change = {
	if = {
		limit = {
			check_variable = {
				wc = 0
			}
		}
	}
	else = {
		add_to_variable = {
			frasoc_workers = wc
		}
		clamp_variable = {
			var = frasoc_workers
			max = 100
			min = 0
		}
		custom_effect_tooltip = frasoc_workers_change
	}
	if = {
		limit = {
			check_variable = {
				pc = 0
			}
		}
	}
	else = {
		add_to_variable = {
			frasoc_peasants = pc
		}
		clamp_variable = {
			var = frasoc_peasants
			max = 100
			min = 0
		}
		custom_effect_tooltip = frasoc_peasants_change
	}
	if = {
		limit = {
			check_variable = {
				mc = 0
			}
		}
	}
	else = {
		add_to_variable = {
			frasoc_merchants = mc
		}
		clamp_variable = {
			var = frasoc_merchants
			max = 100
			min = 0
		}
		custom_effect_tooltip = frasoc_merchants_change
	}
	if = {
		limit = {
			check_variable = {
				sc = 0
			}
		}
	}
	else = {
		add_to_variable = {
			frasoc_scholoars = sc
		}
		clamp_variable = {
			var = frasoc_scholoars
			max = 100
			min = 0
		}
		custom_effect_tooltip = frasoc_scholoars_change
	}
	if = {
		limit = {
			check_variable = {
				fc = 0
			}
		}
	}
	else = {
		add_to_variable = {
			frasoc_forces = fc
		}
		clamp_variable = {
			var = frasoc_forces
			max = 100
			min = 0
		}
		custom_effect_tooltip = frasoc_forces_change
	}
	if = {
		limit = {
			check_variable = {
				bc = 0
			}
		}
	}
	else = {
		add_to_variable = {
			frasoc_bureaucrats = bc
		}
		clamp_variable = {
			var = frasoc_bureaucrats
			max = 100
			min = 0
		}
		custom_effect_tooltip = frasoc_bureaucrats_change
	}
	FRA_politic_faction_change = yes
	FRA_social_politic_situation_buff_change = yes
}

FRA_politic_faction_change = {
	if = {
		limit = {
			check_variable = {
				syndc = 0
			}
		}
	}
	else = {
		add_to_variable = {
			frasoc_synd = syndc
		}
		clamp_variable = {
			var = frasoc_synd
			max = 100
			min = 0
		}
		custom_effect_tooltip = frasoc_synd_change
	}
	if = {
		limit = {
			check_variable = {
				anarc = 0
			}
		}
	}
	else = {
		add_to_variable = {
			frasoc_anar = anarc
		}
		clamp_variable = {
			var = frasoc_anar
			max = 100
			min = 0
		}
		custom_effect_tooltip = frasoc_anar_change
	}
	if = {
		limit = {
			check_variable = {
				jacoc = 0
			}
		}
	}
	else = {
		add_to_variable = {
			frasoc_jaco = jacoc
		}
		clamp_variable = {
			var = frasoc_jaco
			max = 100
			min = 0
		}
		custom_effect_tooltip = frasoc_jaco_change
	}
	if = {
		limit = {
			check_variable = {
				sorec = 0
			}
		}
	}
	else = {
		add_to_variable = {
			frasoc_sore = sorec
		}
		clamp_variable = {
			var = frasoc_sore
			max = 100
			min = 0
		}
		custom_effect_tooltip = frasoc_sore_change
	}
}

FRA_social_politic_situation_buff_change = {
	set_variable = {
		frasoc_total = var:FRA.frasoc_workers
	}
	add_to_variable = {
		frasoc_total = var:FRA.frasoc_peasants
	}
	add_to_variable = {
		frasoc_total = var:FRA.frasoc_merchants
	}
	add_to_variable = {
		frasoc_total = var:FRA.frasoc_scholoars
	}
	add_to_variable = {
		frasoc_total = var:FRA.frasoc_forces
	}
	add_to_variable = {
		frasoc_total = var:FRA.frasoc_bureaucrats
	}
	divide_variable = {
		frasoc_total = 6
	}
	set_temp_variable = {
		t = frasoc_total
	}
	add_to_temp_variable = {
		t = -50
	}
	multiply_temp_variable = {
		t = 0.4
	}
	multiply_temp_variable = {
		t = 0.01
	}
	set_variable = {
		frasoc_stability_factor = t
	}
	set_temp_variable = {
		t = var:FRA.frasoc_workers
	}
	add_to_temp_variable = {
		t = -50
	}
	multiply_temp_variable = {
		t = 0.2
	}
	multiply_temp_variable = {
		t = 0.01
	}
	set_variable = {
		frasoc_industrial_capacity_factory = t
	}
	set_temp_variable = {
		t = var:FRA.frasoc_peasants
	}
	add_to_temp_variable = {
		t = -50
	}
	multiply_temp_variable = {
		t = -0.4
	}
	multiply_temp_variable = {
		t = 0.01
	}
	set_variable = {
		frasoc_consumer_goods_factor = t
	}
	set_temp_variable = {
		t = var:FRA.frasoc_merchants
	}
	add_to_temp_variable = {
		t = -50
	}
	multiply_temp_variable = {
		t = 0.3
	}
	multiply_temp_variable = {
		t = 0.01
	}
	set_variable = {
		frasoc_production_factory_max_efficiency_factor = t
	}
	set_temp_variable = {
		t = var:FRA.frasoc_scholoars
	}
	add_to_temp_variable = {
		t = -50
	}
	multiply_temp_variable = {
		t = 0.4
	}
	multiply_temp_variable = {
		t = 0.01
	}
	set_variable = {
		frasoc_research_speed_factor = t
	}
	set_temp_variable = {
		t = var:FRA.frasoc_forces
	}
	add_to_temp_variable = {
		t = -50
	}
	multiply_temp_variable = {
		t = 0.4
	}
	multiply_temp_variable = {
		t = 0.01
	}
	set_variable = {
		frasoc_war_support_factor = t
	}
	set_temp_variable = {
		t = var:FRA.frasoc_bureaucrats
	}
	add_to_temp_variable = {
		t = -50
	}
	multiply_temp_variable = {
		t = 0.4
	}
	multiply_temp_variable = {
		t = 0.01
	}
	set_variable = {
		frasoc_political_power_factor = t
	}
	set_variable = { anar_satisf = frasoc_peasants }
	add_to_variable = { anar_satisf = frasoc_merchants }
	multiply_variable = { anar_satisf = 0.5 }
}

FRA_vote_set = {
	if = {
		limit = { has_country_flag = bill_cgt_strengthen }

		set_variable = { agree_synd_trav = var:FRA.seat_synd_trav }
		multiply_variable = { agree_synd_trav = 0.85 }
		round_variable = agree_synd_trav

		set_variable = { agree_synd_radi = var:FRA.seat_synd_radi }
		multiply_variable = { agree_synd_radi = 0.85 }
		round_variable = agree_synd_radi

		set_variable = { agree_anar_parl = var:FRA.seat_anar_parl }
		multiply_variable = { agree_anar_parl = 0.1 }
		round_variable = agree_anar_parl

		set_variable = { agree_anar_anar = var:FRA.seat_anar_anar }
		multiply_variable = { agree_anar_anar = 0 }
		round_variable = agree_anar_anar

		set_variable = { agree_jaco_neos = var:FRA.seat_jaco_neos }
		multiply_variable = { agree_jaco_neos = 0.05 }
		round_variable = agree_jaco_neos

		set_variable = { agree_jaco_leni = var:FRA.seat_jaco_leni }
		multiply_variable = { agree_jaco_leni = 0 }
		round_variable = agree_jaco_leni

		set_variable = { agree_sore_oldl = var:FRA.seat_sore_oldl }
		multiply_variable = { agree_sore_oldl = 0.2 }
		round_variable = agree_sore_oldl

		set_variable = { agree_sore_yout = var:FRA.seat_sore_yout }
		multiply_variable = { agree_sore_yout = 0 }
		round_variable = agree_sore_yout

		set_variable = { agree_indent = var:FRA.seat_indenpent }
		multiply_variable = { agree_indent = 0.5 }
		round_variable = agree_indent
	}
	else_if = {
		limit = { has_country_flag = bill_cgt_release_anar }

		set_variable = { agree_synd_trav = var:FRA.seat_synd_trav }
		multiply_variable = { agree_synd_trav = 0.1 }
		round_variable = agree_synd_trav

		set_variable = { agree_synd_radi = var:FRA.seat_synd_radi }
		multiply_variable = { agree_synd_radi = 0}
		round_variable = agree_synd_radi

		set_variable = { agree_anar_parl = var:FRA.seat_anar_parl }
		multiply_variable = { agree_anar_parl = 0.85 }
		round_variable = agree_anar_parl

		set_variable = { agree_anar_anar = var:FRA.seat_anar_anar }
		multiply_variable = { agree_anar_anar = 1 }
		round_variable = agree_anar_anar

		set_variable = { agree_jaco_neos = var:FRA.seat_jaco_neos }
		multiply_variable = { agree_jaco_neos = 0.1 }
		round_variable = agree_jaco_neos

		set_variable = { agree_jaco_leni = var:FRA.seat_jaco_leni }
		multiply_variable = { agree_jaco_leni = 0.15 }
		round_variable = agree_jaco_leni

		set_variable = { agree_sore_oldl = var:FRA.seat_sore_oldl }
		multiply_variable = { agree_sore_oldl = 0.4 }
		round_variable = agree_sore_oldl

		set_variable = { agree_sore_yout = var:FRA.seat_sore_yout }
		multiply_variable = { agree_sore_yout = 0.2 }
		round_variable = agree_sore_yout

		set_variable = { agree_indent = var:FRA.seat_indenpent }
		multiply_variable = { agree_indent = 0.5 }
		round_variable = agree_indent
	}
	else_if = {
		limit = { has_country_flag = bill_cgt_release_jaco }

		set_variable = { agree_synd_trav = var:FRA.seat_synd_trav }
		multiply_variable = { agree_synd_trav = 0.15 }
		round_variable = agree_synd_trav

		set_variable = { agree_synd_radi = var:FRA.seat_synd_radi }
		multiply_variable = { agree_synd_radi = 0}
		round_variable = agree_synd_radi

		set_variable = { agree_anar_parl = var:FRA.seat_anar_parl }
		multiply_variable = { agree_anar_parl = 0.2 }
		round_variable = agree_anar_parl

		set_variable = { agree_anar_anar = var:FRA.seat_anar_anar }
		multiply_variable = { agree_anar_anar = 0 }
		round_variable = agree_anar_anar

		set_variable = { agree_jaco_neos = var:FRA.seat_jaco_neos }
		multiply_variable = { agree_jaco_neos = 1 }
		round_variable = agree_jaco_neos

		set_variable = { agree_jaco_leni = var:FRA.seat_jaco_leni }
		multiply_variable = { agree_jaco_leni = 0.95 }
		round_variable = agree_jaco_leni

		set_variable = { agree_sore_oldl = var:FRA.seat_sore_oldl }
		multiply_variable = { agree_sore_oldl = 0.4 }
		round_variable = agree_sore_oldl

		set_variable = { agree_sore_yout = var:FRA.seat_sore_yout }
		multiply_variable = { agree_sore_yout = 0.2 }
		round_variable = agree_sore_yout

		set_variable = { agree_indent = var:FRA.seat_indenpent }
		multiply_variable = { agree_indent = 0 }
		round_variable = agree_indent
	}
	else_if = {
		limit = { has_country_flag = bill_cgt_release_sore }

		set_variable = { agree_synd_trav = var:FRA.seat_synd_trav }
		multiply_variable = { agree_synd_trav = 0 }
		round_variable = agree_synd_trav

		set_variable = { agree_synd_radi = var:FRA.seat_synd_radi }
		multiply_variable = { agree_synd_radi = 0}
		round_variable = agree_synd_radi

		set_variable = { agree_anar_parl = var:FRA.seat_anar_parl }
		multiply_variable = { agree_anar_parl = 0 }
		round_variable = agree_anar_parl

		set_variable = { agree_anar_anar = var:FRA.seat_anar_anar }
		multiply_variable = { agree_anar_anar = 0 }
		round_variable = agree_anar_anar

		set_variable = { agree_jaco_neos = var:FRA.seat_jaco_neos }
		multiply_variable = { agree_jaco_neos = 0.15 }
		round_variable = agree_jaco_neos

		set_variable = { agree_jaco_leni = var:FRA.seat_jaco_leni }
		multiply_variable = { agree_jaco_leni = 0.1 }
		round_variable = agree_jaco_leni

		set_variable = { agree_sore_oldl = var:FRA.seat_sore_oldl }
		multiply_variable = { agree_sore_oldl = 1 }
		round_variable = agree_sore_oldl

		set_variable = { agree_sore_yout = var:FRA.seat_sore_yout }
		multiply_variable = { agree_sore_yout = 1 }
		round_variable = agree_sore_yout

		set_variable = { agree_indent = var:FRA.seat_indenpent }
		multiply_variable = { agree_indent = 0 }
		round_variable = agree_indent
	}

	if = {
		limit = { has_country_flag = WR_reforming }

		set_variable = { agree_synd_trav = var:FRA.seat_synd_trav }
		multiply_variable = { agree_synd_trav = 0.4 }
		round_variable = agree_synd_trav

		set_variable = { agree_synd_radi = var:FRA.seat_synd_radi }
		multiply_variable = { agree_synd_radi = 0.6 }
		round_variable = agree_synd_radi

		set_variable = { agree_anar_parl = var:FRA.seat_anar_parl }
		multiply_variable = { agree_anar_parl = 0.85 }
		round_variable = agree_anar_parl

		set_variable = { agree_anar_anar = var:FRA.seat_anar_anar }
		multiply_variable = { agree_anar_anar = 0.8 }
		round_variable = agree_anar_anar

		set_variable = { agree_jaco_neos = var:FRA.seat_jaco_neos }
		multiply_variable = { agree_jaco_neos = 0.2 }
		round_variable = agree_jaco_neos

		set_variable = { agree_jaco_leni = var:FRA.seat_jaco_leni }
		multiply_variable = { agree_jaco_leni = 0.25 }
		round_variable = agree_jaco_leni

		set_variable = { agree_sore_oldl = var:FRA.seat_sore_oldl }
		multiply_variable = { agree_sore_oldl = 0.1 }
		round_variable = agree_sore_oldl

		set_variable = { agree_sore_yout = var:FRA.seat_sore_yout }
		multiply_variable = { agree_sore_yout = 0.3 }
		round_variable = agree_sore_yout

		set_variable = { agree_indent = var:FRA.seat_indenpent }
		multiply_variable = { agree_indent = 1 }
		round_variable = agree_indent
	}

	if = {
		limit = { has_country_flag = DSP_reforming_left }

		set_variable = { agree_synd_trav = var:FRA.seat_synd_trav }
		multiply_variable = { agree_synd_trav = 0.15 }
		round_variable = agree_synd_trav

		set_variable = { agree_synd_radi = var:FRA.seat_synd_radi }
		multiply_variable = { agree_synd_radi = 0.1 }
		round_variable = agree_synd_radi

		set_variable = { agree_anar_parl = var:FRA.seat_anar_parl }
		multiply_variable = { agree_anar_parl = 0 }
		round_variable = agree_anar_parl

		set_variable = { agree_anar_anar = var:FRA.seat_anar_anar }
		multiply_variable = { agree_anar_anar = 0 }
		round_variable = agree_anar_anar

		set_variable = { agree_jaco_neos = var:FRA.seat_jaco_neos }
		multiply_variable = { agree_jaco_neos = 0.9 }
		round_variable = agree_jaco_neos

		set_variable = { agree_jaco_leni = var:FRA.seat_jaco_leni }
		multiply_variable = { agree_jaco_leni = 1 }
		round_variable = agree_jaco_leni

		set_variable = { agree_sore_oldl = var:FRA.seat_sore_oldl }
		multiply_variable = { agree_sore_oldl = 0.85 }
		round_variable = agree_sore_oldl

		set_variable = { agree_sore_yout = var:FRA.seat_sore_yout }
		multiply_variable = { agree_sore_yout = 0.15 }
		round_variable = agree_sore_yout

		set_variable = { agree_indent = var:FRA.seat_indenpent }
		multiply_variable = { agree_indent = 0 }
		round_variable = agree_indent
	}
	else_if = {
		limit = { has_country_flag = DSP_reforming_common }

		set_variable = { agree_synd_trav = var:FRA.seat_synd_trav }
		multiply_variable = { agree_synd_trav = 0.8 }
		round_variable = agree_synd_trav

		set_variable = { agree_synd_radi = var:FRA.seat_synd_radi }
		multiply_variable = { agree_synd_radi = 0.6 }
		round_variable = agree_synd_radi

		set_variable = { agree_anar_parl = var:FRA.seat_anar_parl }
		multiply_variable = { agree_anar_parl = 0.2 }
		round_variable = agree_anar_parl

		set_variable = { agree_anar_anar = var:FRA.seat_anar_anar }
		multiply_variable = { agree_anar_anar = 0.05 }
		round_variable = agree_anar_anar

		set_variable = { agree_jaco_neos = var:FRA.seat_jaco_neos }
		multiply_variable = { agree_jaco_neos = 0.25 }
		round_variable = agree_jaco_neos

		set_variable = { agree_jaco_leni = var:FRA.seat_jaco_leni }
		multiply_variable = { agree_jaco_leni = 0.1 }
		round_variable = agree_jaco_leni

		set_variable = { agree_sore_oldl = var:FRA.seat_sore_oldl }
		multiply_variable = { agree_sore_oldl = 0.15 }
		round_variable = agree_sore_oldl

		set_variable = { agree_sore_yout = var:FRA.seat_sore_yout }
		multiply_variable = { agree_sore_yout = 0.55 }
		round_variable = agree_sore_yout

		set_variable = { agree_indent = var:FRA.seat_indenpent }
		multiply_variable = { agree_indent = 0.4 }
		round_variable = agree_indent
	}
	else_if = {
		limit = { has_country_flag = DSP_reforming_right }

		set_variable = { agree_synd_trav = var:FRA.seat_synd_trav }
		multiply_variable = { agree_synd_trav = 0.6 }
		round_variable = agree_synd_trav

		set_variable = { agree_synd_radi = var:FRA.seat_synd_radi }
		multiply_variable = { agree_synd_radi = 0.85 }
		round_variable = agree_synd_radi

		set_variable = { agree_anar_parl = var:FRA.seat_anar_parl }
		multiply_variable = { agree_anar_parl = 0.9 }
		round_variable = agree_anar_parl

		set_variable = { agree_anar_anar = var:FRA.seat_anar_anar }
		multiply_variable = { agree_anar_anar = 1 }
		round_variable = agree_anar_anar

		set_variable = { agree_jaco_neos = var:FRA.seat_jaco_neos }
		multiply_variable = { agree_jaco_neos = 0 }
		round_variable = agree_jaco_neos

		set_variable = { agree_jaco_leni = var:FRA.seat_jaco_leni }
		multiply_variable = { agree_jaco_leni = 0 }
		round_variable = agree_jaco_leni

		set_variable = { agree_sore_oldl = var:FRA.seat_sore_oldl }
		multiply_variable = { agree_sore_oldl = 0.1 }
		round_variable = agree_sore_oldl

		set_variable = { agree_sore_yout = var:FRA.seat_sore_yout }
		multiply_variable = { agree_sore_yout = 0.65 }
		round_variable = agree_sore_yout

		set_variable = { agree_indent = var:FRA.seat_indenpent }
		multiply_variable = { agree_indent = 0 }
		round_variable = agree_indent
	}

	if = {
		limit = { has_country_flag = DA_reforming_left }

		set_variable = { agree_synd_trav = var:FRA.seat_synd_trav }
		multiply_variable = { agree_synd_trav = 0.2 }
		round_variable = agree_synd_trav

		set_variable = { agree_synd_radi = var:FRA.seat_synd_radi }
		multiply_variable = { agree_synd_radi = 0.1 }
		round_variable = agree_synd_radi

		set_variable = { agree_anar_parl = var:FRA.seat_anar_parl }
		multiply_variable = { agree_anar_parl = 0.15 }
		round_variable = agree_anar_parl

		set_variable = { agree_anar_anar = var:FRA.seat_anar_anar }
		multiply_variable = { agree_anar_anar = 0 }
		round_variable = agree_anar_anar

		set_variable = { agree_jaco_neos = var:FRA.seat_jaco_neos }
		multiply_variable = { agree_jaco_neos = 0.85 }
		round_variable = agree_jaco_neos

		set_variable = { agree_jaco_leni = var:FRA.seat_jaco_leni }
		multiply_variable = { agree_jaco_leni = 0.9 }
		round_variable = agree_jaco_leni

		set_variable = { agree_sore_oldl = var:FRA.seat_sore_oldl }
		multiply_variable = { agree_sore_oldl = 0.75 }
		round_variable = agree_sore_oldl

		set_variable = { agree_sore_yout = var:FRA.seat_sore_yout }
		multiply_variable = { agree_sore_yout = 0.25 }
		round_variable = agree_sore_yout

		set_variable = { agree_indent = var:FRA.seat_indenpent }
		multiply_variable = { agree_indent = 0 }
		round_variable = agree_indent
	}
	else_if = {
		limit = { has_country_flag = DA_reforming_right }

		set_variable = { agree_synd_trav = var:FRA.seat_synd_trav }
		multiply_variable = { agree_synd_trav = 0.85 }
		round_variable = agree_synd_trav

		set_variable = { agree_synd_radi = var:FRA.seat_synd_radi }
		multiply_variable = { agree_synd_radi = 0.9 }
		round_variable = agree_synd_radi

		set_variable = { agree_anar_parl = var:FRA.seat_anar_parl }
		multiply_variable = { agree_anar_parl = 0.75 }
		round_variable = agree_anar_parl

		set_variable = { agree_anar_anar = var:FRA.seat_anar_anar }
		multiply_variable = { agree_anar_anar = 0.95 }
		round_variable = agree_anar_anar

		set_variable = { agree_jaco_neos = var:FRA.seat_jaco_neos }
		multiply_variable = { agree_jaco_neos = 0.1 }
		round_variable = agree_jaco_neos

		set_variable = { agree_jaco_leni = var:FRA.seat_jaco_leni }
		multiply_variable = { agree_jaco_leni = 0.05 }
		round_variable = agree_jaco_leni

		set_variable = { agree_sore_oldl = var:FRA.seat_sore_oldl }
		multiply_variable = { agree_sore_oldl = 0.15 }
		round_variable = agree_sore_oldl

		set_variable = { agree_sore_yout = var:FRA.seat_sore_yout }
		multiply_variable = { agree_sore_yout = 0.35 }
		round_variable = agree_sore_yout

		set_variable = { agree_indent = var:FRA.seat_indenpent }
		multiply_variable = { agree_indent = 0.6 }
		round_variable = agree_indent
	}

	if = {
		limit = { has_country_flag = DSE_reforming_left }

		set_variable = { agree_synd_trav = var:FRA.seat_synd_trav }
		multiply_variable = { agree_synd_trav = 0.2 }
		round_variable = agree_synd_trav

		set_variable = { agree_synd_radi = var:FRA.seat_synd_radi }
		multiply_variable = { agree_synd_radi = 0.1 }
		round_variable = agree_synd_radi

		set_variable = { agree_anar_parl = var:FRA.seat_anar_parl }
		multiply_variable = { agree_anar_parl = 0.1 }
		round_variable = agree_anar_parl

		set_variable = { agree_anar_anar = var:FRA.seat_anar_anar }
		multiply_variable = { agree_anar_anar = 0 }
		round_variable = agree_anar_anar

		set_variable = { agree_jaco_neos = var:FRA.seat_jaco_neos }
		multiply_variable = { agree_jaco_neos = 0.85 }
		round_variable = agree_jaco_neos

		set_variable = { agree_jaco_leni = var:FRA.seat_jaco_leni }
		multiply_variable = { agree_jaco_leni = 0.9 }
		round_variable = agree_jaco_leni

		set_variable = { agree_sore_oldl = var:FRA.seat_sore_oldl }
		multiply_variable = { agree_sore_oldl = 0.95 }
		round_variable = agree_sore_oldl

		set_variable = { agree_sore_yout = var:FRA.seat_sore_yout }
		multiply_variable = { agree_sore_yout = 0.55 }
		round_variable = agree_sore_yout

		set_variable = { agree_indent = var:FRA.seat_indenpent }
		multiply_variable = { agree_indent = 0 }
		round_variable = agree_indent
	}
	else_if = {
		limit = { has_country_flag = DSE_reforming_common }

		set_variable = { agree_synd_trav = var:FRA.seat_synd_trav }
		multiply_variable = { agree_synd_trav = 0.65 }
		round_variable = agree_synd_trav

		set_variable = { agree_synd_radi = var:FRA.seat_synd_radi }
		multiply_variable = { agree_synd_radi = 0.3 }
		round_variable = agree_synd_radi

		set_variable = { agree_anar_parl = var:FRA.seat_anar_parl }
		multiply_variable = { agree_anar_parl = 0.5 }
		round_variable = agree_anar_parl

		set_variable = { agree_anar_anar = var:FRA.seat_anar_anar }
		multiply_variable = { agree_anar_anar = 0.2 }
		round_variable = agree_anar_anar

		set_variable = { agree_jaco_neos = var:FRA.seat_jaco_neos }
		multiply_variable = { agree_jaco_neos = 0.6 }
		round_variable = agree_jaco_neos

		set_variable = { agree_jaco_leni = var:FRA.seat_jaco_leni }
		multiply_variable = { agree_jaco_leni = 0.6 }
		round_variable = agree_jaco_leni

		set_variable = { agree_sore_oldl = var:FRA.seat_sore_oldl }
		multiply_variable = { agree_sore_oldl = 0.7 }
		round_variable = agree_sore_oldl

		set_variable = { agree_sore_yout = var:FRA.seat_sore_yout }
		multiply_variable = { agree_sore_yout = 0.4 }
		round_variable = agree_sore_yout

		set_variable = { agree_indent = var:FRA.seat_indenpent }
		multiply_variable = { agree_indent = 0.6 }
		round_variable = agree_indent
	}
	else_if = {
		limit = { has_country_flag = DSE_reforming_right }

		set_variable = { agree_synd_trav = var:FRA.seat_synd_trav }
		multiply_variable = { agree_synd_trav = 0.75 }
		round_variable = agree_synd_trav

		set_variable = { agree_synd_radi = var:FRA.seat_synd_radi }
		multiply_variable = { agree_synd_radi = 0.9 }
		round_variable = agree_synd_radi

		set_variable = { agree_anar_parl = var:FRA.seat_anar_parl }
		multiply_variable = { agree_anar_parl = 0.75 }
		round_variable = agree_anar_parl

		set_variable = { agree_anar_anar = var:FRA.seat_anar_anar }
		multiply_variable = { agree_anar_anar = 1 }
		round_variable = agree_anar_anar

		set_variable = { agree_jaco_neos = var:FRA.seat_jaco_neos }
		multiply_variable = { agree_jaco_neos = 0 }
		round_variable = agree_jaco_neos

		set_variable = { agree_jaco_leni = var:FRA.seat_jaco_leni }
		multiply_variable = { agree_jaco_leni = 0 }
		round_variable = agree_jaco_leni

		set_variable = { agree_sore_oldl = var:FRA.seat_sore_oldl }
		multiply_variable = { agree_sore_oldl = 0.2 }
		round_variable = agree_sore_oldl

		set_variable = { agree_sore_yout = var:FRA.seat_sore_yout }
		multiply_variable = { agree_sore_yout = 0.7 }
		round_variable = agree_sore_yout

		set_variable = { agree_indent = var:FRA.seat_indenpent }
		multiply_variable = { agree_indent = 1 }
		round_variable = agree_indent
	}
	FRA_vote_base = yes
}

FRA_vote_change = {
	add_to_variable = {
		agree_synd_trav = var:FRA.agree_synd_trav_change
	}
	clamp_variable = {
		var = agree_synd_trav
		max = var:FRA.seat_synd_trav
		min = 0
	}
	add_to_variable = {
		agree_synd_radi = var:FRA.agree_synd_radi_change
	}
	clamp_variable = {
		var = agree_synd_radi
		max = var:FRA.seat_synd_radi
		min = 0
	}
	add_to_variable = {
		agree_anar_parl = var:FRA.agree_anar_parl_change
	}
	clamp_variable = {
		var = agree_anar_parl
		max = var:FRA.seat_anar_parl
		min = 0
	}
	add_to_variable = {
		agree_anar_anar = var:FRA.agree_anar_anar_change
	}
	clamp_variable = {
		var = agree_anar_anar
		max = var:FRA.seat_anar_anar
		min = 0
	}
	add_to_variable = {
		agree_jaco_neos = var:FRA.agree_jaco_neos_change
	}
	clamp_variable = {
		var = agree_jaco_neos
		max = var:FRA.seat_jaco_neos
		min = 0
	}
	add_to_variable = {
		agree_jaco_leni = var:FRA.agree_jaco_leni_change
	}
	clamp_variable = {
		var = agree_jaco_leni
		max = var:FRA.seat_jaco_leni
		min = 0
	}
	add_to_variable = {
		agree_sore_oldl = var:FRA.agree_sore_oldl_change
	}
	clamp_variable = {
		var = agree_sore_oldl
		max = var:FRA.seat_sore_oldl
		min = 0
	}
	add_to_variable = {
		agree_sore_yout = var:FRA.agree_sore_yout_change
	}
	clamp_variable = {
		var = agree_sore_yout
		max = var:FRA.seat_sore_yout
		min = 0
	}
	add_to_variable = {
		agree_indent = var:FRA.agree_indent_change
	}
	clamp_variable = {
		var = agree_indent
		max = var:FRA.seat_indenpent
		min = 0
	}
	FRA_vote_base = yes
}

FRA_vote_base = {
	set_variable = {
		FRA_vote_agree = 0
	}
	add_to_variable = {
		FRA_vote_agree = var:FRA.agree_synd_trav
	}
	add_to_variable = {
		FRA_vote_agree = var:FRA.agree_synd_radi
	}
	add_to_variable = {
		FRA_vote_agree = var:FRA.agree_anar_parl
	}
	add_to_variable = {
		FRA_vote_agree = var:FRA.agree_anar_anar
	}
	add_to_variable = {
		FRA_vote_agree = var:FRA.agree_jaco_neos
	}
	add_to_variable = {
		FRA_vote_agree = var:FRA.agree_jaco_leni
	}
	add_to_variable = {
		FRA_vote_agree = var:FRA.agree_sore_oldl
	}
	add_to_variable = {
		FRA_vote_agree = var:FRA.agree_sore_yout
	}
	add_to_variable = {
		FRA_vote_agree = var:FRA.agree_indent
	}
}

FRA_vote_change_slight = {
	custom_effect_tooltip = vote_agree_up_slight
	hidden_effect = {
		random_list = {
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_synd_trav = var:FRA.seat_synd_trav
						}
						check_variable = {
							frasoc_synd < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_synd_trav_change = 5
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_synd_radi = var:FRA.seat_synd_radi
						}
						check_variable = {
							frasoc_synd < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_synd_radi_change = 5
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_anar_parl = var:FRA.seat_anar_parl
						}
						check_variable = {
							frasoc_anar < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_anar_parl_change = 5
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_anar_anar = var:FRA.seat_anar_anar
						}
						check_variable = {
							frasoc_anar < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_anar_anar_change = 5
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_jaco_neos = var:FRA.seat_jaco_neos
						}
						check_variable = {
							frasoc_jaco < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_jaco_neos_change = 5
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_jaco_leni = var:FRA.seat_jaco_leni
						}
						check_variable = {
							frasoc_jaco < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_jaco_leni_change = 5
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_sore_oldl = var:FRA.seat_sore_oldl
						}
						check_variable = {
							frasoc_sore < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_sore_oldl_change = 5
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_sore_yout = var:FRA.seat_sore_yout
						}
						check_variable = {
							frasoc_sore < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_sore_yout_change = 5
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					check_variable = {
						agree_indent = var:FRA.seat_indenpent
					}
					factor = 0
				}
				set_temp_variable = {
					agree_indent_change = 5
				}
				FRA_vote_change = yes
			}
		}
	}
}

FRA_vote_change_less = {
	custom_effect_tooltip = vote_agree_up_less
	hidden_effect = {
		random_list = {
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_synd_trav = var:FRA.seat_synd_trav
						}
						check_variable = {
							frasoc_synd < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_synd_trav_change = 10
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_synd_radi = var:FRA.seat_synd_radi
						}
						check_variable = {
							frasoc_synd < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_synd_radi_change = 10
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_anar_parl = var:FRA.seat_anar_parl
						}
						check_variable = {
							frasoc_anar < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_anar_parl_change = 10
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_anar_anar = var:FRA.seat_anar_anar
						}
						check_variable = {
							frasoc_anar < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_anar_anar_change = 10
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_jaco_neos = var:FRA.seat_jaco_neos
						}
						check_variable = {
							frasoc_jaco < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_jaco_neos_change = 10
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_jaco_leni = var:FRA.seat_jaco_leni
						}
						check_variable = {
							frasoc_jaco < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_jaco_leni_change = 10
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_sore_oldl = var:FRA.seat_sore_oldl
						}
						check_variable = {
							frasoc_sore < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_sore_oldl_change = 10
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_sore_yout = var:FRA.seat_sore_yout
						}
						check_variable = {
							frasoc_sore < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_sore_yout_change = 10
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					check_variable = {
						agree_indent = seat_indenpent
					}
					factor = 0
				}
				set_temp_variable = {
					agree_indent_change = 10
				}
				FRA_vote_change = yes
			}
		}
	}
}

FRA_vote_change_midium = {
	custom_effect_tooltip = vote_agree_up_midium
	hidden_effect = {
		random_list = {
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_synd_trav = var:FRA.seat_synd_trav
						}
						check_variable = {
							frasoc_synd < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_synd_trav_change = 15
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_synd_radi = var:FRA.seat_synd_radi
						}
						check_variable = {
							frasoc_synd < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_synd_radi_change = 15
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_anar_parl = var:FRA.seat_anar_parl
						}
						check_variable = {
							frasoc_anar < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_anar_parl_change = 15
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_anar_anar = var:FRA.seat_anar_anar
						}
						check_variable = {
							frasoc_anar < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_anar_anar_change = 15
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_jaco_neos = var:FRA.seat_jaco_neos
						}
						check_variable = {
							frasoc_jaco < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_jaco_neos_change = 15
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_jaco_leni = var:FRA.seat_jaco_leni
						}
						check_variable = {
							frasoc_jaco < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_jaco_leni_change = 15
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_sore_oldl = var:FRA.seat_sore_oldl
						}
						check_variable = {
							frasoc_sore < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_sore_oldl_change = 15
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_sore_yout = var:FRA.seat_sore_yout
						}
						check_variable = {
							frasoc_sore < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_sore_yout_change = 15
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					check_variable = {
						agree_indent = seat_indenpent
					}
					factor = 0
				}
				set_temp_variable = {
					agree_indent_change = 15
				}
				FRA_vote_change = yes
			}
		}
	}
}

FRA_vote_change_many = {
	custom_effect_tooltip = vote_agree_up_many
	hidden_effect = {
		random_list = {
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_synd_trav = var:FRA.seat_synd_trav
						}
						check_variable = {
							frasoc_synd < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_synd_trav_change = 20
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_synd_radi = var:FRA.seat_synd_radi
						}
						check_variable = {
							frasoc_synd < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_synd_radi_change = 20
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_anar_parl = var:FRA.seat_anar_parl
						}
						check_variable = {
							frasoc_anar < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_anar_parl_change = 20
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_anar_anar = var:FRA.seat_anar_anar
						}
						check_variable = {
							frasoc_anar < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_anar_anar_change = 20
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_jaco_neos = var:FRA.seat_jaco_neos
						}
						check_variable = {
							frasoc_jaco < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_jaco_neos_change = 20
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_jaco_leni = var:FRA.seat_jaco_leni
						}
						check_variable = {
							frasoc_jaco < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_jaco_leni_change = 20
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_sore_oldl = var:FRA.seat_sore_oldl
						}
						check_variable = {
							frasoc_sore < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_sore_oldl_change = 20
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_sore_yout = var:FRA.seat_sore_yout
						}
						check_variable = {
							frasoc_sore < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_sore_yout_change = 20
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					check_variable = {
						agree_indent = seat_indenpent
					}
					factor = 0
				}
				set_temp_variable = {
					agree_indent_change = 20
				}
				FRA_vote_change = yes
			}
		}
	}
}

FRA_vote_change_mass = {
	custom_effect_tooltip = vote_agree_up_mass
	hidden_effect = {
		random_list = {
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_synd_trav = var:FRA.seat_synd_trav
						}
						check_variable = {
							frasoc_synd < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_synd_trav_change = 25
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_synd_radi = var:FRA.seat_synd_radi
						}
						check_variable = {
							frasoc_synd < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_synd_radi_change = 25
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_anar_parl = var:FRA.seat_anar_parl
						}
						check_variable = {
							frasoc_anar < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_anar_parl_change = 25
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_anar_anar = var:FRA.seat_anar_anar
						}
						check_variable = {
							frasoc_anar < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_anar_anar_change = 25
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_jaco_neos = var:FRA.seat_jaco_neos
						}
						check_variable = {
							frasoc_jaco < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_jaco_neos_change = 25
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_jaco_leni = var:FRA.seat_jaco_leni
						}
						check_variable = {
							frasoc_jaco < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_jaco_leni_change = 25
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_sore_oldl = var:FRA.seat_sore_oldl
						}
						check_variable = {
							frasoc_sore < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_sore_oldl_change = 25
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					OR = {
						check_variable = {
							agree_sore_yout = var:FRA.seat_sore_yout
						}
						check_variable = {
							frasoc_sore < 30
						}
					}
					factor = 0
				}
				set_temp_variable = {
					agree_sore_yout_change = 25
				}
				FRA_vote_change = yes
			}
			1 = {
				modifier = {
					check_variable = {
						agree_indent = seat_indenpent
					}
					factor = 0
				}
				set_temp_variable = {
					agree_indent_change = 25
				}
				FRA_vote_change = yes
			}
		}
	}
}

FRA_vote_end = {
	set_variable = {
		agree_synd_trav = 0
	}
	set_variable = {
		agree_synd_radi = 0
	}
	set_variable = {
		agree_anar_parl = 0
	}
	set_variable = {
		agree_anar_anar = 0
	}
	set_variable = {
		agree_jaco_neos = 0
	}
	set_variable = {
		agree_jaco_leni = 0
	}
	set_variable = {
		agree_sore_oldl = 0
	}
	set_variable = {
		agree_sore_yout = 0
	}
	set_variable = {
		agree_indent = 0
	}

	clr_country_flag = voting_time
	clr_country_flag = choose_other_law_focus

	clr_country_flag = CGT_reforming
	clr_country_flag = bill_cgt_strengthen
	clr_country_flag = bill_cgt_release_anar
	clr_country_flag = bill_cgt_release_jaco
	clr_country_flag = bill_cgt_release_sore
	clr_country_flag = synd_FRA_soc_bill_CGT_reform
	clr_country_flag = anar_FRA_soc_bill_CGT_reform
	clr_country_flag = jaco_FRA_soc_bill_CGT_reform
	clr_country_flag = sore_FRA_soc_bill_CGT_reform

	clr_country_flag = WR_reforming
	clr_country_flag = FRA_women_right_radical_start

	clr_country_flag = DSP_reforming_left
	clr_country_flag = DSP_reforming_common
	clr_country_flag = DSP_reforming_right
	clr_country_flag = bill_DSP_strengthen_left
	clr_country_flag = bill_DSP_strengthen_common
	clr_country_flag = bill_DSP_strengthen_common_left
	clr_country_flag = bill_DSP_strengthen_common_right
	clr_country_flag = bill_DSP_strengthen_right
	clr_country_flag = bill_DSP_strengthen_right_left
	clr_country_flag = bill_DSP_strengthen_right_right

	clr_country_flag = DA_reforming_left
	clr_country_flag = DA_reforming_right

	clr_country_flag = DSE_reforming_left
	clr_country_flag = DSE_reforming_common
	clr_country_flag = DSE_reforming_right
}

FRA_seat_change = {
	if = {
		limit = {
			check_variable = {
				stc = 0
			}
		}
	}
	else = {
		add_to_variable = {
			seat_synd_trav = stc
		}
		custom_effect_tooltip = seat_synd_trav_change_tips
	}
	if = {
		limit = {
			check_variable = {
				src = 0
			}
		}
	}
	else = {
		add_to_variable = {
			seat_synd_radi = src
		}
		custom_effect_tooltip = seat_synd_radi_change_tips
	}
	set_variable = {
		seat_synd = var:FRA.seat_synd_trav
	}
	add_to_variable = {
		seat_synd = var:FRA.seat_synd_radi
	}
	if = {
		limit = {
			check_variable = {
				apc = 0
			}
		}
	}
	else = {
		add_to_variable = {
			seat_anar_parl = apc
		}
		custom_effect_tooltip = seat_anar_parl_change_tips
	}
	if = {
		limit = {
			check_variable = {
				aac = 0
			}
		}
	}
	else = {
		add_to_variable = {
			seat_anar_anar = aac
		}
		custom_effect_tooltip = seat_anar_anar_change_tips
	}
	set_variable = {
		seat_anar = var:FRA.seat_anar_parl
	}
	add_to_variable = {
		seat_anar = var:FRA.seat_anar_anar
	}
	if = {
		limit = {
			check_variable = {
				jnc = 0
			}
		}
	}
	else = {
		add_to_variable = {
			seat_jaco_neos = jnc
		}
		custom_effect_tooltip = seat_jaco_neos_change_tips
	}
	if = {
		limit = {
			check_variable = {
				jlc = 0
			}
		}
	}
	else = {
		add_to_variable = {
			seat_jaco_leni = jlc
		}
		custom_effect_tooltip = seat_jaco_leni_change_tips
	}
	set_variable = {
		seat_jaco = var:FRA.seat_jaco_neos
	}
	add_to_variable = {
		seat_jaco = var:FRA.seat_jaco_leni
	}
	if = {
		limit = {
			check_variable = {
				soc = 0
			}
		}
	}
	else = {
		add_to_variable = {
			seat_sore_oldl = soc
		}
		custom_effect_tooltip = seat_sore_oldl_change_tips
	}
	if = {
		limit = {
			check_variable = {
				syc = 0
			}
		}
	}
	else = {
		add_to_variable = {
			seat_sore_yout = syc
		}
		custom_effect_tooltip = seat_sore_yout_change_tips
	}
	set_variable = {
		seat_sore = var:FRA.seat_sore_oldl
	}
	add_to_variable = {
		seat_sore = var:FRA.seat_sore_yout
	}
	if = {
		limit = {
			check_variable = {
				sindc = 0
			}
		}
	}
	else = {
		add_to_variable = {
			seat_indenpent = sindc
		}
		custom_effect_tooltip = seat_indenpent_change_tips
	}
	hidden_effect = {
		FRA_popularities_change = yes
		FRA_vote_change = yes
	}
}

FRA_popularities_change = {
	set_temp_variable = {
		pop_synd = stc
	}
	add_to_temp_variable = {
		pop_synd = src
	}
	divide_temp_variable = {
		pop_synd = 650
	}
	if = {
		limit = {
			check_variable = {
				pop_synd > 0
			}
		}
		add_popularity = {
			ideology = syndicalist
			popularity = pop_synd
		}
	}
	set_temp_variable = {
		pop_radi = apc
	}
	add_to_temp_variable = {
		pop_radi = aac
	}
	divide_temp_variable = {
		pop_radi = 650
	}
	if = {
		limit = {
			check_variable = {
				pop_radi > 0
			}
		}
		add_popularity = {
			ideology = radical_socialist
			popularity = pop_radi
		}
	}
	set_temp_variable = {
		pop_tota = jnc
	}
	add_to_temp_variable = {
		pop_tota = jlc
	}
	add_to_temp_variable = {
		pop_tota = soc
	}
	add_to_temp_variable = {
		pop_tota = syc
	}
	divide_temp_variable = {
		pop_tota = 650
	}
	if = {
		limit = {
			check_variable = {
				pop_tota > 0
			}
		}
		add_popularity = {
			ideology = totalist
			popularity = pop_tota
		}
	}
	set_temp_variable = {
		pop_demo = sindc
	}
	divide_temp_variable = {
		pop_demo = 650
	}
	if = {
		limit = {
			check_variable = {
				pop_demo > 0
			}
		}
		add_popularity = {
			ideology = social_democrat
			popularity = pop_demo
		}
	}
}

FRA_govern_leader_change = {
	set_variable = {
		dominant_faction_synd = 0
	}
	set_variable = {
		dominant_faction_anar = 0
	}
	set_variable = {
		dominant_faction_jaco = 0
	}
	set_variable = {
		dominant_faction_sore = 0
	}
	if = {
		limit = {
			OR = {
				has_country_flag = y1936_CBGT_leader_synd
				has_country_flag = original_CBGT_leader
			}
		}
		add_to_variable = {
			dominant_faction_synd = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_CBGT_leader_anar
		}
		add_to_variable = {
			dominant_faction_anar = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_CBGT_leader_jaco
		}
		add_to_variable = {
			dominant_faction_jaco = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_CBGT_leader_sore
		}
		add_to_variable = {
			dominant_faction_sore = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_CCSP_leader_synd
		}
		add_to_variable = {
			dominant_faction_synd = 1
		}
	}
	if = {
		limit = {
			OR = {
				has_country_flag = original_CCSP_leader
				has_country_flag = y1936_CCSP_leader_anar
			}
		}
		add_to_variable = {
			dominant_faction_anar = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_CCSP_leader_jaco
		}
		add_to_variable = {
			dominant_faction_jaco = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_CCSP_leader_sore
		}
		add_to_variable = {
			dominant_faction_sore = 1
		}
	}
	if = {
		limit = {
			OR = {
				has_country_flag = y1936_DFA_leader_synd
				has_country_flag = original_DFA_leader
			}
		}
		add_to_variable = {
			dominant_faction_synd = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_DFA_leader_anar
		}
		add_to_variable = {
			dominant_faction_anar = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_DFA_leader_jaco
		}
		add_to_variable = {
			dominant_faction_jaco = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_DFA_leader_sore
		}
		add_to_variable = {
			dominant_faction_sore = 1
		}
	}
	if = {
		limit = {
			OR = {
				has_country_flag = y1936_DED_leader_synd
				has_country_flag = original_DED_leader
			}
		}
		add_to_variable = {
			dominant_faction_synd = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_DED_leader_anar
		}
		add_to_variable = {
			dominant_faction_anar = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_DED_leader_jaco
		}
		add_to_variable = {
			dominant_faction_jaco = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_DED_leader_sore
		}
		add_to_variable = {
			dominant_faction_sore = 1
		}
	}
	if = {
		limit = {
			OR = {
				has_country_flag = y1936_DIS_leader_synd
				has_country_flag = original_DIS_leader
			}
		}
		add_to_variable = {
			dominant_faction_synd = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_DIS_leader_anar
		}
		add_to_variable = {
			dominant_faction_anar = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_DIS_leader_jaco
		}
		add_to_variable = {
			dominant_faction_jaco = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_DIS_leader_sore
		}
		add_to_variable = {
			dominant_faction_sore = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_DSRG_leader_synd
		}
		add_to_variable = {
			dominant_faction_synd = 1
		}
	}
	if = {
		limit = {
			OR = {
				has_country_flag = original_DSRG_leader
				has_country_flag = y1936_DSRG_leader_anar
			}
		}
		add_to_variable = {
			dominant_faction_anar = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_DSRG_leader_jaco
		}
		add_to_variable = {
			dominant_faction_jaco = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_DSRG_leader_sore
		}
		add_to_variable = {
			dominant_faction_sore = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_CGSC_leader_synd
		}
		add_to_variable = {
			dominant_faction_synd = 1
		}
	}
	if = {
		limit = {
			OR = {
				has_country_flag = original_CGSC_leader
				has_country_flag = y1936_CGSC_leader_anar
			}
		}
		add_to_variable = {
			dominant_faction_anar = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_CGSC_leader_jaco
		}
		add_to_variable = {
			dominant_faction_jaco = 1
		}
	}
	if = {
		limit = {
			has_country_flag = y1936_CGSC_leader_sore
		}
		add_to_variable = {
			dominant_faction_sore = 1
		}
	}
}

change_politic_mission = {
	activate_mission = FRA_mission_change
		random_list = {
			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_worker
				}
				set_country_flag = politic_mission_w1_enable		
			}
			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_worker
				}
				
				set_country_flag = politic_mission_w2_enable
			}
			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_worker
				}
				
				set_country_flag = politic_mission_w3_enable
			}

			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_peasant
				}
				
				set_country_flag = politic_mission_p1_enable	
			}
			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_peasant
				}
				
				set_country_flag = politic_mission_p2_enable
			}
			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_peasant
				}
				
				set_country_flag = politic_mission_p3_enable
			}

			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_merchant
				}
			
				set_country_flag = politic_mission_m1_enable
			}
			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_merchant
				}
				
				set_country_flag = politic_mission_m2_enable
			}
			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_merchant
				}
				
				set_country_flag = politic_mission_m3_enable
			}

			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_scholoar
				}
				
				set_country_flag = politic_mission_s1_enable
			}
			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_scholoar
				}
				
				set_country_flag = politic_mission_s2_enable
			}
			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_scholoar
				}
				
				set_country_flag = politic_mission_s3_enable
			}

			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_force
				}
				
				set_country_flag = politic_mission_f1_enable
			}
			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_force
				}
				
				set_country_flag = politic_mission_f2_enable
			}
			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_force
				}
			
				set_country_flag = politic_mission_f3_enable
			}

			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_bureaucrat
				}
	
				set_country_flag = politic_mission_b1_enable
			}
			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_bureaucrat
				}
			
				set_country_flag = politic_mission_b2_enable
			}
			1 = {
				modifier = {
					factor = 0
					has_country_flag = mission_bureaucrat
				}
				
				set_country_flag = politic_mission_b3_enable
			}
		}
		
	clr_country_flag = mission_worker
	clr_country_flag = mission_peasant
	clr_country_flag = mission_merchant
	clr_country_flag = mission_scholoar
	clr_country_flag = mission_force
	clr_country_flag = mission_bureaucrat
}

FRA_politics_points_change = {
	custom_effect_tooltip = FRA_politics_points_change_tips
	add_to_variable = {
		FRA_politics_points = var:FRA.FRA_politics_points_change
	}
	clamp_variable = {
		var = FRA_politics_points
		min = 0
	}
}

FRA_judge_bill = {
	if = {
		limit = { has_country_flag = synd_FRA_soc_bill_CGT_reform }
		clr_country_flag = original_FRA_soc_bill_CGT
		set_country_flag = synd_FRA_soc_bill_CGT
	}
	if = {
		limit = { has_country_flag = anar_FRA_soc_bill_CGT_reform }
		clr_country_flag = original_FRA_soc_bill_CGT
		set_country_flag = anar_FRA_soc_bill_CGT
	}
	if = {
		limit = { has_country_flag = jaco_FRA_soc_bill_CGT_reform }
		clr_country_flag = original_FRA_soc_bill_CGT
		set_country_flag = jaco_FRA_soc_bill_CGT
	}
	if = {
		limit = { has_country_flag = sore_FRA_soc_bill_CGT_reform }
		clr_country_flag = original_FRA_soc_bill_CGT
		set_country_flag = sore_FRA_soc_bill_CGT
	}

	if = {
		limit = { has_country_flag = WR_reforming }
		clr_country_flag = original_FRA_soc_bill_WR
		if = {
			limit = {
				has_completed_focus = FRA_women_right_radical_military
				has_completed_focus = FRA_women_right_radical_administrative
				has_completed_focus = FRA_women_right_radical_proportion
			}
			set_country_flag = reform_end_FRA_soc_bill_WR
		}
		else = {
			set_country_flag = reform_FRA_soc_bill_WR
		}
	}

	
		
	if = {
		limit = { has_country_flag = bill_DSP_strengthen_left }
		clr_country_flag = original_FRA_soc_bill_DSP
		set_country_flag = left_FRA_soc_bill_DSP
	}
	else_if = {
		limit = { has_country_flag = bill_DSP_strengthen_common_left }
		clr_country_flag = original_FRA_soc_bill_DSP
		set_country_flag = common_left_FRA_soc_bill_DSP
	}
	else_if = {
		limit = { has_country_flag = bill_DSP_strengthen_common_right }
		clr_country_flag = original_FRA_soc_bill_DSP
		set_country_flag = common_right_FRA_soc_bill_DSP
	}
	else_if = {
		limit = { has_country_flag = bill_DSP_strengthen_right_left }
		clr_country_flag = original_FRA_soc_bill_DSP
		set_country_flag = right_left_FRA_soc_bill_DSP
	}
	else_if = {
		limit = { has_country_flag = bill_DSP_strengthen_right_right }
		clr_country_flag = original_FRA_soc_bill_DSP
		set_country_flag = right_right_FRA_soc_bill_DSP
	}
	

	if = {
		limit = { has_country_flag = bill_DA_reforming_left }
		clr_country_flag = original_FRA_soc_bill_DA
		set_country_flag = left_FRA_soc_bill_DA
	}
	else_if ={
		limit = { has_country_flag = bill_DA_reforming_right }
		clr_country_flag = original_FRA_soc_bill_DA
		set_country_flag = right_FRA_soc_bill_DA
	}

	if = {
		limit = { has_country_flag = bill_DSE_reforming_left }
		clr_country_flag = original_FRA_soc_bill_DSE
		set_country_flag = left_FRA_soc_bill_DSE
	}
	else_if = {
		limit = { has_country_flag = bill_DSE_reforming_common }
		clr_country_flag = original_FRA_soc_bill_DSE
		set_country_flag = common_FRA_soc_bill_DSE
	}
	else_if = {
		limit = { has_country_flag = bill_DSE_reforming_right }
		clr_country_flag = original_FRA_soc_bill_DSE
		set_country_flag = right_FRA_soc_bill_DSE
	}
}

FRA_politics_bill_buff_change = {
	if = {
		limit = { has_country_flag = original_FRA_soc_bill_CGT }
		set_variable = { CGT_political_power_factor = -0.1	}
		set_variable = { CGT_consumer_goods_factor = 0.05	}
		set_variable = { CGT_war_support_factor = -0.025	}
		set_variable = { CGT_production_factory_start_efficiency_factor = 0.05	}
		set_variable = { CGT_industrial_capacity_factory = 0.025	}
	}
	else = {
		set_variable = { CGT_political_power_factor = temp_CGT_political_power_factor	}
		set_variable = { CGT_consumer_goods_factor = temp_CGT_consumer_goods_factor	}
		set_variable = { CGT_war_support_factor = temp_CGT_war_support_factor	}
		set_variable = { CGT_production_factory_start_efficiency_factor = temp_CGT_production_factory_start_efficiency_factor	}
		set_variable = { CGT_industrial_capacity_factory = temp_CGT_industrial_capacity_factory	}
		set_variable = { CGT_stability_factor = temp_CGT_stability_factor	}
	}

	if = {
		limit = {	has_country_flag = original_FRA_soc_bill_DSE	}
		set_variable = { DSE_stability_factor = 0.025 } 
        set_variable = { DSE_drift_defence_factor = 0.05 }
     	set_variable = { DSE_required_garrison_factor = -0.025 }
        set_variable = { DSE_operation_outcome = 0.05 } 
	    set_variable = { DSE_operative_slot = 1 }
	    set_variable = { DSE_command_power_gain = -0.01 }
        set_variable = { DSE_army_org_factor = -0.025 }
        set_variable = { DSE_mobilization_speed = -0.05 } 
        set_variable = { DSE_political_power_factor = -0.05 }
	}
	else = {
		set_variable = { DSE_stability_factor = temp_DSE_stability_factor } 
        set_variable = { DSE_drift_defence_factor = temp_DSE_drift_defence_factor }
     	set_variable = { DSE_required_garrison_factor = temp_DSE_required_garrison_factor }
        set_variable = { DSE_operation_outcome = temp_DSE_operation_outcome } 
	    set_variable = { DSE_operative_slot = temp_DSE_operative_slot }
	    set_variable = { DSE_command_power_gain = temp_DSE_command_power_gain }
        set_variable = { DSE_army_org_factor = temp_DSE_army_org_factor }
        set_variable = { DSE_mobilization_speed = temp_DSE_mobilization_speed } 
        set_variable = { DSE_political_power_factor = temp_DSE_political_power_factor }
	}


	if = {
		limit = {	has_country_flag = original_FRA_soc_bill_DA	}
		set_variable = { DA_stability_factor = -0.025 }
		set_variable = { DA_political_power_factor = 0.05 }
		set_variable = { DA_research_speed_factor = 0.025 }
		set_variable = { DA_production_factory_efficiency_gain_factor = -0.025 }
	}
	else = {
		set_variable = { DA_stability_factor = temp_DA_stability_factor }
		set_variable = { DA_political_power_factor = temp_DA_political_power_factor }
		set_variable = { DA_research_speed_factor = temp_DA_research_speed_factor }
		set_variable = { DA_production_factory_efficiency_gain_factor = temp_DA_production_factory_efficiency_gain_factor }
	}

	if = {
		limit = { has_country_flag = original_FRA_soc_bill_DSP	}
		set_variable = { DSP_political_power_factor = -0.05 }
		set_variable = { DSP_stability_factor = -0.025 }
		set_variable = { DSP_war_support_factor = 0.05 }
		set_variable = { DSP_production_factory_max_efficiency_factor = 0.025 }
		set_variable = { DSP_drift_defence_factor = 0.05 }
		set_variable = { DSP_research_speed_factor = 0.01 }
	}
	else = {
		set_variable = { DSP_political_power_factor = temp_DSP_political_power_factor }
		set_variable = { DSP_stability_factor = temp_DSP_stability_factor }
		set_variable = { DSP_war_support_factor = temp_DSP_war_support_factor }
		set_variable = { DSP_production_factory_max_efficiency_factor = temp_DSP_production_factory_max_efficiency_factor }
		set_variable = { DSP_drift_defence_factor = temp_DSP_drift_defence_factor }
		set_variable = { DSP_research_speed_factor = temp_DSP_research_speed_factor }
	}

	if = {
		limit = { has_country_flag = original_FRA_soc_bill_WR }
		set_variable = { WR_stability_factor = -0.025 }
		set_variable = { WR_war_support_factor = 0 }
		set_variable = { WR_political_power_factor = -0.05 }
		set_variable = { WR_conscription_factor = 0.05 }
		set_variable = { WR_consumer_goods_factor = -0.05 }
		set_variable = { WR_industrial_capacity_factory = 0.025 }
	}
	else = {
		set_variable = { WR_stability_factor = temp_WR_stability_factor }
		set_variable = { WR_war_support_factor = temp_WR_war_support_factor }
		set_variable = { WR_political_power_factor = temp_WR_political_power_factor }
		set_variable = { WR_conscription_factor = temp_WR_conscription_factor }
		set_variable = { WR_consumer_goods_factor = temp_WR_consumer_goods_factor }
		set_variable = { WR_industrial_capacity_factory = temp_WR_industrial_capacity_factory }
	}

	set_variable = { allbill_command_power_gain = 0 }
	set_variable = { allbill_army_org_factor = 0 }
	set_variable = { allbill_mobilization_speed = 0 }
	set_variable = { allbill_political_power_factor = 0 }
	set_variable = { allbill_stability_factor = 0 }
	set_variable = { allbill_consumer_goods_factor = 0 }
	set_variable = { allbill_research_speed_factor = 0 }
	set_variable = { allbill_war_support_factor = 0 }
	set_variable = { allbill_conscription_factor = 0 }
	set_variable = { allbill_local_non_core_manpower = 0 }
	set_variable = { allbill_local_supplies = 0 }
	set_variable = { allbill_global_building_slots_factor = 0 }
	set_variable = { allbill_production_speed_buildings_factor = 0 }
	set_variable = { allbill_production_factory_start_efficiency_factor = 0 }
	set_variable = { allbill_production_factory_max_efficiency_factor = 0 }
	set_variable = { allbill_line_change_production_efficiency_factor = 0 }
	set_variable = { allbill_production_factory_efficiency_gain_factor = 0 }
	set_variable = { allbill_industrial_capacity_factory = 0 }
	set_variable = { allbill_industrial_capacity_dockyard = 0 }
	set_variable = { allbill_industry_repair_factor = 0 }
	set_variable = { allbill_industry_free_repair_factor = 0 }
	set_variable = { allbill_local_resources_factor = 0 }
	set_variable = { allbill_production_lack_of_resource_penalty_factor = 0 }
	set_variable = { allbill_training_time_factor = 0 }
	set_variable = { allbill_out_of_supply_factor = 0 }
	set_variable = { allbill_drift_defence_factor = 0 }
	set_variable = { allbill_required_garrison_factor = 0 }
	set_variable = { allbill_operation_outcome = 0 }
	set_variable = { allbill_operative_slot = 0 }
	set_variable = { allbill_encryption = 0 }
	set_variable = { allbill_encryption_factor = 0 }
	set_variable = { allbill_decryption = 0 }
	set_variable = { allbill_decryption_factor = 0 }

	add_to_variable = {	allbill_command_power_gain = DSE_command_power_gain }
	add_to_variable = { allbill_army_org_factor = DSE_army_org_factor }
	add_to_variable = { allbill_mobilization_speed = DSE_mobilization_speed }

	add_to_variable = {	allbill_political_power_factor = CGT_political_power_factor }
	add_to_variable = { allbill_political_power_factor = DSE_political_power_factor }
	add_to_variable = { allbill_political_power_factor = DA_political_power_factor }
	add_to_variable = { allbill_political_power_factor = DSP_political_power_factor }
	add_to_variable = {	allbill_political_power_factor = WR_political_power_factor }

	add_to_variable = { allbill_stability_factor = CGT_stability_factor }
	add_to_variable = {	allbill_stability_factor = DSE_stability_factor	}
	add_to_variable = {	allbill_stability_factor = DA_stability_factor }
	add_to_variable = { allbill_stability_factor = DSP_stability_factor }
	add_to_variable = { allbill_stability_factor = WR_stability_factor }

	add_to_variable = { allbill_consumer_goods_factor = CGT_consumer_goods_factor }
	add_to_variable = { allbill_consumer_goods_factor = DSE_consumer_goods_factor }
	add_to_variable = { allbill_consumer_goods_factor = DA_consumer_goods_factor }
	add_to_variable = { allbill_consumer_goods_factor = DSP_consumer_goods_factor }
	add_to_variable = { allbill_consumer_goods_factor = WR_consumer_goods_factor }

	add_to_variable = { allbill_research_speed_factor = CGT_research_speed_factor }
	add_to_variable = { allbill_research_speed_factor = DSE_research_speed_factor }
	add_to_variable = { allbill_research_speed_factor = DA_research_speed_factor }
	add_to_variable = { allbill_research_speed_factor = DSP_research_speed_factor }
	add_to_variable = { allbill_research_speed_factor = WR_research_speed_factor }

	add_to_variable = { allbill_war_support_factor = CGT_war_support_factor }
	add_to_variable = { allbill_war_support_factor = DSE_war_support_factor }
	add_to_variable = { allbill_war_support_factor = DA_war_support_factor }
	add_to_variable = { allbill_war_support_factor = DSP_war_support_factor }
	add_to_variable = { allbill_war_support_factor = WR_war_support_factor }

	add_to_variable = { allbill_conscription_factor = CGT_conscription_factor }
	add_to_variable = { allbill_conscription_factor = DSE_conscription_factor }
	add_to_variable = { allbill_conscription_factor = DA_conscription_factor }
	add_to_variable = { allbill_conscription_factor = DSP_conscription_factor }
	add_to_variable = { allbill_conscription_factor = WR_conscription_factor }

	add_to_variable = { allbill_local_non_core_manpower = CGT_local_non_core_manpower }
	add_to_variable = { allbill_local_non_core_manpower = DSE_local_non_core_manpower }
	add_to_variable = { allbill_local_non_core_manpower = DA_local_non_core_manpower }
	add_to_variable = { allbill_local_non_core_manpower = DSP_local_non_core_manpower }
	add_to_variable = { allbill_local_non_core_manpower = WR_local_non_core_manpower }

	add_to_variable = { allbill_local_supplies = CGT_local_supplies }
	add_to_variable = {	allbill_local_supplies = DSE_local_supplies	}
	add_to_variable = {	allbill_local_supplies = DA_local_supplies	}
	add_to_variable = {	allbill_local_supplies = DSP_local_supplies	}
	add_to_variable = {	allbill_local_supplies = WR_local_supplies }

	add_to_variable = {	allbill_global_building_slots_factor = CGT_global_building_slots_factor	}
	add_to_variable = {	allbill_global_building_slots_factor = DSE_global_building_slots_factor	}
	add_to_variable = {	allbill_global_building_slots_factor = DA_global_building_slots_factor }
	add_to_variable = {	allbill_global_building_slots_factor = DSP_global_building_slots_factor	}
	add_to_variable = {	allbill_global_building_slots_factor = WR_global_building_slots_factor }

	add_to_variable = {	allbill_production_speed_buildings_factor = CGT_production_speed_buildings_factor	}
	add_to_variable = {	allbill_production_speed_buildings_factor = DSE_production_speed_buildings_factor	}
	add_to_variable = {	allbill_production_speed_buildings_factor = DA_production_speed_buildings_factor	}
	add_to_variable = {	allbill_production_speed_buildings_factor = DSP_production_speed_buildings_factor	}
	add_to_variable = {	allbill_production_speed_buildings_factor = WR_production_speed_buildings_factor	}

	add_to_variable = {	allbill_production_factory_start_efficiency_factor = CGT_production_factory_start_efficiency_factor	}
	add_to_variable = {	allbill_production_factory_start_efficiency_factor = DSE_production_factory_start_efficiency_factor }
	add_to_variable = {	allbill_production_factory_start_efficiency_factor = DA_production_factory_start_efficiency_factor	}
	add_to_variable = {	allbill_production_factory_start_efficiency_factor = DSP_production_factory_start_efficiency_factor	}
	add_to_variable = {	allbill_production_factory_start_efficiency_factor = WR_production_factory_start_efficiency_factor	}

	add_to_variable = {	allbill_production_factory_max_efficiency_factor = CGT_production_factory_max_efficiency_factor	}
	add_to_variable = {	allbill_production_factory_max_efficiency_factor = DSE_production_factory_max_efficiency_factor	}
	add_to_variable = {	allbill_production_factory_max_efficiency_factor = DA_production_factory_max_efficiency_factor	}
	add_to_variable = {	allbill_production_factory_max_efficiency_factor = DSP_production_factory_max_efficiency_factor	}
	add_to_variable = {	allbill_production_factory_max_efficiency_factor = WR_production_factory_max_efficiency_factor }
	
	add_to_variable = {	allbill_line_change_production_efficiency_factor = CGT_line_change_production_efficiency_factor	}
	add_to_variable = {	allbill_line_change_production_efficiency_factor = DSE_line_change_production_efficiency_factor	}
	add_to_variable = {	allbill_line_change_production_efficiency_factor = DA_line_change_production_efficiency_factor	}
	add_to_variable = {	allbill_line_change_production_efficiency_factor = DSP_line_change_production_efficiency_factor	}
	add_to_variable = {	allbill_line_change_production_efficiency_factor = WR_line_change_production_efficiency_factor	}

	add_to_variable = {	allbill_production_factory_efficiency_gain_factor = CGT_production_factory_efficiency_gain_factor	}
	add_to_variable = {	allbill_production_factory_efficiency_gain_factor = DSE_production_factory_efficiency_gain_factor	}
	add_to_variable = {	allbill_production_factory_efficiency_gain_factor = DA_production_factory_efficiency_gain_factor	}
	add_to_variable = {	allbill_production_factory_efficiency_gain_factor = DSP_production_factory_efficiency_gain_factor	}
	add_to_variable = {	allbill_production_factory_efficiency_gain_factor = WR_production_factory_efficiency_gain_factor	}

	add_to_variable = {	allbill_industrial_capacity_factory = CGT_industrial_capacity_factory	}
	add_to_variable = {	allbill_industrial_capacity_factory = DSE_industrial_capacity_factory	}
	add_to_variable = {	allbill_industrial_capacity_factory = DA_industrial_capacity_factory	}
	add_to_variable = {	allbill_industrial_capacity_factory = DSP_industrial_capacity_factory	}
	add_to_variable = {	allbill_industrial_capacity_factory = WR_industrial_capacity_factory	}

	add_to_variable = {	allbill_industrial_capacity_dockyard = CGT_industrial_capacity_dockyard	}
	add_to_variable = {	allbill_industrial_capacity_dockyard = DSE_industrial_capacity_dockyard	}
	add_to_variable = {	allbill_industrial_capacity_dockyard = DA_industrial_capacity_dockyard	}
	add_to_variable = {	allbill_industrial_capacity_dockyard = DSP_industrial_capacity_dockyard	}
	add_to_variable = {	allbill_industrial_capacity_dockyard = WR_industrial_capacity_dockyard	}

	add_to_variable = {	allbill_industry_repair_factor = CGT_industry_repair_factor	}
	add_to_variable = {	allbill_industry_repair_factor = DSE_industry_repair_factor	}
	add_to_variable = {	allbill_industry_repair_factor = DA_industry_repair_factor	}
	add_to_variable = {	allbill_industry_repair_factor = DSP_industry_repair_factor	}
	add_to_variable = {	allbill_industry_repair_factor = WR_industry_repair_factor	}

	add_to_variable = {	allbill_industry_free_repair_factor = CGT_industry_free_repair_factor	}
	add_to_variable = {	allbill_industry_free_repair_factor = DSE_industry_free_repair_factor	}
	add_to_variable = {	allbill_industry_free_repair_factor = DA_industry_free_repair_factor	}
	add_to_variable = {	allbill_industry_free_repair_factor = DSP_industry_free_repair_factor	}
	add_to_variable = {	allbill_industry_free_repair_factor = WR_industry_free_repair_factor	}

	add_to_variable = {	allbill_local_resources_factor = CGT_local_resources_factor	}
	add_to_variable = {	allbill_local_resources_factor = DSE_local_resources_factor	}
	add_to_variable = {	allbill_local_resources_factor = DA_local_resources_factor	}
	add_to_variable = {	allbill_local_resources_factor = DSP_local_resources_factor	}
	add_to_variable = {	allbill_local_resources_factor = WR_local_resources_factor	}

	add_to_variable = {	allbill_production_lack_of_resource_penalty_factor = CGT_production_lack_of_resource_penalty_factor }
	add_to_variable = {	allbill_production_lack_of_resource_penalty_factor = DSE_production_lack_of_resource_penalty_factor }
	add_to_variable = {	allbill_production_lack_of_resource_penalty_factor = DA_production_lack_of_resource_penalty_factor	}
	add_to_variable = {	allbill_production_lack_of_resource_penalty_factor = DSP_production_lack_of_resource_penalty_factor	}
	add_to_variable = {	allbill_production_lack_of_resource_penalty_factor = WR_production_lack_of_resource_penalty_factor	}

	add_to_variable = {	allbill_training_time_factor = CGT_training_time_factor	}
	add_to_variable = {	allbill_training_time_factor = DSE_training_time_factor	}
	add_to_variable = {	allbill_training_time_factor = DA_training_time_factor	}
	add_to_variable = {	allbill_training_time_factor = DSP_training_time_factor	}
	add_to_variable = {	allbill_training_time_factor = WR_training_time_factor	}

	add_to_variable = {	allbill_out_of_supply_factor = CGT_out_of_supply_factor	}
	add_to_variable = {	allbill_out_of_supply_factor = DSE_out_of_supply_factor	}
	add_to_variable = {	allbill_out_of_supply_factor = DA_out_of_supply_factor	}
	add_to_variable = {	allbill_out_of_supply_factor = DSP_out_of_supply_factor	}
	add_to_variable = {	allbill_out_of_supply_factor = WR_out_of_supply_factor	}

	add_to_variable = {	allbill_drift_defence_factor = CGT_drift_defence_factor	}
	add_to_variable = {	allbill_drift_defence_factor = DSE_drift_defence_factor	}
	add_to_variable = {	allbill_drift_defence_factor = DA_drift_defence_factor	}
	add_to_variable = {	allbill_drift_defence_factor = DSP_drift_defence_factor	}
	add_to_variable = {	allbill_drift_defence_factor = WR_drift_defence_factor }

	add_to_variable = {	allbill_required_garrison_factor = CGT_required_garrison_factor }
	add_to_variable = {	allbill_required_garrison_factor = DSE_required_garrison_factor	}
	add_to_variable = {	allbill_required_garrison_factor = DA_required_garrison_factor }
	add_to_variable = {	allbill_required_garrison_factor = DSP_required_garrison_factor	}
	add_to_variable = {	allbill_required_garrison_factor = WR_required_garrison_factor	}

	add_to_variable = {	allbill_operation_outcome = CGT_operation_outcome	}
	add_to_variable = {	allbill_operation_outcome = DSE_operation_outcome	}
	add_to_variable = {	allbill_operation_outcome = DA_operation_outcome }
	add_to_variable = {	allbill_operation_outcome = DSP_operation_outcome	}
	add_to_variable = {	allbill_operation_outcome = WR_operation_outcome	}

	add_to_variable = {	allbill_operative_slot = CGT_operative_slot	}
	add_to_variable = {	allbill_operative_slot = DSE_operative_slot	}
	add_to_variable = {	allbill_operative_slot = DA_operative_slot	}
	add_to_variable = {	allbill_operative_slot = DSP_operative_slot	}
	add_to_variable = {	allbill_operative_slot = WR_operative_slot	}

	add_to_variable = {	allbill_encryption = CGT_encryption	}
	add_to_variable = {	allbill_encryption = DSE_encryption	}
	add_to_variable = {	allbill_encryption = DA_encryption	}
	add_to_variable = {	allbill_encryption = DSP_encryption	}
	add_to_variable = {	allbill_encryption = WR_encryption	}
	
	add_to_variable = {	allbill_encryption_factor = CGT_encryption_factor	}
	add_to_variable = {	allbill_encryption_factor = DSE_encryption_factor	}
	add_to_variable = {	allbill_encryption_factor = DA_encryption_factor	}
	add_to_variable = {	allbill_encryption_factor = DSP_encryption_factor	}
	add_to_variable = {	allbill_encryption_factor = WR_encryption_factor	}

	add_to_variable = {	allbill_decryption = CGT_decryption	}
	add_to_variable = {	allbill_decryption = DSE_decryption	}
	add_to_variable = {	allbill_decryption = DA_decryption }
	add_to_variable = {	allbill_decryption = DSP_decryption	}
	add_to_variable = {	allbill_decryption = WR_decryption }

	add_to_variable = {	allbill_decryption_factor = CGT_decryption_factor	}
	add_to_variable = {	allbill_decryption_factor = DSE_decryption_factor	}
	add_to_variable = {	allbill_decryption_factor = DA_decryption_factor	}
	add_to_variable = {	allbill_decryption_factor = DSP_decryption_factor	}
	add_to_variable = { allbill_decryption_factor = WR_decryption_factor	}
}

FRA_govern_change = {
	set_temp_variable = { c = govern_central_control }
	set_temp_variable = { m = govern_bureaucrats_member }
	set_temp_variable = { e = govern_bureaucrats_efficiency }
	set_temp_variable = { p = govern_bureaucrats_corruption }
	if = {
		limit = { check_variable = { govern_bureaucrats_stance > 50 } }
		set_temp_variable = { s = govern_bureaucrats_stance }
		add_to_temp_variable = { s = -50 }
	}
	else = {
		set_temp_variable = { s = 50 }
		subtract_from_temp_variable = { s = govern_bureaucrats_stance }
	}	

	set_temp_variable = { cc1 = m }
	add_to_temp_variable = { cc1 = -50 }
	divide_temp_variable = { cc1 = 25 }
	set_temp_variable = { cc2 = e }
	add_to_temp_variable = { cc2 = -50 }
	divide_temp_variable = { cc2 = 25 }
	set_temp_variable = { cc3 = p }
	divide_temp_variable = { cc3 = -40 }

	if = {
		limit = { check_variable = { frasoc_synd < 30 } }
		set_temp_variable = { syndfper = seat_synd }
		divide_temp_variable = { syndfper = 650 }
		multiply_temp_variable = { syndper = 5 }
		set_temp_variable = { cc4 = frasoc_synd }
		divide_temp_variable = { cc4 = 50 }
		add_to_temp_variable = { cc4 = -1 }
		multiply_temp_variable = { cc4 = syndper }
	}
	if = {
		limit = { check_variable = { frasoc_anar < 30 } }
		set_temp_variable = { anarper = seat_anar }
		divide_temp_variable = { anarper = 650 }
		multiply_temp_variable = { anarper = 5 }
		set_temp_variable = { cc5 = frasoc_anar }
		divide_temp_variable = { cc5 = 50 }
		add_to_temp_variable = { cc5 = -1 }
		multiply_temp_variable = { cc5 = anarper }
	}
	if = {
		limit = { check_variable = { frasoc_jaco < 30 } }
		set_temp_variable = { jacoper = seat_jaco }
		divide_temp_variable = { jacoper = 650 }
		multiply_temp_variable = { jacoper = 5 }
		set_temp_variable = { cc6 = frasoc_jaco }
		divide_temp_variable = { cc6 = 50 }
		add_to_temp_variable = { cc6 = -1 }
		multiply_temp_variable = { cc6 = jacoper }
	}
	if = {
		limit = { check_variable = { frasoc_sore < 30 } }
		set_temp_variable = { soreper = seat_sore }
		divide_temp_variable = { soreper = 650 }
		multiply_temp_variable = { soreper = 5 }
		set_temp_variable = { cc7 = frasoc_sore }
		divide_temp_variable = { cc7 = 50 }
		add_to_temp_variable = { cc7 = -1 }
		multiply_temp_variable = { cc7 = soreper }
	}

	set_temp_variable = { cc = 0 }
	add_to_temp_variable = { cc = cc1 }
	add_to_temp_variable = { cc = cc2 }
	add_to_temp_variable = { cc = cc3 }
	add_to_temp_variable = { cc = cc4 }
	add_to_temp_variable = { cc = cc5 }
	add_to_temp_variable = { cc = cc6 }
	add_to_temp_variable = { cc = cc7 }
	add_to_variable = { govern_central_control = cc }
	
	set_temp_variable = { ec1 = s }
	divide_temp_variable = { ec1 = -20 }
	set_temp_variable = { ec2 = p }
	divide_temp_variable = { ec2 = -50 }
	set_temp_variable = { ec = 0 }
	add_to_temp_variable = { ec = ec1 }
	add_to_temp_variable = { ec = ec2 }
	add_to_variable = { govern_bureaucrats_efficiency = ec }

	set_temp_variable = { pc1 = m }
	divide_temp_variable = { pc1 = 40 }
	set_temp_variable = { pc2 = s }
	divide_temp_variable = { pc2 = 20 }
	set_temp_variable = { pc = 0 }
	add_to_temp_variable = { pc = pc1 }
	add_to_temp_variable = { pc = pc2 }
	add_to_variable = { govern_bureaucrats_corruption = pc }

	set_temp_variable = { sc1 = c }
	add_to_temp_variable = { sc1 = -50 }
	divide_temp_variable = { sc1 = 20 }
	if = {
		limit = { check_variable = { govern_bureaucrats_stance > 50 } }
		multiply_temp_variable = { sc1 = -1 }
	}
	else = {
		multiply_temp_variable = { sc1 = 1 }
	}	
	set_temp_variable = { sc2 = e }
	divide_temp_variable = { sc2 = 40 }
	set_temp_variable = { sc3 = p }
	divide_temp_variable = { sc3 = -40 }
	set_temp_variable = { sc = 0 }
	add_to_temp_variable = { sc = sc1 }
	add_to_temp_variable = { sc = sc2 }
	add_to_temp_variable = { sc = sc3 }
	add_to_variable = { govern_bureaucrats_stance = sc }

	custom_effect_tooltip =  FRA_govern_change_tips

	clamp_variable = {
		var = govern_central_control
		max = 100
		min = 0
	}
	clamp_variable = {
		var = govern_bureaucrats_member
		max = 100
		min = 0
	}
	clamp_variable = {
		var = govern_bureaucrats_efficiency
		max = 100
		min = 0
	}
	clamp_variable = {
		var = govern_bureaucrats_corruption
		max = 100
		min = 0
	}
	clamp_variable = {
		var = govern_bureaucrats_stance
		max = 100
		min = 0
	}
}

FRA_govern_single_change = {
	if = {
		limit = { check_variable = { c = 0 } }
	}
	else = {
		add_to_variable = { govern_central_control = c }
		custom_effect_tooltip = FRA_govern_single_change_c_tips
	}

	if = {
		limit = { check_variable = { m = 0 } }
	}
	else = {
		add_to_variable = { govern_bureaucrats_member = m }
		custom_effect_tooltip = FRA_govern_single_change_m_tips
	}

	if = {
		limit = { check_variable = { e = 0 } }
	}
	else = {
		add_to_variable = { govern_bureaucrats_efficiency = e }
		custom_effect_tooltip = FRA_govern_single_change_e_tips
	}

	if = {
		limit = { check_variable = { p = 0 } }
	}
	else = {
		add_to_variable = { govern_bureaucrats_corruption = p }
		custom_effect_tooltip = FRA_govern_single_change_p_tips
	}

	if = {
		limit = { check_variable = { s = 0 } }
	}
	else = {
		add_to_variable = { govern_bureaucrats_stance = s }
		custom_effect_tooltip = FRA_govern_single_change_s_tips
	}
	clamp_variable = {
		var = govern_central_control
		max = 100
		min = 0
	}
	clamp_variable = {
		var = govern_bureaucrats_member
		max = 100
		min = 0
	}
	clamp_variable = {
		var = govern_bureaucrats_efficiency
		max = 100
		min = 0
	}
	clamp_variable = {
		var = govern_bureaucrats_corruption
		max = 100
		min = 0
	}
	clamp_variable = {
		var = govern_bureaucrats_stance
		max = 100
		min = 0
	}
}

FRA_synd_trav_union_change = {
	add_to_variable = { FRA_synd_trav_union = uc }
	clamp_variable = {
		var = FRA_synd_trav_union
		max = 100
		min = 0
	}
	custom_effect_tooltip = FRA_synd_trav_union_change_tips

	hidden_effect = {
		if = {
			limit = { check_variable = { FRA_synd_trav_union = 0 } }
			country_event = { id = frapoc.110 days = 3 random_hours = 6 }
		}
	}
}

FRA_synd_radi_goals_change = {
	if = {
		limit = { check_variable = { antic = 0 } }
	}
	else = {
		add_to_variable = { synd_radi_goals_anti = antic }
		clamp_variable = {
			var = synd_radi_goals_anti
			max = 100
			min = 0
		}
		custom_effect_tooltip = FRA_synd_radi_goals_change_antic_tips
	}

	if = {
		limit = { check_variable = { intensec = 0 } }
	}
	else = {
		add_to_variable = { synd_radi_goals_intense = intensec }
		clamp_variable = {
			var = synd_radi_goals_intense
			max = 100
			min = 0
		}
		custom_effect_tooltip = FRA_synd_radi_goals_change_intensec_tips
	}

	if = {
		limit = { check_variable = { boredomc = 0 } }
	}
	else = {
		add_to_variable = { synd_radi_goals_boredom = boredomc }
		clamp_variable = {
			var = synd_radi_goals_boredom
			max = 100
			min = 0
		}
		custom_effect_tooltip = FRA_synd_radi_goals_change_boredomc_tips
	}
	
	
	hidden_effect = {
		if = {
			limit = { 
				OR = {
					check_variable = { synd_radi_goals_anti > 90 } 
					AND = {
						check_variable = { synd_radi_goals_intense > 80 } 
						check_variable = { synd_radi_goals_boredom > 80 } 
					}
				}				
			}
			country_event = { id = frapoc.120 days = 3 random_hours = 6 }
		}
	}
}

FRA_anar_parl_goals_change = {
	if = {
		limit = { check_variable = { ppc = 0 } }
	}
	else = {
		add_to_variable = { parl_system_power = ppc }
		clamp_variable = {
			var = parl_system_power
			max = 100
			min = 0
		}
		custom_effect_tooltip = parl_system_power_change_tips
	}

	if = {
		limit = { check_variable = { pic = 0 } }
	}
	else = {
		add_to_variable = { parl_system_instability = pic }
		clamp_variable = {
			var = parl_system_instability
			max = 100
			min = 0
		}
		custom_effect_tooltip = parl_system_instability_change_tips
	}

	if = {
		limit = { check_variable = { pwc = 0 } }
	}
	else = {
		add_to_variable = { parl_system_willing = pwc }
		clamp_variable = {
			var = parl_system_willing
			max = 100
			min = 0
		}
		custom_effect_tooltip = parl_system_willing_change_tips
	}
}

random_class_satisfation_plus = {
	hidden_effect = {
		if = {
			limit = { check_variable = { times = 1 } }
			random_class_satisfation_plus_help = yes
		}
		else_if = {
			limit = { check_variable = { times = 2 } }
			random_class_satisfation_plus_help = yes
			random_class_satisfation_plus_help = yes
		}
		else_if = {
			limit = { check_variable = { times = 3 } }
			random_class_satisfation_plus_help = yes
			random_class_satisfation_plus_help = yes
			random_class_satisfation_plus_help = yes
		}
		else_if = {
			limit = { check_variable = { times = 4 } }
			random_class_satisfation_plus_help = yes
			random_class_satisfation_plus_help = yes
			random_class_satisfation_plus_help = yes
			random_class_satisfation_plus_help = yes
		}
		else_if = {
			limit = { check_variable = { times = 5 } }
			random_class_satisfation_plus_help = yes
			random_class_satisfation_plus_help = yes
			random_class_satisfation_plus_help = yes
			random_class_satisfation_plus_help = yes
			random_class_satisfation_plus_help = yes
		}
		FRA_social_politic_situation_change = yes
	}

	custom_effect_tooltip = random_class_satisfation_plus_tips	
}

random_class_satisfation_plus_help = {
	hidden_effect = {
		random_list = {
			1 = {
				modifier = {
					factor = 0
					check_variable = { wce = 1 }
				}
				set_temp_variable = { wc = numbers }
				set_temp_variable = { wce = 1 }
			}
			1 = {
				modifier = {
					factor = 0
					check_variable = { pce = 1 }
				}
				set_temp_variable = { pc = numbers }
				set_temp_variable = { pce = 1 }
			}
			1 = {
				modifier = {
					factor = 0
					check_variable = { mce = 1 }
				}
				set_temp_variable = { mc = numbers }
				set_temp_variable = { mce = 1 }
			}
			1 = {
				modifier = {
					factor = 0
					check_variable = { sce = 1 }
				}
				set_temp_variable = { sc = numbers }
				set_temp_variable = { sce = 1 }
			}
			1 = {
				modifier = {
					factor = 0
					check_variable = { fce = 1 }
				}
				set_temp_variable = { fc = numbers }
				set_temp_variable = { fce = 1 }
			}
			1 = {
				modifier = {
					factor = 0
					check_variable = { bce = 1 }
				}
				set_temp_variable = { bc = numbers }
				set_temp_variable = { bce = 1 }
			}
		}
	}
}

random_faction_satisfation_plus = {
	hidden_effect = {
		if = {
			limit = { check_variable = { times = 1 } }
			random_faction_satisfation_plus_help = yes
		}
		else_if = {
			limit = { check_variable = { times = 2 } }
			random_faction_satisfation_plus_help = yes
			random_faction_satisfation_plus_help = yes
		}
		else_if = {
			limit = { check_variable = { times = 3 } }
			random_faction_satisfation_plus_help = yes
			random_faction_satisfation_plus_help = yes
			random_faction_satisfation_plus_help = yes
		}
		FRA_social_politic_situation_change = yes
	}

	custom_effect_tooltip = random_faction_satisfation_plus_tips	
}

random_faction_satisfation_plus_help = {
	hidden_effect = {
		random_list = {
			1 = {
				modifier = {
					factor = 0
					check_variable = { synde = 1 }
				}
				set_temp_variable = { syndc = numbers }
				set_temp_variable = { synde = 1 }
			}
			1 = {
				modifier = {
					factor = 0
					check_variable = { anare = 1 }
				}
				set_temp_variable = { anarc = numbers }
				set_temp_variable = { anare = 1 }
			}
			1 = {
				modifier = {
					factor = 0
					check_variable = { jacoe = 1 }
				}
				set_temp_variable = { jacoc = numbers }
				set_temp_variable = { jacoe = 1 }
			}
			1 = {
				modifier = {
					factor = 0
					check_variable = { soree = 1 }
				}
				set_temp_variable = { sorec = numbers }
				set_temp_variable = { soree = 1 }
			}
		}
	}
}

FRA_anar_anar_goals_change = {
	if = {
		limit = { check_variable = { anar_socialize_landc = 0 } }
	}
	else = {
		add_to_variable = { anar_socialize_land = anar_socialize_landc }
		custom_effect_tooltip = change_anar_socialize_landc_tips
	}

	if = {
		limit = { check_variable = { anar_city_securityc = 0 } }
	}
	else = {
		add_to_variable = { anar_city_security = anar_city_securityc }
		custom_effect_tooltip = change_anar_city_securityc_tips
	}

	if = {
		limit = { check_variable = { anar_recognitionc = 0 } }
	}
	else = {
		add_to_variable = { anar_recognition = anar_recognitionc }
		custom_effect_tooltip = change_anar_recognitionc_tips
	}

	clamp_variable = {
		var = anar_socialize_land
		max = 100
		min = 0
	}
	clamp_variable = {
		var = anar_city_security
		max = 100
		min = 0
	}
	clamp_variable = {
		var = anar_recognition
		max = 100
		min = 0
	}
	hidden_effect = {
		if = {
			limit = { check_variable = { anar_socialize_land = 100 } }
			set_country_flag = anar_land_end
			country_event = frapoc.221
		}
		if = {
			limit = { check_variable = { anar_city_security = 100 } }
			set_country_flag = anar_city_end
			country_event = frapoc.222
		}
	}
}

FRA_anar_anar_goals_change_mouthly = {

	if = {
		limit = { check_variable = { anar_socialize_land_changec = 0 } }
	}
	else = {
		add_to_variable = { anar_socialize_land_change = anar_socialize_land_changec }
		custom_effect_tooltip = change_anar_socialize_land_changec_tips
	}

	if = {
		limit = { check_variable = { anar_city_security_changec = 0 } }
	}
	else = {
		add_to_variable = { anar_city_security_change = anar_city_security_changec }
		custom_effect_tooltip = change_anar_city_security_changec_tips
	}

	if = {
		limit = { check_variable = { anar_recognition_changec = 0 } }
	}
	else = {
		add_to_variable = { anar_recognition_change = anar_recognition_changec }
		custom_effect_tooltip = change_anar_recognition_changecc_tips
	}
}

FRA_jaco_neos_goals_change = {
	if = {
		limit = { check_variable = { jaco_techbure_trainc = 0 } }
	}
	else = {
		add_to_variable = { jaco_techbure_train = jaco_techbure_trainc }
		custom_effect_tooltip = change_jaco_techbure_trainc_tips
	}

	if = {
		limit = { check_variable = { jaco_techbure_appiontc = 0 } }
	}
	else = {
		add_to_variable = { jaco_techbure_appiont = jaco_techbure_appiontc }
		custom_effect_tooltip = change_jaco_techbure_appiontc_tips
	}

	if = {
		limit = { check_variable = { jaco_techbure_accountc = 0 } }
	}
	else = {
		add_to_variable = { jaco_techbure_account = jaco_techbure_accountc }
		custom_effect_tooltip = change_jaco_techbure_accountc_tips
	}

	if = {
		limit = { check_variable = { jaco_techbure_progressc = 0 } }
	}
	else = {
		add_to_variable = { jaco_techbure_progress = jaco_techbure_progressc }
		custom_effect_tooltip = change_jaco_techbure_progressc_tips
	}


	clamp_variable = {
		var = jaco_techbure_appiont
		max = 100
		min = 0
	}
	clamp_variable = {
		var = jaco_techbure_appiont
		max = 100
		min = 0
	}
	clamp_variable = {
		var = jaco_techbure_account
		max = 100
		min = 0
	}

	clamp_variable = {
		var = jaco_techbure_progress
		max = 100
		min = 0
	}

	if = {
		limit = { check_variable = { jaco_techbure_progress = 100 } }
		hidden_effect = {
			country_event = frapoc.3111
		}
	}

	if = {
		limit = { has_country_flag = jaco_techbure_progress_end }
		set_temp_variable = { research_speed_factor_techn = var:FRA.jaco_techbure_train }
		multiply_temp_variable = { research_speed_factor_techn = 0.001 }

		set_temp_variable = { industrial_capacity_factory_techn = var:FRA.jaco_techbure_appiont }
		multiply_temp_variable = { industrial_capacity_factory_techn = 0.001 }

		set_temp_variable = { consumer_goods_factor_techn = var:FRA.jaco_techbure_train }
		multiply_temp_variable = { consumer_goods_factor_techn = -0.002 }
	}
}

FRA_jaco_neos_goals_fade_change = {
	if = {
		limit = { check_variable = { ttfc = 0 } }
	}
	else = {
		add_to_variable = { jaco_techbure_trainc_fade = ttfc }
		custom_effect_tooltip = change_jaco_techbure_trainc_fade_tips
	}

	if = {
		limit = { check_variable = { tapfc = 0 } }
	}
	else = {
		add_to_variable = { jaco_techbure_appiontc_fade = tapfc }
		custom_effect_tooltip = change_jaco_techbure_appiontc_fade_tips
	}

	if = {
		limit = { check_variable = { tacfc = 0 } }
	}
	else = {
		add_to_variable = { jaco_techbure_accountc_fade = tacfc }
		custom_effect_tooltip = change_jaco_techbure_accountc_fade_tips
	}
}

FRA_jaco_leni_goals_change = {
	if = {
		limit = { check_variable = { lpcc = 0 } }
	}
	else = {
		add_to_variable = { lenin_party_control = lpcc }
		custom_effect_tooltip = change_jaco_leni_lpcc_tips
	}

	if = {
		limit = { check_variable = { lppc = 0 } }
	}
	else = {
		add_to_variable = { lenin_party_pure = lppc }
		custom_effect_tooltip = change_jaco_leni_lppc_tips
	}

	if = {
		limit = { check_variable = { lpmc = 0 } }
	}
	else = {
		add_to_variable = { lenin_party_masses = lpmc }
		custom_effect_tooltip = change_jaco_leni_lpmc_tips
	}

	if = {
		limit = { check_variable = { laac = 0 } }
	}
	else = {
		add_to_variable = { lenin_admin_anti = laac }
		custom_effect_tooltip = change_jaco_leni_laac_tips
	}

	if = {
		limit = { 
			check_variable = { ltlc = 0 } 
			check_variable = { ltnc = 0 }
		}
	}
	else_if = {
		limit = { 
			check_variable = { ltlc > 0 } 
			check_variable = { ltnc < 0 } 
		}
		set_temp_variable = { temp = ltnc }
		add_to_temp_variable = { temp = lenin_to_neosocialism }
		if = {
			limit = { check_variable = { temp < 0 } }
			set_temp_variable = { ltnc = lenin_to_neosocialism }
			multiply_temp_variable = { ltnc = -1 }
			add_to_temp_variable = { ltlc = temp }

			add_to_variable = { lenin_to_leninism = ltlc }
			custom_effect_tooltip = change_jaco_leni_ltlc_tips
			add_to_variable = { lenin_to_neosocialism = ltnc }
			custom_effect_tooltip = change_jaco_leni_ltnc_tips
		}
		else = {
			add_to_variable = { lenin_to_leninism = ltlc }
			custom_effect_tooltip = change_jaco_leni_ltlc_tips
			add_to_variable = { lenin_to_neosocialism = ltnc }
			custom_effect_tooltip = change_jaco_leni_ltnc_tips
		}
	}
	else_if = {
		limit = { 
			check_variable = { ltlc < 0 } 
			check_variable = { ltnc > 0 } 
		}
		set_temp_variable = { temp = ltlc }
		add_to_temp_variable = { temp = lenin_to_leninism }
		if = {
			limit = { check_variable = { temp < 0 } }
			set_temp_variable = { ltlc = lenin_to_leninism }
			multiply_temp_variable = { ltlc = -1 }
			add_to_temp_variable = { ltnc = temp }

			add_to_variable = { lenin_to_leninism = ltlc }
			custom_effect_tooltip = change_jaco_leni_ltlc_tips
			add_to_variable = { lenin_to_neosocialism = ltnc }
			custom_effect_tooltip = change_jaco_leni_ltnc_tips
		}
		else = {
			add_to_variable = { lenin_to_leninism = ltlc }
			custom_effect_tooltip = change_jaco_leni_ltlc_tips
			add_to_variable = { lenin_to_neosocialism = ltnc }
			custom_effect_tooltip = change_jaco_leni_ltnc_tips
		}
	}


	clamp_variable = {
		var = lenin_party_control
		max = 100
		min = 0
	}
	clamp_variable = {
		var = lenin_party_pure
		max = 100
		min = 0
	}
	clamp_variable = {
		var = lenin_party_masses
		max = 100
		min = 0
	}
	clamp_variable = {
		var = lenin_to_leninism
		max = 100
		min = 0
	}
	clamp_variable = {
		var = lenin_to_neosocialism
		max = 100
		min = 0
	}
	clamp_variable = {
		var = lenin_admin_anti
		max = 100
		min = 0
	}

}

FRA_sore_oldl_goals_change = {
	if = {
		limit = { check_variable = { sonc = 0 } }
	}
	else = {
		add_to_variable = { sore_oldl_nationalism = sonc }
		custom_effect_tooltip = change_sore_oldl_nationalism_tips
	}
	if = {
		limit = { check_variable = { somc = 0 } }
	}
	else = {
		add_to_variable = { sore_oldl_militarism = somc }
		custom_effect_tooltip = change_sore_oldl_militarism_tips
	}
	if = {
		limit = { check_variable = { soic = 0 } }
	}
	else = {
		add_to_variable = { sore_oldl_interventionism = soic }
		custom_effect_tooltip = change_sore_oldl_interventionism_tips
	}
	if = {
		limit = { check_variable = { sosc = 0 } }
	}
	else = {
		add_to_variable = { sore_oldl_socialism = sosc }
		custom_effect_tooltip = change_sore_oldl_socialism_tips
	}
	if = {
		limit = { check_variable = { sowec = 0 } }
	}
	else = {
		add_to_variable = { sore_oldl_war_engine = sowec } 
		custom_effect_tooltip = change_sore_oldl_war_engine_tips
	}
	if = {
		limit = { check_variable = { sowewc = 0 } }
	}
	else = {
		add_to_variable = { sore_oldl_war_engine_wood = sowewc } 
		custom_effect_tooltip = change_sore_oldl_war_engine_wood_tips
	}


	clamp_variable = {
		var = sore_oldl_nationalism
		max = 100
		min = 0
	}
	clamp_variable = {
		var = sore_oldl_militarism
		max = 100
		min = 0
	}
	clamp_variable = {
		var = sore_oldl_interventionism
		max = 100
		min = 0
	}
	clamp_variable = {
		var = sore_oldl_socialism
		max = 100
		min = 0
	}
	clamp_variable = {
		var = sore_oldl_war_engine
		max = 100
		min = 0
	}
	clamp_variable = {
		var = sore_oldl_war_engine_wood
		min = 0
	}
}

FRA_sore_yout_goals_change = {
	if = {
		limit = { check_variable = { sypcc = 0 } }
	}
	else = {
		add_to_variable = { sore_yout_progress_change = sypcc }
		custom_effect_tooltip = change_sore_yout_progress_change_tips
	}
	if = {
		limit = { check_variable = { sydcc = 0 } }
	}
	else = {
		add_to_variable = { sore_yout_danger_change = sydcc }
		custom_effect_tooltip = change_sore_yout_danger_change_tips
	}
	if = {
		limit = { check_variable = { syqcc = 0 } }
	}
	else = {
		add_to_variable = { sore_yout_quality_change = syqcc }
		custom_effect_tooltip = change_sore_yout_qualitym_change_tips
	}
	if = {
		limit = { check_variable = { syacc = 0 } }
	}
	else = {
		add_to_variable = { sore_yout_accept_change = syacc }
		custom_effect_tooltip = change_sore_yout_accept_change_tips
	}

	if = {
		limit = { check_variable = { sypc = 0 } }
	}
	else = {
		add_to_variable = { sore_yout_progress = sypc }
		custom_effect_tooltip = change_sore_yout_progress_tips
	}
	if = {
		limit = { check_variable = { sydc = 0 } }
	}
	else = {
		add_to_variable = { sore_yout_danger = sydc }
		custom_effect_tooltip = change_sore_yout_danger_tips
	}
	if = {
		limit = { check_variable = { syqc = 0 } }
	}
	else = {
		add_to_variable = { sore_yout_quality = syqc }
		custom_effect_tooltip = change_sore_yout_qualitym_tips
	}
	if = {
		limit = { check_variable = { syac = 0 } }
	}
	else = {
		add_to_variable = { sore_yout_accept = syac }
		custom_effect_tooltip = change_sore_yout_accept_tips
	}

	if = {
		limit = { check_variable = { yfc = 0 } }
	}
	else = {
		add_to_variable = { youth_futurism_scores = yfc } 
		custom_effect_tooltip = change_youth_futurism_scores_tips
	}
	if = {
		limit = { check_variable = { ymc = 0 } }
	}
	else = {
		add_to_variable = { youth_mysticism_scores = ymc } 
		custom_effect_tooltip = change_youth_mysticism_scores_tips
	}
	if = {
		limit = { check_variable = { ysc = 0 } }
	}
	else = {
		add_to_variable = { youth_surrealism_scores = ysc } 
		custom_effect_tooltip = change_youth_surrealism_scores_tips
	}
	if = {
		limit = { check_variable = { yac = 0 } }
	}
	else = {
		add_to_variable = { youth_accelerationism_scores = yac } 
		custom_effect_tooltip = change_youth_accelerationism_scores_tips
	}

	clamp_variable = {
		var = sore_yout_progress
		max = 100
		min = 0
	}
	clamp_variable = {
		var = sore_yout_danger
		max = 100
		min = 0
	}
	clamp_variable = {
		var = sore_yout_quality
		max = 100
		min = 0
	}
	clamp_variable = {
		var = sore_yout_accept
		max = 100
		min = 0
	}

	clamp_variable = {
		var = youth_futurism_scores
		min = 0
	}
	clamp_variable = {
		var = youth_mysticism_scores
		min = 0
	}
	clamp_variable = {
		var = youth_surrealism_scores
		min = 0
	}
	clamp_variable = {
		var = youth_accelerationism_scores
		min = 0
	}

	hidden_effect = {
		if = {
			limit = { check_variable = { sore_yout_progress = 100 } }
			if = {
				limit = { has_country_flag = youth_plan_nuclear }
				country_event = frapoc.421
			}
			if = {
				limit = { has_country_flag = youth_plan_rocket }
				country_event = frapoc.422
			}
			if = {
				limit = { has_country_flag = youth_plan_computer }
				country_event = frapoc.423
			}
			if = {
				limit = { has_country_flag = youth_plan_gene }
				country_event = frapoc.424
			}
		}
	}
}