#########################
#Burgundian Decisions by#
#e x o b o i e the meme #
# Sino and Doc was here #
# Walker was also here  #
# Scars is also here    #
# Prussian is also here :) #
#########################

#########################################################################
#
################# Loyalty
#
#########################################################################


BRG_domestic_gui = {
	BRG_additional_construction_speed = {
		visible = { has_completed_focus = BRG_expand_the_camps }
		icon = GFX_decision_generic_construction
		cost = 60

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_worker_reserve_cost_12500
				check_variable = { BRG_Skilled_Worker_National_Pop_Reserve > 12499 }
			}
		}

		days_remove = 90
		days_re_enable = 30

		modifier = {
			production_speed_buildings_factor = 0.1
		}
		complete_effect = {
			subtract_from_variable = { BRG_Skilled_Worker_National_Pop_Reserve = 12500 }
		}
	}

	BRG_keep_economy_afloat = {
		visible = { has_idea = BRG_Oswald_Pohl_eco }
		icon = GFX_decision_generic_break_treaty
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_Oswald_Pohl_tt
				has_idea = BRG_Oswald_Pohl_eco # For tooltip only so the player knows what happened when its gone
			}
			custom_trigger_tooltip = {
				tooltip = BRG_worker_reserve_cost_5000
				check_variable = { BRG_Skilled_Worker_National_Pop_Reserve > 4999 }
			}
		}
		cost = 60
		days_remove = 60
		days_re_enable = 30
		modifier = {
			civilian_expenditures_factor = -0.1
			political_power_gain = -0.1
		}
		complete_effect = {
			subtract_from_variable = { BRG_Skilled_Worker_National_Pop_Reserve = 5000 }
		}
	}

	BRG_additional_factory_output = {
		visible = { has_completed_focus = BRG_sonnenfinsternis }
		icon = GFX_decision_generic_workers
		cost = 60

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_worker_reserve_cost_12500
				check_variable = { BRG_Skilled_Worker_National_Pop_Reserve > 12499 }
			}
		}

		days_remove = 125
		days_re_enable = 30

		modifier = {
			industrial_capacity_factory = 0.1
		}
		complete_effect = {
			subtract_from_variable = { BRG_Skilled_Worker_National_Pop_Reserve = 12500 }
		}
	}

	BRG_additional_nuclear_spending = {
		visible = {
			has_completed_focus = BRG_the_ultimate_deterrent
			NOT = { has_completed_focus = BRG_the_ultimate_salvation }
		}
		icon = GFX_decision_generic_reactor
		cost = 80

		days_remove = 125
		days_re_enable = 60

		modifier = {
			# nuclear_stockpile_monthly_rate = 1 needs fixing, are nukes still a thing?
		}

		complete_effect = {
			set_temp_variable = { temp_econ_spending_amount = 0.5 }
			econ_spend_money_once_effect_raw_money = yes
			nuclear_funding_maximal_set_position_20 = yes
		}

		remove_effect = {
			nuclear_funding_maximal_set_position_15 = yes
		}
	}

	BRG_additional_PUs = {
		visible = { has_completed_focus = BRG_expand_the_camps }
		icon = GFX_decision_generic_factory_red
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_worker_reserve_cost
				check_variable = { BRG_Skilled_Worker_National_Pop_Reserve > 9999 }
			}
		}

		days_remove = 100
		days_re_enable = 60
		cost = 100

		modifier = {
			free_production_units_modifier = 6
		}
		complete_effect = {
			subtract_from_variable = { BRG_Skilled_Worker_National_Pop_Reserve = 10000 }
		}
	}

	BRG_drilling = {

		icon = GFX_decision_generic_military_hat_skull

		allowed = { original_tag = BRG }
		state_target = yes
		target_array = BRG.BurgundyDomesticGUIStates
		target_trigger = { FROM = { is_core_of = BRG } }

		visible = { has_completed_focus = BRG_drill_the_waffen }
		available = { command_power > 24.99 }
		days_remove = 60

		on_map_mode = map_only

		ai_will_do = {
			factor = 1
		}
		modifier = { #Just for Tooltip
			BRG_Cop_To_Worker_Ratio = 1.5
		}
		complete_effect = {
			add_command_power = -25
			add_to_variable = { FROM.BRG_Cop_To_Worker_Ratio = 1.5 }
		}
		remove_effect = {
			add_to_variable = { FROM.BRG_Cop_To_Worker_Ratio = -1.5 }
		}
	}

	BRG_accelerate_weapons_production = {
		visible = { NOT = { has_country_flag = BRG_disable_pregcw_decisions } }
		icon = GFX_decision_generic_arms_trade_increase
		cost = 50

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_worker_reserve_cost_5000
				check_variable = { BRG_Skilled_Worker_National_Pop_Reserve > 4999 }
			}
		}

		days_remove = 30
		days_re_enable = 40

		modifier = {
			production_speed_buildings_factor = -0.05
			industrial_capacity_factory = -0.05
			free_production_units_modifier = -2
		}

		complete_effect = {
			subtract_from_variable = { BRG_Skilled_Worker_National_Pop_Reserve = 5000 }
		}

		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 300
				producer = BRG
			}
		}
	}

	BRG_accelerate_support_eq_production = {
		visible = { NOT = { has_country_flag = BRG_disable_pregcw_decisions } }
		icon = GFX_decision_generic_arms_crate
		cost = 40

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_worker_reserve_cost_5000
				check_variable = { BRG_Skilled_Worker_National_Pop_Reserve > 4999 }
			}
		}

		days_remove = 30
		days_re_enable = 40

		modifier = {
			industrial_capacity_factory = -0.025
			free_production_units_modifier = -1
		}

		complete_effect = {
			subtract_from_variable = { BRG_Skilled_Worker_National_Pop_Reserve = 5000 }
		}

		remove_effect = {
			add_equipment_to_stockpile = {
				type = support_equipment
				amount = 150
				producer = BRG
			}
		}
	}

	BRG_sell_guns_to_Charla = {
		available = { has_equipment = { infantry_equipment > 149 } }
		icon = GFX_decision_generic_military_guns_blue
		visible = { has_completed_focus = BRG_dangle_the_carrot }

		cost = 30

		days_re_enable = 40

		days_remove = 30

		complete_effect = {
			custom_effect_tooltip = BRG_slightly_increase_Charla_Loyalty
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -150
				producer = BRG
			}
			hidden_effect = {
				random_owned_state = {
					limit = {
						NOT = {
							state = 6
							state = 34
						}
					}
					add_to_variable = { THIS.HimmlerSupport = 3 }
					add_to_variable = { THIS.CharlemagneSupport = -3 }
				}
			}
		}

		modifier = {
			industrial_capacity_factory = -0.1
		}
	}

	BRG_sell_guns_to_Lange = {
		available = { has_equipment = { infantry_equipment > 149 } }
		icon = GFX_decision_generic_military_guns_brown
		visible = { has_completed_focus = BRG_dangle_the_carrot }

		cost = 25

		days_re_enable = 40

		days_remove = 30

		complete_effect = {
			custom_effect_tooltip = BRG_slightly_increase_Lange_Loyalty

			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -75
				producer = BRG
			}
			hidden_effect = {
				add_to_variable = { 6.HimmlerSupport = 3 }
				add_to_variable = { 6.LangemarckSupport = -3 }
			}
		}

		modifier = {
			production_factory_max_efficiency_factor = -0.1
		}

	}

	BRG_buy_guns_from_brittany = {
		icon = GFX_decision_generic_increase
		visible = { has_completed_focus = BRG_expand_the_pipeline }

		cost = 45
		days_re_enable = 40
		days_remove = 21

		complete_effect = {
			set_temp_variable = { temp_econ_spending_amount = 0.05 }
			econ_spend_money_once_effect_raw_money = yes
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 320
				producer = GER
			}
		}
	}

	BRG_expanded_production_from_brittany = {
		icon = GFX_decision_generic_increase
		visible = { has_completed_focus = BRG_expand_the_pipeline }

		cost = 65

		days_re_enable = 40

		days_remove = 35

		complete_effect = {
			set_temp_variable = { temp_econ_spending_amount = 0.05 }
			econ_spend_money_once_effect_raw_money = yes
		}
		modifier = {
			production_factory_efficiency_gain_factor = 0.05
			industrial_capacity_factory = 0.1
		}
	}
}


#########################################################################
#
################# INVESTIGATION DECISIONS
#
#########################################################################

BRG_Investigations_Decisions_Category = {

	BRG_Open_GUI = {

		available = { NOT = { has_country_flag = BRG_Already_Doing_An_Intel_Decision } }

		visible = { OR = { has_country_flag = BRG_Investigating_DeGrelle has_country_flag = BRG_Post_DeGrelle_Investigations_Unlocked } }

		complete_effect = {
			if = {
				limit = { NOT = { has_country_flag = BRG_Investigating_DeGrelle has_country_flag = BRG_Post_DeGrelle_Investigations_Unlocked } }
				custom_effect_tooltip = BRG_Investigation_Open_Button_Tooltip
			}
			if = {
				limit = { AND = { has_country_flag = BRG_Investigating_DeGrelle NOT = { has_global_flag = german_civil_war } } }
				if = {
					limit = { NOT = { has_country_flag = BRG_Walloon_Investigation_open_flag } }
					set_country_flag = BRG_Walloon_Investigation_open_flag
					BRG_Investigation_Setup = yes
				}
			}
			if = {
				limit = { has_country_flag = BRG_Post_DeGrelle_Investigations_Unlocked }
				if = {
					limit = { NOT = { has_country_flag = BRG_Investigation_main_open_flag } }
					set_country_flag = BRG_Investigation_main_open_flag
				}
			}
		}
	}


	BRG_Lower_Charla_Sus_Little = {

		available = { NOT = { has_country_flag = BRG_Already_Doing_A_Sus_Decisions } }

		visible = { has_country_flag = BRG_Post_DeGrelle_Sus_Decisions_Unlocked }

		custom_cost_trigger = { command_power > 4.99 }
		custom_cost_text = decision_cost_5_cp

		days_re_enable = 20

		days_remove = 15

		complete_effect = {
			set_country_flag = BRG_Already_Doing_A_Sus_Decisions
			custom_effect_tooltip = BRG_Lower_Charla_Sus_Little_tooltip
			subtract_from_variable = { BRG_Charla_Sus = 4 }
			hidden_effect = { add_command_power = -5 }
		}

		modifier = {
			stability_weekly = -0.0025
		}

		remove_effect = {
			hidden_effect = {
				clr_country_flag = BRG_Already_Doing_A_Sus_Decisions
			}
		}
	}



	BRG_Lower_Charla_Sus_High = {

		available = { NOT = { has_country_flag = BRG_Already_Doing_A_Sus_Decisions } }

		visible = { has_completed_focus = BRG_a_temporary_solution }

		custom_cost_trigger = { command_power > 9.99 }
		custom_cost_text = decision_cost_10_cp

		days_re_enable = 20

		days_remove = 21

		complete_effect = {
			set_country_flag = BRG_Already_Doing_A_Sus_Decisions
			custom_effect_tooltip = BRG_Lower_Charla_Sus_High_tooltip
			subtract_from_variable = { BRG_Charla_Sus = 12 }
			hidden_effect = { add_command_power = -10 }
		}

		modifier = {
			stability_weekly = -0.005
			war_support_weekly = -0.005
		}

		remove_effect = {
			hidden_effect = {
				clr_country_flag = BRG_Already_Doing_A_Sus_Decisions
			}
		}
	}

	BRG_Lower_Charla_Sus_Massive = {

		available = { NOT = { has_country_flag = BRG_Already_Doing_A_Sus_Decisions } }

		visible = { has_completed_focus = BRG_expand_concealment_operations }

		custom_cost_trigger = { command_power > 14.99 }
		custom_cost_text = decision_cost_15_cp

		days_re_enable = 20

		days_remove = 21

		complete_effect = {
			set_country_flag = BRG_Already_Doing_A_Sus_Decisions
			custom_effect_tooltip = BRG_Lower_Charla_Sus_Massive_tooltip
			subtract_from_variable = { BRG_Charla_Sus = 20 }
			hidden_effect = { add_command_power = -15 }
		}

		modifier = {
			stability_weekly = -0.01
			war_support_weekly = -0.01
		}

		remove_effect = {
			custom_effect_tooltip = BRG_greatly_increase_Charla_Loyalty_reward
			hidden_effect = {
				clr_country_flag = BRG_Already_Doing_A_Sus_Decisions
				every_owned_state = {
					limit = { NOT = { state = 34 state = 6 } }
					subtract_from_variable = { THIS.CharlemagneSupport = 10 }
					add_to_variable = { THIS.HimmlerSupport = 10 }
				}
			}
		}
	}

	BRG_Lower_Walloon_Sus_Little = {

		available = { NOT = { has_country_flag = BRG_Already_Doing_A_Sus_Decisions } }

		visible = { has_country_flag = BRG_Post_DeGrelle_Sus_Decisions_Unlocked }

		custom_cost_trigger = { command_power > 4.99 }
		custom_cost_text = decision_cost_5_cp

		days_re_enable = 20

		days_remove = 15

		complete_effect = {
			set_country_flag = BRG_Already_Doing_A_Sus_Decisions
			custom_effect_tooltip = BRG_Lower_Walloon_Sus_Little_tooltip
			subtract_from_variable = { BRG_Walloon_Sus = 3 }
			hidden_effect = { add_command_power = -5 }
		}

		modifier = {
			stability_weekly = -0.0025
		}

		remove_effect = {
			custom_effect_tooltip = BRG_slightly_increase_Walloon_Loyalty_reward
			hidden_effect = {
				clr_country_flag = BRG_Already_Doing_A_Sus_Decisions
				subtract_from_variable = { 34.WalloonSupport = 2 }
				add_to_variable = { 34.HimmlerSupport = 2 }
			}
		}
	}


	BRG_Lower_Walloon_Sus_Medium= {

		available = { NOT = { has_country_flag = BRG_Already_Doing_A_Sus_Decisions } }

		visible = { has_completed_focus = BRG_ready_the_strings }

		custom_cost_trigger = { command_power > 9.99 }
		custom_cost_text = decision_cost_10_cp

		days_re_enable = 20

		days_remove = 15

		complete_effect = {
			set_country_flag = BRG_Already_Doing_A_Sus_Decisions
			custom_effect_tooltip = BRG_Lower_Walloon_Sus_medium_tooltip
			subtract_from_variable = { BRG_Walloon_Sus = 6 }
			hidden_effect = { add_command_power = -10 }
		}

		modifier = {
			stability_weekly = -0.005
		}

		remove_effect = {
			hidden_effect = {
				clr_country_flag = BRG_Already_Doing_A_Sus_Decisions
				subtract_from_variable = { 34.WalloonSupport = 2 }
				add_to_variable = { 34.HimmlerSupport = 2 }
			}
		}
	}

	BRG_Lower_Walloon_Sus_Massive = {

		available = { NOT = { has_country_flag = BRG_Already_Doing_A_Sus_Decisions } }

		visible = { has_completed_focus = BRG_expand_concealment_operations }

		custom_cost_trigger = { command_power > 14.99 }
		custom_cost_text = decision_cost_15_cp

		days_re_enable = 20

		days_remove = 21

		complete_effect = {
			set_country_flag = BRG_Already_Doing_A_Sus_Decisions
			custom_effect_tooltip = BRG_Lower_Walloon_Sus_Massive
			subtract_from_variable = { BRG_Walloon_Sus = 20 }
			hidden_effect = { add_command_power = -15 }
		}

		modifier = {
			stability_weekly = -0.005
			war_support_weekly = -0.005
		}

		remove_effect = {
			custom_effect_tooltip = BRG_greatly_increase_Walloon_Loyalty_reward
			hidden_effect = {
				clr_country_flag = BRG_Already_Doing_A_Sus_Decisions
				subtract_from_variable = { 34.WalloonSupport = 10 }
				add_to_variable = { 34.HimmlerSupport = 10 }
			}
		}
	}

	BRG_Monthly_Intel_Gain_Post_Degrelle_Up_Medium = {

		## Need some sort of resource cost

		visible = { has_country_flag = BRG_Post_DeGrelle_Sus_Decisions_Unlocked }

		custom_cost_trigger = { command_power > 9.99 }
		custom_cost_text = decision_cost_10_cp

		days_re_enable = 240

		days_remove = 42

		complete_effect = {
			custom_effect_tooltip = BRG_Monthly_Intel_Gain_Post_Degrelle_Up_Medium_tt
			hidden_effect = { add_command_power = -10 }
		}

		modifier = {
			command_power_gain = -0.15
			political_power_gain = -0.2
			war_support_weekly = -0.0025
		}

		remove_effect = {
			add_to_variable = { BRG_Monthly_Intel_Gain = 3 }
		}
	}


	BRG_Monthly_Intel_Gain_Post_Degrelle_Up_Large = {

		## Need some sort of resource cost

		visible = { has_completed_focus = BRG_under_our_thumb }

		custom_cost_trigger = { command_power > 24.99 }
		custom_cost_text = decision_cost_25_cp

		days_re_enable = 240

		days_remove = 56

		complete_effect = {
			custom_effect_tooltip = BRG_Montly_Intel_Up_Large
			hidden_effect = { add_command_power = -25 }
		}

		modifier = {
			command_power_gain = -0.2
			political_power_gain = -0.25
			stability_weekly = -0.05
		}

		remove_effect = {
			add_to_variable = { BRG_Monthly_Intel_Gain = 5 }
		}
	}

	BRG_Monthly_Intel_Gain_Post_Degrelle_Up_Massive = {

		visible = { has_completed_focus = BRG_accelerate_the_wait }

		custom_cost_trigger = { command_power > 19.99 }
		custom_cost_text = decision_cost_20_cp

		days_re_enable = 240

		days_remove = 90

		modifier = {
			political_power_gain = -0.3
			free_production_units_modifier = -2
		}

		complete_effect = {
			set_temp_variable = { temp_econ_spending_amount = 0.2 }
			econ_spend_money_once_effect_raw_money = yes
			hidden_effect = {
				add_command_power = -20
			}
		}

		remove_effect = {
			custom_effect_tooltip = BRG_massive_inteligence_gain
			add_to_variable = { BRG_Monthly_Intel_Gain = 15 }
		}
	}

	BRG_Increase_Monthly_Cops = {

		available = {
			has_equipment = { infantry_equipment > 749 }
			has_equipment = { support_equipment > 149 }
			NOT = { has_country_flag = BRG_Already_Doing_Loyalty_Decision }
		}

		custom_cost_trigger = { command_power > 9.99 }
		custom_cost_text = decision_cost_10_cp

		visible = { has_completed_focus = BRG_extend_our_logistics }

		days_re_enable = 90

		days_remove = 60

		complete_effect = {
			set_country_flag = BRG_Already_Doing_Loyalty_Decision
			custom_effect_tooltip = BRG_Increase_Monthly_Cops_decision_tooltip
			hidden_effect = { add_command_power = -10 }
		}

		remove_effect = {
			clr_country_flag = BRG_Already_Doing_Loyalty_Decision
			add_to_variable = { BRG_Cops_Monthly_Gain = 25 }
		}
	}

	BRG_Increase_Monthly_Cops_Larger = {

		available = {
			has_equipment = { infantry_equipment > 1249 }
			has_equipment = { support_equipment > 249 }
			NOT = { has_country_flag = BRG_Already_Doing_Loyalty_Decision }
		}

		visible = { has_completed_focus = BRG_in_our_palm }

		custom_cost_trigger = { command_power > 19.99 }
		custom_cost_text = decision_cost_20_cp

		days_re_enable = 180

		days_remove = 60

		complete_effect = {
			set_country_flag = BRG_Already_Doing_Loyalty_Decision
			custom_effect_tooltip = BRG_Increase_Monthly_Cops_decision_large_tooltip
			hidden_effect = { add_command_power = -20 }
		}

		remove_effect = {
			clr_country_flag = BRG_Already_Doing_Loyalty_Decision
			add_to_variable = { BRG_Cops_Monthly_Gain = 55 }
		}
	}

	BRG_expand_lange_power_walloon_small = {

		available = { NOT = { has_country_flag = BRG_Already_Doing_Loyalty_Decision } }

		visible = { has_country_flag = BRG_expand_lange_power_in_walloon_flag }

		days_re_enable = 15

		days_remove = 15

		complete_effect = {
			set_country_flag = BRG_Already_Doing_Loyalty_Decision
			custom_effect_tooltip = BRG_expand_lange_power_walloon_small_tooltip
		}

		modifier = {
			political_power_gain = -0.1
		}

		remove_effect = {
			clr_country_flag = BRG_Already_Doing_Loyalty_Decision
			add_to_variable = { BRG_Lange_Mod_Base_Loyalty = 1 }
			34 = {
				add_to_variable = { THIS.LangemarckSupportSupport = 5 }
				add_to_variable = { THIS.WalloonSupport = -5 }
			}
		}
	}

	BRG_expand_lange_power_walloon_large = {

		available = { NOT = { has_country_flag = BRG_Already_Doing_Loyalty_Decision } }

		visible = { has_country_flag = BRG_expand_lange_power_in_walloon_flag }

		days_re_enable = 25

		days_remove = 25

		complete_effect = {
			set_country_flag = BRG_Already_Doing_Loyalty_Decision
			custom_effect_tooltip = BRG_expand_lange_power_walloon_large_tooltip
		}

		modifier = {
			political_power_gain = -0.2
		}

		remove_effect = {
			add_to_variable = { BRG_Lange_Mod_Base_Loyalty = 1 }
			clr_country_flag = BRG_Already_Doing_Loyalty_Decision
			34 = {
				add_to_variable = { THIS.LangemarckSupportSupport = 15 }
				add_to_variable = { THIS.WalloonSupport = -15 }
			}
		}
	}

	BRG_hard_charla_loyalty_decision = {

		available = { NOT = { has_country_flag = BRG_Already_Doing_Loyalty_Decision } }

		visible = { has_country_flag = BRG_hard_charla_loyalty_decisions_flag }

		days_re_enable = 45

		days_remove = 30

		complete_effect = {
			set_country_flag = BRG_Already_Doing_Loyalty_Decision
			custom_effect_tooltip = BRG_hard_charla_loyalty_decision_tooltip
		}

		modifier = {
			political_power_gain = -0.15
			command_power_gain = -0.15
		}

		remove_effect = {
			clr_country_flag = BRG_Already_Doing_Loyalty_Decision
			add_to_variable = { BRG_Charla_Mod_Base_Loyalty = 0.001 }
			add_to_variable = { BRG_Charla_Sus = 3 }
			hidden_effect = {
				every_owned_state = {
					limit = { NOT = { state = 34 state = 6 } }
					subtract_from_variable = { THIS.CharlemagneSupport = 3 }
					add_to_variable = { THIS.HimmlerSupport = 3 }
				}
			}
		}
	}


	BRG_hard_charla_loyalty_decision_2 = {

		available = { NOT = { has_country_flag = BRG_Already_Doing_Loyalty_Decision } }

		visible = { has_country_flag = BRG_hard_charla_loyalty_decisions_flag }

		days_re_enable = 60

		days_remove = 45

		complete_effect = {
			set_country_flag = BRG_Already_Doing_Loyalty_Decision
			custom_effect_tooltip = BRG_hard_charla_loyalty_decision_2_tooltip
		}

		modifier = {
			political_power_gain = -0.2
			command_power_gain = -0.25
		}

		remove_effect = {
			clr_country_flag = BRG_Already_Doing_Loyalty_Decision
			add_to_variable = { BRG_Charla_Sus = 5 }
			hidden_effect = {
				every_owned_state = {
					limit = { NOT = { state = 34 state = 6 } }
					subtract_from_variable = { THIS.CharlemagneSupport = 6 }
					add_to_variable = { THIS.HimmlerSupport = 6 }
				}
			}
		}
	}

	##################################################################################################################################
	##############
	##############			DEGRELLE STUFF
	##############
	##################################################################################################################################



	######################## INTEL DECISIONS

	BRG_Get_Little_Intel = {

		available = { NOT = { has_country_flag = BRG_Already_Doing_An_Intel_Decision } }

		visible = { NOT = { has_country_flag = BRG_DeGrelle_Fled } has_completed_focus = BRG_the_troublesome_snake }


		days_re_enable = 15

		days_remove = 15

		cost = 15

		complete_effect = {
			custom_effect_tooltip = BRG_Get_Little_Intel_tt
			set_country_flag = BRG_Already_Doing_An_Intel_Decision
			add_to_variable = { BRG_Gathered_Intelligence = 10 }
		}

		modifier = {
			political_power_gain = -0.1
		}

		remove_effect = {
			clr_country_flag = BRG_Already_Doing_An_Intel_Decision
			add_to_variable = { BRG_Degrelle_Sus = -3 }
		}
	}

	BRG_Get_Lots_Intel = {

		available = { NOT = { has_country_flag = BRG_Already_Doing_An_Intel_Decision } }

		visible = { NOT = { has_country_flag = BRG_DeGrelle_Fled } has_completed_focus = BRG_the_troublesome_snake }

		days_re_enable = 20

		days_remove = 20

		cost = 25

		complete_effect = {
			custom_effect_tooltip = BRG_Get_Intel_tt
			set_country_flag = BRG_Already_Doing_An_Intel_Decision
			add_to_variable = { BRG_Gathered_Intelligence = 25 }
		}

		modifier = {
			political_power_gain = -0.15
		}

		remove_effect = {
			clr_country_flag = BRG_Already_Doing_An_Intel_Decision
			add_to_variable = { BRG_Degrelle_Sus = -5 }
			add_to_variable = { 34.HimmlerSupport = -3 }
		}
	}



	BRG_Monthly_Intel_Gain_Up = {

		available = { NOT = { has_country_flag = BRG_Already_Doing_An_Intel_Decision } }

		visible = { NOT = { has_country_flag = BRG_DeGrelle_Fled } has_completed_focus = BRG_keep_our_enemies_close }

		custom_cost_trigger = { command_power > 24.99 }
		custom_cost_text = decision_cost_25_cp

		days_re_enable = 60

		days_remove = 30

		complete_effect = {
			custom_effect_tooltip = BRG_increase_monthly_intel_a_little_DeGrelle
			set_country_flag = BRG_Already_Doing_An_Intel_Decision
			add_to_variable = { BRG_Monthly_Intel_Gain = 2 }
			hidden_effect = { add_command_power = -25 }
		}

		modifier = {
			political_power_gain = -0.05
		}

		remove_effect = {
			clr_country_flag = BRG_Already_Doing_An_Intel_Decision
		}
	}


	######################## SUS DECISIONS

	BRG_Lower_DeGrelle_Sus_A_Little = {

		available = { NOT = { has_country_flag = BRG_Already_Doing_A_Sus_Decisions } }

		visible = { NOT = { has_country_flag = BRG_DeGrelle_Fled } has_country_flag = BRG_Investigating_DeGrelle }

		days_re_enable = 20

		days_remove = 15

		cost = 10

		complete_effect = {
			set_country_flag = BRG_Already_Doing_A_Sus_Decisions
			custom_effect_tooltip = BRG_Low_Sus_DeGrelle_Tooltip
			add_to_variable = { BRG_Degrelle_Sus = -3 }
		}

		modifier = {
			political_power_gain = -0.05
		}

		remove_effect = {
			clr_country_flag = BRG_Already_Doing_A_Sus_Decisions
			add_to_variable = { 34.WalloonSupport = -2 }
			add_to_variable = { 34.HimmlerSupport = 2 }
		}
	}

	BRG_Lower_DeGrelle_Sus_Medium = {

		available = { NOT = { has_country_flag = BRG_Already_Doing_A_Sus_Decisions } }

		visible = { NOT = { has_country_flag = BRG_DeGrelle_Fled } has_country_flag = BRG_Investigating_DeGrelle has_country_flag = BRG_Unlocked_DeGrelle_Sus_Decisions }

		days_re_enable = 20

		days_remove = 20

		cost = 20

		complete_effect = {
			set_country_flag = BRG_Already_Doing_A_Sus_Decisions
			custom_effect_tooltip = BRG_Sus_Medium_DeGrelle_Tooltip
			add_to_variable = { BRG_Degrelle_Sus = -6 }
		}

		modifier = {
			political_power_gain = -0.15
		}

		remove_effect = {
			clr_country_flag = BRG_Already_Doing_A_Sus_Decisions
			add_to_variable = { BRG_Gathered_Intelligence = -5 }
			add_to_variable = { 34.WalloonSupport = -3 }
			add_to_variable = { 34.HimmlerSupport = 3 }
		}
	}


	BRG_Lower_DeGrelle_Sus_Lots = {

		available = { NOT = { has_country_flag = BRG_Already_Doing_A_Sus_Decisions } }

		visible = { NOT = { has_country_flag = BRG_DeGrelle_Fled } has_country_flag = BRG_Investigating_DeGrelle has_country_flag = BRG_Unlocked_DeGrelle_Sus_Decisions }

		days_re_enable = 30

		days_remove = 25

		cost = 30

		modifier = {
			political_power_gain = -0.2
		}

		complete_effect = {
			set_country_flag = BRG_Already_Doing_A_Sus_Decisions
			custom_effect_tooltip = BRG_Sus_Lots_DeGrelle_Tooltip
			add_to_variable = { BRG_Degrelle_Sus = -12 }
		}

		remove_effect = {
			clr_country_flag = BRG_Already_Doing_A_Sus_Decisions
			add_to_variable = { BRG_Gathered_Intelligence = -10 }
			add_to_variable = { 34.WalloonSupport = -6 }
			add_to_variable = { 34.HimmlerSupport = 6 }
		}
	}

	BRG_Blackmail_Charlemagne = {

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_Cost_1_Evidence
				check_variable = { BRG_Large_Evidence > 0 }
			}
		}

		visible = { has_country_flag = BRG_Post_DeGrelle_Investigations_Unlocked }

		days_remove = 42

		complete_effect = {
			custom_effect_tooltip = BRG_Blackmailing_Charlemagne_tt
			add_to_variable = { BRG_Large_Evidence = -1 }
		}

		remove_effect = {

			hidden_effect = {

			every_owned_state = {
				if = {
					limit = {
						NOT = {
							OR = {
								state = 6 ### Flandern
								state = 29 ### Kalen
								state = 1626 ### Pickardien
								state = 34 ### Walloonien
								state = 18 ### Kampen
								state = 1625 ### Reimen
								state = 17 # Frieg whatever
								state = 15 # Normandie
							}
						}
					}
					add_to_variable = { THIS.CharlemagneSupport = -20 }
					subtract_from_variable = { THIS.HimmlerSupport = -15 }
				}
			}

			BRG_Updating_State_Pops_Overlays = yes
			}
		}

		modifier = {
			political_power_gain = -0.05
		}
	}


	BRG_Blackmail_WLN = {

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_Cost_1_Evidence_WLN
				check_variable = { BRG_Evidence_On_Walloon > 0 }
			}
		}

		visible = { has_country_flag = BRG_Post_DeGrelle_Investigations_Unlocked }

		days_remove = 42

		complete_effect = {
			custom_effect_tooltip = BRG_Blackmailing_WLN_tt
			add_to_variable = { BRG_Evidence_On_Walloon = -1 }
		}

		remove_effect = {
			hidden_effect = {

			every_owned_state = {
				if = {
					limit = {
						OR = {
							state = 34 ### Walloonien
							state = 18 ### Kampen
							state = 17 # Frieg whatever
						}
					}

					add_to_variable = { THIS.WalloonSupport = -20 }
					subtract_from_variable = { THIS.HimmlerSupport = -15 }
				}
			}

			BRG_Updating_State_Pops_Overlays = yes
			}
		}

		modifier = {
			political_power_gain = -0.05
		}
	}

}

##################################################################################################################################
##############
##############			OPERATIONS
##############
##################################################################################################################################

BRG_operations_category = {
	BRG_prepare_trap = {
		icon = GFX_decision_generic_point

		visible = { has_completed_focus = BRG_setting_the_trap }

		cost = 30

		days_re_enable = 60

		days_remove = 30

		complete_effect = {
			custom_effect_tooltip = BRG_prepare_trap_cost
			hidden_effect = {
				every_owned_state = {
					subtract_from_variable = { BRG_Cop_To_Worker_Ratio = 1 }
					if = {
						limit = { check_variable = { BRG_Cop_To_Worker_Ratio = 0 } } #Handle cases where effectivness was already as bad as it could be
						set_state_flag = BRG_already_shit_cops
					}
					clamp_variable = {
						var = BRG_Cop_To_Worker_Ratio
						min = 1
						max = 10
					}
				}
			}
		}

		remove_effect = {
			custom_effect_tooltip = BRG_gain_groundwork_10
			hidden_effect = {
				every_owned_state = {
					if = { #Ensure that states which already had the worst possible effectivness don't end up getting an effectivness boost
						limit = { NOT = { has_state_flag = BRG_already_shit_cops } }
						add_to_variable = { BRG_Cop_To_Worker_Ratio = 1 }
					}
					else = { clr_state_flag = BRG_already_shit_cops }
				}
				add_to_variable = { BRG_Operations_Groundwork = 10 }
			}
		}
	}
	BRG_rearrange_administration = {

		visible = { has_completed_focus = BRG_setting_the_trap }

		cost = 30

		days_re_enable = 70

		days_remove = 35

		modifier = {
			political_power_gain = -0.25
			stability_weekly = -0.03
		}

		complete_effect = {
			custom_effect_tooltip = BRG_gain_groundwork_10
			add_to_variable = { BRG_Operations_Groundwork = 10 }
		}
	}

	BRG_isolate_legion_loyalists = {
		visible = { has_completed_focus = BRG_setting_the_trap }
		icon = GFX_decision_generic_investigate

		days_re_enable = 60

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_worker_reserve_cost
				check_variable = { BRG_Skilled_Worker_National_Pop_Reserve > 9999 }
			}
		}

		complete_effect = {
			custom_effect_tooltip = BRG_gain_groundwork_10
			subtract_from_variable = { BRG_Skilled_Worker_National_Pop_Reserve = 10000 }
			add_to_variable = { BRG_Operations_Groundwork = 10 }
		}
	}




	BRG_provide_additional_equipment = {
		visible = { has_completed_focus = BRG_setting_the_trap }
		icon = GFX_decision_generic_supply
		days_re_enable = 30

		available = { has_equipment = { support_equipment > 249 } }

		complete_effect = {
			custom_effect_tooltip = BRG_gain_groundwork_10
			add_to_variable = { BRG_Operations_Groundwork = 10 }
			hidden_effect = {
				set_temp_variable = { BRG_equipment_cost = 250 }
				multiply_temp_variable = { BRG_equipment_cost = -1 }
				add_equipment_to_stockpile = { #All that just because HOI4 lacks a good way to remove equipment, thank you my countrymen
					type = support_equipment
					amount = BRG_equipment_cost
				}
			}
		}
	}

		BRG_lower_political_costs = {
		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_groundwork_cost_5
				check_variable = { BRG_Operations_Groundwork > 4 }
			}
		}
		visible = {
			NOT = { has_country_flag = BRG_charlemagne_dead }
			has_completed_focus = BRG_the_final_moves
			has_country_flag = BRG_selected_operation
			check_variable = { BRG_operation_political_cost_medium > 10 }
		}
		cost = 60

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_reduce_political_costs
			subtract_from_variable = { BRG_Operations_Groundwork = 5 }
			subtract_from_variable = { BRG_operation_political_cost_small = 10 }
			subtract_from_variable = { BRG_operation_political_cost_medium = 20 }
			subtract_from_variable = { BRG_operation_political_cost_large = 30 }
		}
	}

	BRG_lower_equipment_costs = {
		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_groundwork_cost_5
				check_variable = { BRG_Operations_Groundwork > 4 }
			}
		}
		visible = {
			NOT = { has_country_flag = BRG_charlemagne_dead }
			has_completed_focus = BRG_the_final_moves
			has_country_flag = BRG_selected_operation
			check_variable = { BRG_operation_equipment_cost > 1000 }
		}
		cost = 40

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_reduce_equipment_costs
			subtract_from_variable = { BRG_Operations_Groundwork = 5 }
			subtract_from_variable = { BRG_operation_equipment_cost = 1000 }
		}
	}


	BRG_pursue_walloon = {
		visible = {
			NOT = { has_country_flag = BRG_selected_operation }
			OR = {
				NOT = { has_country_flag = BRG_walloon_dead }
			}
			has_completed_focus = BRG_the_final_moves
		}

		available = { has_country_flag = BRG_WLN_Has_Lions_Den_Evidence }

		fire_only_once = yes

		complete_effect = {
			set_country_flag = BRG_selected_operation
			set_variable = { BRG_Operations_Target_Selector = 1 }
		}
	}


	BRG_pursue_charlemagne = {
		visible = {
			NOT = { has_country_flag = BRG_selected_operation }
			OR = {
				NOT = { has_country_flag = BRG_charlemagne_dead }
			}
			has_completed_focus = BRG_the_final_moves
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_Has_2_Pieces_Charla_Evidence
				check_variable = { BRG_Charla_Final_Pieces > 1 }
			}
		}

		fire_only_once = yes

		complete_effect = {
			set_country_flag = BRG_selected_operation
			set_variable = { BRG_Operations_Target_Selector = 2 }
		}
	}


	BRG_pursue_resistance = {
		visible = {
			NOT = { has_country_flag = BRG_selected_operation }
			NOT = { has_country_flag = BRG_resistance_dead }
			NOT = { has_country_flag = BRG_resistance_failure }
			has_completed_focus = BRG_the_final_moves
		}

		available = { has_country_flag = BRG_RPY_Has_Henri_Evidence }

		fire_only_once = yes

		complete_effect = {
			set_country_flag = BRG_selected_operation
			set_variable = { BRG_Operations_Target_Selector = 3 }
		}
	}


###########################################
### WALLOON
###########################################


	BRG_Walloon_Operation_Groundwork_To_Prep = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_groundwork_cost_5
				check_variable = { BRG_Operations_Groundwork > 4 }
			}
		}
		visible = {
			check_variable = { BRG_Operations_Target_Selector = 1 }
		}

		cost = BRG_operation_political_cost_small

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_gain_prep_5
			custom_effect_tooltip = BRG_Legion_Sus_Up_6
			hidden_effect = {
				subtract_from_variable = { BRG_Operations_Groundwork = 5 }
				add_to_variable = { BRG_Operations_Walloon_Prep = 5 }

				add_to_variable = { BRG_Operations_Walloon_Sus = 6 }
			}
		}
	}

	BRG_Walloon_Operation_Groundwork_To_Prep_2 = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_groundwork_cost_10
				check_variable = { BRG_Operations_Groundwork > 9 }
			}
		}
		visible = {
			check_variable = { BRG_Operations_Target_Selector = 1 }
		}

		cost = BRG_operation_political_cost_medium

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_gain_prep_10
			custom_effect_tooltip = BRG_Legion_Sus_Up_11
			hidden_effect = {
				subtract_from_variable = { BRG_Operations_Groundwork = 10 }

				add_to_variable = { BRG_Operations_Walloon_Prep = 10 }

				add_to_variable = { BRG_Operations_Walloon_Sus = 11 }
			}
		}
	}


	BRG_Walloon_Operation_Guns_To_Prep = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_equipment_requirement
				has_equipment = { infantry_equipment > BRG_operation_equipment_cost }
			}
		}
		visible = {
			check_variable = { BRG_Operations_Target_Selector = 1 }
		}
		cost = BRG_operation_political_cost_small

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_gain_prep_10
			custom_effect_tooltip = BRG_Legion_Sus_Up_6

			hidden_effect = {
				add_to_variable = { BRG_Operations_Walloon_Prep = 10 }
				set_temp_variable = { BRG_equipment_cost = BRG_operation_equipment_cost }
				multiply_temp_variable = { BRG_equipment_cost = -1 }
				add_equipment_to_stockpile = { #All that just because HOI4 lacks a good way to remove equipment, thank you my countrymen
					type = infantry_equipment
					amount = BRG_equipment_cost
				}
				add_to_variable = { BRG_Operations_Walloon_Sus = 6 }
			}
		}
	}

	BRG_Walloon_Operation_PP_To_Prep = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
		}

		visible = {
			check_variable = { BRG_Operations_Target_Selector = 1 }
		}
		cost = BRG_operation_political_cost_large

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_gain_prep_10
			custom_effect_tooltip = BRG_Legion_Sus_Up_11
			hidden_effect = {

				add_to_variable = { BRG_Operations_Walloon_Prep = 10 }

				add_to_variable = { BRG_Operations_Walloon_Sus = 11 }
			}
		}
	}

	BRG_Walloon_Operation_Groundwork_To_Sus = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_groundwork_cost_10
				check_variable = { BRG_Operations_Groundwork > 9 }
			}
		}
		visible = {
			check_variable = { BRG_Operations_Target_Selector = 1 }
			has_completed_focus = BRG_fake_our_movements
		}
		cost = BRG_operation_political_cost_small

		days_re_enable = 60

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_Legion_Sus_Down_15
			hidden_effect = {
				subtract_from_variable = { BRG_Operations_Groundwork = 10 }
				subtract_from_variable = { BRG_Operations_Walloon_Sus = 15 }
			}
		}
	}

	BRG_Walloon_Operation_Guns_To_Sus = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_equipment_requirement
				has_equipment = { infantry_equipment > BRG_operation_equipment_cost }
			}
		}
		visible = {
			check_variable = { BRG_Operations_Target_Selector = 1 }
		}
		cost = BRG_operation_political_cost_medium

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_Legion_Sus_Down_15
			hidden_effect = {

				set_temp_variable = { BRG_equipment_cost = BRG_operation_equipment_cost }
				multiply_temp_variable = { BRG_equipment_cost = -1 }
				add_equipment_to_stockpile = { #All that just because HOI4 lacks a good way to remove equipment, thank you my countrymen
					type = infantry_equipment
					amount = BRG_equipment_cost
				}

				subtract_from_variable = { BRG_Operations_Walloon_Sus = 15 }
			}
		}
	}

	BRG_Walloon_Operation_PP_To_Sus = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		visible = {
			check_variable = { BRG_Operations_Target_Selector = 1 }
			has_completed_focus = BRG_fake_our_movements
		}
		cost = BRG_operation_political_cost_medium

		days_re_enable = 30

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_Legion_Sus_Down_10
			hidden_effect = { subtract_from_variable = { BRG_Operations_Walloon_Sus = 10 } }
		}
	}


	BRG_murder_walloon = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		visible = {
			check_variable = { BRG_Operations_Target_Selector = 1 }
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_prep_gate
				check_variable = { BRG_Operations_Walloon_Prep > 99 }
			}
		}

		fire_only_once = yes

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			hidden_effect = {
				BRG_Operations_Dismantelement_Setup = yes
				set_variable = { BRG_Operations_Target_Selector = 0 }
				subtract_from_variable = { BRG_Operations_Walloon_Prep = 100 }
			}
		}
	}


	###########################################
	### CHARLEMAGNE
	###########################################


	BRG_Charlemagne_Operation_Groundwork_To_Prep = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_groundwork_cost_5
			}
			check_variable = { BRG_Operations_Groundwork > 4 }
		}
		visible = {
			check_variable = { BRG_Operations_Target_Selector = 2 }
		}

		cost = BRG_operation_political_cost_small

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_gain_prep_5
			custom_effect_tooltip = BRG_Legion_Sus_Up_6
			hidden_effect = {
				subtract_from_variable = { BRG_Operations_Groundwork = 5 }
				add_to_variable = { BRG_Operations_Charlemagne_Prep = 5 }

				add_to_variable = { BRG_Operations_Charlemagne_Sus = 6 }
			}
		}
	}

	BRG_Charlemagne_Operation_Groundwork_To_Prep_2 = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_groundwork_cost_10
			}
			check_variable = { BRG_Operations_Groundwork > 9 }
		}
		visible = {
			check_variable = { BRG_Operations_Target_Selector = 2 }
		}

		cost = BRG_operation_political_cost_medium

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_gain_prep_10
			custom_effect_tooltip = BRG_Legion_Sus_Up_11
			hidden_effect = {
				subtract_from_variable = { BRG_Operations_Groundwork = 10 }

				add_to_variable = { BRG_Operations_Charlemagne_Prep = 10 }

				add_to_variable = { BRG_Operations_Charlemagne_Sus = 11 }
			}
		}
	}


	BRG_Charlemagne_Operation_Guns_To_Prep = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_equipment_requirement
				has_equipment = { infantry_equipment > BRG_operation_equipment_cost }
			}
		}
		visible = {
			check_variable = { BRG_Operations_Target_Selector = 2 }
		}
		cost = BRG_operation_political_cost_small

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_gain_prep_10
			custom_effect_tooltip = BRG_Legion_Sus_Up_6

			hidden_effect = {
				add_to_variable = { BRG_Operations_Charlemagne_Prep = 10 }
				set_temp_variable = { BRG_equipment_cost = BRG_operation_equipment_cost }
				multiply_temp_variable = { BRG_equipment_cost = -1 }
				add_equipment_to_stockpile = { #All that just because HOI4 lacks a good way to remove equipment, thank you my countrymen
					type = infantry_equipment
					amount = BRG_equipment_cost
				}
				add_to_variable = { BRG_Operations_Charlemagne_Sus = 6 }
			}
		}
	}

	BRG_Charlemagne_Operation_PP_To_Prep = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
		}

		visible = {
			check_variable = { BRG_Operations_Target_Selector = 2 }
		}
		cost = BRG_operation_political_cost_large

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_gain_prep_10
			custom_effect_tooltip = BRG_Legion_Sus_Up_11
			hidden_effect = {

				add_to_variable = { BRG_Operations_Charlemagne_Prep = 10 }
				add_to_variable = { BRG_Operations_Charlemagne_Sus = 11 }
			}
		}
	}

	BRG_Charlemagne_Operation_Groundwork_To_Sus = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_groundwork_cost_10
			}
			check_variable = { BRG_Operations_Groundwork > 9 }
		}
		visible = {
			check_variable = { BRG_Operations_Target_Selector = 2 }
			has_completed_focus = BRG_fake_our_movements
		}
		cost = BRG_operation_political_cost_small

		days_re_enable = 60

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_Legion_Sus_Down_15
			hidden_effect = {
				subtract_from_variable = { BRG_Operations_Groundwork = 10 }
				subtract_from_variable = { BRG_Operations_Charlemagne_Sus = 15 }
			}
		}
	}

	BRG_Charlemagne_Operation_Guns_To_Sus = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_equipment_requirement
				has_equipment = { infantry_equipment > BRG_operation_equipment_cost }
			}
		}
		visible = {
			check_variable = { BRG_Operations_Target_Selector = 2 }
		}
		cost = BRG_operation_political_cost_medium

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_Legion_Sus_Down_15
			hidden_effect = {

				set_temp_variable = { BRG_equipment_cost = BRG_operation_equipment_cost }
				multiply_temp_variable = { BRG_equipment_cost = -1 }
				add_equipment_to_stockpile = { #All that just because HOI4 lacks a good way to remove equipment, thank you my countrymen
					type = infantry_equipment
					amount = BRG_equipment_cost
				}

				subtract_from_variable = { BRG_Operations_Charlemagne_Sus = 15 }
			}
		}
	}

	BRG_Charlemagne_Operation_PP_To_Sus = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		visible = {
			check_variable = { BRG_Operations_Target_Selector = 2 }
			has_completed_focus = BRG_fake_our_movements
		}
		cost = BRG_operation_political_cost_medium

		days_re_enable = 30

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_Legion_Sus_Down_10
			hidden_effect = { subtract_from_variable = { BRG_Operations_Charlemagne_Sus = 10 } }
		}
	}

	BRG_murder_charlemagne = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		visible = {
			check_variable = { BRG_Operations_Target_Selector = 2 }
			has_completed_focus = BRG_fake_our_movements
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_prep_gate
				check_variable = { BRG_Operations_Charlemagne_Prep > 99 }
			}
		}
		cost = BRG_operation_political_cost_large

		fire_only_once = yes

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			hidden_effect = {
				BRG_Operations_Dismantelement_Setup = yes
				set_variable = { BRG_Operations_Target_Selector = 0 }
				subtract_from_variable = { BRG_Operations_Charlemagne_Prep = 100 }
				}
			}
		}


	###########################################
	### RPY
	###########################################


	BRG_RPY_Operation_Groundwork_To_Prep = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_groundwork_cost_5
			}
			check_variable = { BRG_Operations_Groundwork > 4 }
		}
		visible = {
			check_variable = { BRG_Operations_Target_Selector = 3 }
		}

		cost = BRG_operation_political_cost_small

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_gain_prep_5
			custom_effect_tooltip = BRG_Legion_Sus_Up_6
			hidden_effect = {
				subtract_from_variable = { BRG_Operations_Groundwork = 5 }
				add_to_variable = { BRG_Operations_RPY_Prep = 5 }

				add_to_variable = { BRG_Operations_RPY_Sus = 6 }
			}
		}
	}

	BRG_RPY_Operation_Groundwork_To_Prep_2 = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_groundwork_cost_10
			}
			check_variable = { BRG_Operations_Groundwork > 9 }
		}
		visible = {
			check_variable = { BRG_Operations_Target_Selector = 3 }
		}

		cost = BRG_operation_political_cost_medium

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_gain_prep_10
			custom_effect_tooltip = BRG_Legion_Sus_Up_11
			hidden_effect = {
				subtract_from_variable = { BRG_Operations_Groundwork = 10 }

				add_to_variable = { BRG_Operations_RPY_Prep = 10 }

				add_to_variable = { BRG_Operations_RPY_Sus = 11 }
			}
		}
	}


	BRG_RPY_Operation_Guns_To_Prep = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_equipment_requirement
				has_equipment = { infantry_equipment > BRG_operation_equipment_cost }
			}
		}
		visible = {
			check_variable = { BRG_Operations_Target_Selector = 3 }
		}
		cost = BRG_operation_political_cost_small

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_gain_prep_10
			custom_effect_tooltip = BRG_Legion_Sus_Up_6

			hidden_effect = {
				add_to_variable = { BRG_Operations_RPY_Prep = 10 }
				set_temp_variable = { BRG_equipment_cost = BRG_operation_equipment_cost }
				multiply_temp_variable = { BRG_equipment_cost = -1 }
				add_equipment_to_stockpile = { #All that just because HOI4 lacks a good way to remove equipment, thank you my countrymen
					type = infantry_equipment
					amount = BRG_equipment_cost
				}
				add_to_variable = { BRG_Operations_RPY_Sus = 6 }
			}
		}
	}

	BRG_RPY_Operation_PP_To_Prep = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
		}

		visible = {
			check_variable = { BRG_Operations_Target_Selector = 3 }
		}
		cost = BRG_operation_political_cost_large

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_gain_prep_10
			custom_effect_tooltip = BRG_Legion_Sus_Up_11
			hidden_effect = {

				add_to_variable = { BRG_Operations_RPY_Prep = 10 }

				add_to_variable = { BRG_Operations_RPY_Sus = 11 }
			}
		}
	}

	BRG_RPY_Operation_Groundwork_To_Sus = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_groundwork_cost_10
			}
			check_variable = { BRG_Operations_Groundwork > 9 }
		}
		visible = {
			check_variable = { BRG_Operations_Target_Selector = 3 }
			has_completed_focus = BRG_fake_our_movements
		}
		cost = BRG_operation_political_cost_small

		days_re_enable = 60

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_Legion_Sus_Down_15
			hidden_effect = {
				subtract_from_variable = { BRG_Operations_Groundwork = 10 }
				subtract_from_variable = { BRG_Operations_RPY_Sus = 15 }
			}
		}
	}

	BRG_RPY_Operation_Guns_To_Sus = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_equipment_requirement
				has_equipment = { infantry_equipment > BRG_operation_equipment_cost }
			}
		}
		visible = {
			check_variable = { BRG_Operations_Target_Selector = 3 }
		}
		cost = BRG_operation_political_cost_medium

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_Legion_Sus_Down_15
			hidden_effect = {

				set_temp_variable = { BRG_equipment_cost = BRG_operation_equipment_cost }
				multiply_temp_variable = { BRG_equipment_cost = -1 }
				add_equipment_to_stockpile = { #All that just because HOI4 lacks a good way to remove equipment, thank you my countrymen
					type = infantry_equipment
					amount = BRG_equipment_cost
				}

				subtract_from_variable = { BRG_Operations_RPY_Sus = 15 }
			}
		}
	}

	BRG_RPY_Operation_PP_To_Sus = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		visible = {
			check_variable = { BRG_Operations_Target_Selector = 3 }
			has_completed_focus = BRG_fake_our_movements
		}
		cost = BRG_operation_political_cost_medium

		days_re_enable = 30

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_Legion_Sus_Down_10
			hidden_effect = { subtract_from_variable = { BRG_Operations_RPY_Sus = 10 } }
		}
	}

	BRG_murder_RPY = {

		icon = GFX_decision_generic_civil_support

		allowed = { original_tag = BRG }

		visible = {
			check_variable = { BRG_Operations_Target_Selector = 3 }
			has_completed_focus = BRG_fake_our_movements
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_prep_gate
				check_variable = { BRG_Operations_RPY_Prep > 99 }
			}
		}
		cost = BRG_operation_political_cost_large

		fire_only_once = yes

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			hidden_effect = {
				BRG_Operations_Dismantelement_Setup = yes
				set_variable = { BRG_Operations_Target_Selector = 0 }
				subtract_from_variable = { BRG_Operations_RPY_Prep = 100 }
				}
			}
		}

}
##################################################################################################################################
##############
##############			OPENING TREE
##############
##################################################################################################################################

TNO_BRG_Debug_category = {
	TNO_BRG_DebugButtonsDomestic = {
		complete_effect = {
			set_country_flag = TNO_BRG_DebugButtonsDomestic
		}
	}
	TNO_BRG_DebugPostFBW = {
		complete_effect = {
			country_event = BRG_Opening.6
		}
	}
	TNO_BRG_DebugCollapse = {
		visible = { owns_state = 16 }
		complete_effect = {
			country_event = BRG_collapse.104
		}
	}
	TNO_BRG_ForceMonthlyUpdate = {
		complete_effect = {
			BRG_monthly_pulse_effect = yes
		}
	}
	TNO_BRG_ActivateRodomo = {
		complete_effect = {
			set_country_flag = TNO_Debug_Giv_Rodomo
		}
	}
	TNO_BRG_ActivateFamine = {
		complete_effect = {
			set_country_flag = BRG_Famine_Begun
		}
	}
	TNO_BRG_ActivateOperations = {
		complete_effect = {
			set_country_flag = BRG_Operations_Begun
		}
	}
	TNO_BRG_ActivateInvestigations = {
		complete_effect = {
			set_country_flag = BRG_Investigating_DeGrelle
		}
	}
	TNO_BRG_OpenTreeDebug = {
		visible = {
			NOT = { has_country_flag = TNO_BRG_OpenTreeDebug }
		}
		complete_effect = {
			set_country_flag = TNO_BRG_OpenTreeDebug
		}
	}
	TNO_BRG_CloseTreeDebug = {
		visible = {
			has_country_flag = TNO_BRG_OpenTreeDebug
		}
		complete_effect = {
			clr_country_flag = TNO_BRG_OpenTreeDebug
		}
	}
	TNO_BRG_TreeDebug_Intro = {
		visible = {
			has_country_flag = TNO_BRG_OpenTreeDebug
		}
		complete_effect = {
			set_country_flag = BRG_start_tree
			TNO_BRG_main_tree_swap = yes
		}
	}
	TNO_BRG_TreeDebug_IntroFull = {
		visible = {
			has_country_flag = BRG_start_tree
			has_country_flag = TNO_BRG_OpenTreeDebug
		}
		complete_effect = {
			set_country_flag = BRG_assassination_failed
			TNO_BRG_main_tree_swap = yes
		}
	}
	TNO_BRG_TreeDebug_GCW = {
		visible = {
			has_country_flag = TNO_BRG_OpenTreeDebug
		}
		complete_effect = {
			set_country_flag = BRG_fall_ragnarchar_allowed
			set_global_flag = german_civil_war # really can't be bothered to add a debug flag just for this
			TNO_BRG_main_tree_swap = yes
		}
	}
	TNO_BRG_TreeDebug_Infra1 = {
		visible = {
			has_country_flag = TNO_BRG_OpenTreeDebug
		}
		complete_effect = {
			set_country_flag = BRG_infrastructure_phase_1
			TNO_BRG_main_tree_swap = yes
		}
	}
	TNO_BRG_TreeDebug_Infra2 = {
		visible = {
			has_country_flag = TNO_BRG_OpenTreeDebug
			has_country_flag = BRG_infrastructure_phase_1
		}
		complete_effect = {
			set_country_flag = BRG_infrastructure_phase_2
			TNO_BRG_main_tree_swap = yes
		}
	}
	TNO_BRG_TreeDebug_Famine1 = {
		visible = {
			has_country_flag = TNO_BRG_OpenTreeDebug
		}
		complete_effect = {
			set_country_flag = BRG_agriculture_phase_1
			TNO_BRG_main_tree_swap = yes
		}
	}
	TNO_BRG_TreeDebug_Famine2 = {
		visible = {
			has_country_flag = TNO_BRG_OpenTreeDebug
			has_country_flag = BRG_agriculture_phase_1
		}
		complete_effect = {
			set_country_flag = BRG_agriculture_phase_2
			TNO_BRG_main_tree_swap = yes
		}
	}
	TNO_BRG_TreeDebug_Political1 = {
		visible = {
			has_country_flag = TNO_BRG_OpenTreeDebug
		}
		complete_effect = {
			set_country_flag = BRG_start_tree_complete
			TNO_BRG_main_tree_swap = yes
		}
	}
	TNO_BRG_TreeDebug_Political2 = {
		visible = {
			has_country_flag = TNO_BRG_OpenTreeDebug
			has_country_flag = BRG_start_tree_complete
		}
		complete_effect = {
			set_country_flag = BRG_debug_load_political_tree_phase_1
			TNO_BRG_main_tree_swap = yes
		}
	}
	TNO_BRG_TreeDebug_Political3 = {
		visible = {
			has_country_flag = TNO_BRG_OpenTreeDebug
			has_country_flag = BRG_debug_load_political_tree_phase_1
		}
		complete_effect = {
			set_country_flag = BRG_political_phase_2
			TNO_BRG_main_tree_swap = yes
		}
	}
	TNO_BRG_TreeDebug_Political4 = {
		visible = {
			has_country_flag = TNO_BRG_OpenTreeDebug
			has_country_flag = BRG_political_phase_2
		}
		complete_effect = {
			set_country_flag = BRG_political_phase_3
			TNO_BRG_main_tree_swap = yes
		}
	}
	TNO_BRG_TreeDebug_Political5 = {
		visible = {
			has_country_flag = TNO_BRG_OpenTreeDebug
			has_country_flag = BRG_political_phase_3
		}
		complete_effect = {
			set_country_flag = BRG_Start_Novak_Barbie
			TNO_BRG_main_tree_swap = yes
		}
	}
	TNO_BRG_TreeDebug_Education = {
		visible = {
			has_country_flag = TNO_BRG_OpenTreeDebug
		}
		complete_effect = {
			set_country_flag = BRG_Education_Crisis_Begun
			set_country_flag = BRG_education_debug_waiting_on_you_tex
			TNO_BRG_domestic_tree_swap = yes
			16 = {
				set_variable = { BRG_Conversion_Susceptibility = 24 }
				set_variable = { HimmlerSupport = 60 }
				set_variable = { CharlemagneSupport = 30 }
			}
			1635 = {
				set_variable = { BRG_Conversion_Susceptibility = 11 }
				set_variable = { HimmlerSupport = 60 }
				set_variable = { CharlemagneSupport = 30 }
			}
			788 = {
				set_variable = { BRG_Conversion_Susceptibility = 35 }
				set_variable = { HimmlerSupport = 60 }
				set_variable = { CharlemagneSupport = 30 }
			}
			1626 = {
				set_variable = { BRG_Conversion_Susceptibility = 60 }
				set_variable = { HimmlerSupport = 60 }
				set_variable = { CharlemagneSupport = 30 }
			}
			15 = {
				set_variable = { BRG_Conversion_Susceptibility = 56 }
				set_variable = { HimmlerSupport = 60 }
				set_variable = { CharlemagneSupport = 30 }
			}
			1625 = {
				set_variable = { BRG_Conversion_Susceptibility = 60 }
				set_variable = { HimmlerSupport = 60 }
				set_variable = { CharlemagneSupport = 30 }
			}
			set_variable = { BRG_National_Indoctrination = 50 }
		}
	}
}

BRG_Domestic_Education_category = {
	BRG_Purge_Charlemagne = {
		visible = {
			OR = {
				has_country_flag = BRG_education_debug_waiting_on_you_tex
				has_completed_focus = BRG_education_waiting_for_text
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_Has_1000_NI
				check_variable = { BRG_National_Indoctrination > 19.9 }
			}
		}
		days_re_enable = 14
		days_remove = 7
		complete_effect = {
			custom_effect_tooltip = BRG_Spend_1000_NI
			subtract_from_variable = { BRG_National_Indoctrination = 20 }
		}
		remove_effect = {
			every_owned_state = {
				limit = {
					check_variable = { THIS.LangemarckSupport > THIS.CharlemagneSupport }
					check_variable = { THIS.WalloonSupport > THIS.CharlemagneSupport }
				}
				if = {
					limit = {
						check_variable = { THIS.BRG_Conversion_Susceptibility > 0 }
						check_variable = { THIS.BRG_Conversion_Susceptibility > 49.9 }
					}
					set_temp_variable = { HimmlerSupport_Bonus = BRG_Conversion_Susceptibility }
					divide_temp_variable = { HimmlerSupport_Bonus = 5 }
					add_to_variable = { THIS.HimmlerSupport = HimmlerSupport_Bonus }
					custom_effect_tooltip = BRG_Suspectibility_Tooltip
				}
				if = {
					limit = {
						check_variable = { THIS.BRG_Conversion_Susceptibility > 0 }
						check_variable = { THIS.BRG_Conversion_Susceptibility < 49.9 }
					}
					set_temp_variable = { HimmlerSupport_Bonus = BRG_Conversion_Susceptibility }
					divide_temp_variable = { HimmlerSupport_Bonus = 5 }
					subtract_from_variable = { THIS.HimmlerSupport = HimmlerSupport_Bonus }
					custom_effect_tooltip = BRG_Bad_Suspectibility_Tooltip
				}
			}
			add_to_variable = { THIS.HimmlerSupport = 10 }
			custom_effect_tooltip = BRG_Kill_Charlemagne
		}
	}
	BRG_Purge_Walloon = {
		visible = {
			OR = {
				has_country_flag = BRG_education_debug_waiting_on_you_tex
				has_completed_focus = BRG_education_waiting_for_text
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_Has_1000_NI
				check_variable = { BRG_National_Indoctrination > 19.9 }
			}
		}
		days_re_enable = 14
		days_remove = 7
		complete_effect = {
			custom_effect_tooltip = BRG_Spend_1000_NI
			subtract_from_variable = { BRG_National_Indoctrination = 20 }
		}
		remove_effect = {
			every_owned_state = {
				limit = {
					check_variable = { THIS.CharlemagneSupport > THIS.WalloonSupport }
					check_variable = { THIS.LangemarckSupport > THIS.WalloonSupport }
				}
				add_to_variable = { THIS.HimmlerSupport = 10 }
			}
			custom_effect_tooltip = BRG_Kill_Walloon
		}
	}
	BRG_Purge_Langemarck = {
		visible = {
			OR = {
				has_country_flag = BRG_education_debug_waiting_on_you_tex
				has_completed_focus = BRG_education_waiting_for_text
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_Has_1000_NI
				check_variable = { BRG_National_Indoctrination > 19.9 }
			}
		}
		days_re_enable = 14
		days_remove = 7
		complete_effect = {
			custom_effect_tooltip = BRG_Spend_1000_NI
			subtract_from_variable = { BRG_National_Indoctrination = 20 }
			every_owned_state = {
				limit = {
					check_variable = { THIS.CharlemagneSupport > THIS.LangemarckSupport }
					check_variable = { THIS.WalloonSupport > THIS.LangemarckSupport }
				}
				add_to_variable = { THIS.HimmlerSupport = 10 }
			}
			custom_effect_tooltip = BRG_Kill_Langemarck
		}
	}
	BRG_Move_SS_Outpust = {
		visible = {
			OR = {
				has_country_flag = BRG_education_debug_waiting_on_you_tex
				has_completed_focus = BRG_education_waiting_for_text
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_Has_1000_NI
				check_variable = { BRG_National_Indoctrination > 19.9 }
			}
			custom_trigger_tooltip = {
				tooltip = BRG_Has_Enough_Soldiers
				any_owned_state = {
					check_variable = { HimmlerSupport > 49.9 }
					check_variable = { CharlemagneSupport > 9.9 }
				}
			}
		}
		complete_effect = {
			custom_effect_tooltip = BRG_Spend_1000_NI
			subtract_from_variable = { BRG_National_Indoctrination = 20 }
		}
		days_re_enable = 14
		days_remove = 7
		remove_effect = {
			random_owned_state = {
				limit = {
					check_variable = { CharlemagneSupport > 9.9 }
				}
				add_to_variable = { THIS.HimmlerSupport = 10 }
				custom_effect_tooltip = BRG_Will_Gain_HS
			}
			random_owned_state = {
				limit = {
					check_variable = { HimmlerSupport > 49.9 }
				}
				subtract_from_variable = { THIS.HimmlerSupport = 10 }
				custom_effect_tooltip = BRG_Will_Lose_HS
			}
		}
	}
	BRG_Convert_State = {
		icon = GFX_decision_generic_infiltrate_state

		allowed = { tag = BRG }

		targets = { 15 16 788 1625 1626 1635 }

		state_target = yes

		target_trigger = {
			FROM = {
				NOT = { check_variable = { nationality = 140 } }
				is_controlled_by = BRG
			}
		}

		visible = {
			OR = {
				has_completed_focus = BRG_burgundian_irredentism
				has_country_flag = BRG_education_debug_waiting_on_you_tex
			}
			FROM = {
				NOT = { check_variable = { nationality = 140 } }
				is_controlled_by = BRG
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_Has_50_NI
				check_variable = { BRG_National_Indoctrination > 49.99 }
			}
		}
		days_re_enable = 14
		days_remove = 7
		complete_effect = {
			custom_effect_tooltip = BRG_Spend_50_NI
			subtract_from_variable = { BRG_National_Indoctrination = 50 }
		}

		remove_effect = {
			custom_effect_tooltip = BRG_Will_Convert_State
			FROM = {
				set_temp_variable = { Check_Can_Change_Nationality = THIS.CharlemagneSupport }
				multiply_temp_variable = { Check_Can_Change_Nationality = 1.5 }
				if = {
					limit = {
						check_variable = { THIS.HimmlerSupport > Check_Can_Change_Nationality }
					}
					set_variable = { nationality = 140 } #Burgundian
					add_core_of = BRG
					add_to_variable = { BRG_Skilled_Worker_Pop_Monthly_Change = 500 }
				}
				custom_effect_tooltip = BRG_Will_Gain_HS
				add_to_variable = { THIS.HimmlerSupport = 10 }
				subtract_from_variable = { THIS.CharlemagneSupport = 5 }
				if = {
					limit = { check_variable = { THIS.BRG_Conversion_Susceptibility > 49.9 } }
					set_temp_variable = { HimmlerSupport_Bonus = BRG_Conversion_Susceptibility }
					divide_temp_variable = { HimmlerSupport_Bonus = 5 }
					add_to_variable = { THIS.HimmlerSupport = HimmlerSupport_Bonus }
					custom_effect_tooltip = BRG_Suspectibility_Tooltip
				}
				else = {
					set_temp_variable = { HimmlerSupport_Bonus = BRG_Conversion_Susceptibility }
					divide_temp_variable = { HimmlerSupport_Bonus = 5 }
					subtract_from_variable = { THIS.HimmlerSupport = HimmlerSupport_Bonus }
					custom_effect_tooltip = BRG_Bad_Suspectibility_Tooltip
				}
				add_to_variable = { THIS.HimmlerSupport = 10 }
			}
		}
	}

	BRG_Forced_Conversion = {
		visible = {
			OR = {
				AND = {
					has_completed_focus = BRG_french_are_not_german
					NOT = { has_completed_focus = BRG_a_second_attempt }
				}
				AND = {
					has_completed_focus = BRG_destroy_it_all
					has_completed_focus = BRG_a_second_attempt
				}
				has_country_flag = BRG_education_debug_waiting_on_you_tex
			}
			any_owned_state = {
				NOT = { check_variable = { nationality = 140 } }
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_Has_50_NI
				check_variable = { BRG_National_Indoctrination > 49.9 }
			}
			custom_trigger_tooltip = {
				tooltip = BRG_Can_Convert_State
				any_owned_state = {
					NOT = { check_variable = { nationality = 140 } } #Not Burgundian
					check_variable = { THIS.HimmlerSupport > THIS.CharlemagneSupport }
				}
			}
		}
		days_re_enable = 15
		days_remove = 15
		complete_effect = {
			custom_effect_tooltip = BRG_Spend_50_NI
			subtract_from_variable = { BRG_National_Indoctrination = 50 }
		}
		remove_effect = {
			random_owned_state = {
				limit = {
					NOT = { check_variable = { nationality = 140 } } #Not Burgundian
				}
				custom_effect_tooltip = BRG_Will_Convert_State_2
				set_variable = { nationality = 140 }
				add_core_of = BRG
				add_to_variable = { BRG_Skilled_Worker_Pop_Monthly_Change = 500 }
			}
			every_owned_state = {
				limit = { NOT = { check_variable = { nationality = 140 } } } #Not Burgundian
				custom_effect_tooltip = BRG_Himmler_Loses_Support
				subtract_from_variable = { This.HimmlerSupport = 10 }
				add_to_variable = { This.WalloonSupport = 5 }
			}
		}
	}

	BRG_Mass_Arrests = {
		visible = {
			OR = {
				has_completed_focus = BRG_education_waiting_for_text
				has_country_flag = BRG_education_debug_waiting_on_you_tex
				NOT = { has_country_flag = BRG_EDUCATION_FAILURE }
			}
		}
		available = {

		}
		days_re_enable = 14
		days_remove = 7
		remove_effect = {
			every_owned_state = {
				limit = { NOT = { check_variable = { nationality = 140 } } } #Not Burgundian
				custom_effect_tooltip = BRG_Himmler_Loses_Support
				subtract_from_variable = { This.HimmlerSupport = 5 }
				add_to_variable = { This.WalloonSupport = 5 }
			}
			random_owned_state = {
				limit = { NOT = { check_variable = { nationality = 140 } } } #Not Burgundian
				custom_effect_tooltip = BRG_higher_susceptibility
				add_to_variable = { THIS.BRG_Conversion_Susceptibility = 5 }
			}
		}
		complete_effect = {
			custom_effect_tooltip = BRG_NI_Boost_10
			add_to_variable = { BRG_National_Indoctrination = 10 }
			add_stability = -0.05
			custom_effect_tooltip = BRG_MassArrestsTT
		}
	}
	BRG_EDUCATION_TIMER = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = BRG
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_SUCCESS_TIMER
				NOT = {
					any_owned_state = {
						check_variable = { nationality = 123 }
					}
				}
			}
		}

		activation = {
			has_country_flag = BRG_Education_Crisis_Begun
		}
		is_good = no
		days_mission_timeout = 600
		fire_only_once = yes
		timeout_effect = {
			country_event = { id = BRG_education.9 }
		}
		complete_effect = {
			remove_dynamic_modifier = {
				modifier = BRG_education_tree_dynamic_modifier
			}
			clr_country_flag = BRG_education_debug_waiting_on_you_tex
			clr_country_flag = BRG_Education_Crisis_Begun
			custom_effect_tooltip = BRG_Timer_Success
			mark_focus_tree_layout_dirty = yes
		}
	}

	BRG_WORSEN_TIMER = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = BRG
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_SUCCESS_TIMER
				NOT = {
					any_owned_state = {
						check_variable = { nationality = 123 }
					}
				}
			}
		}



		activation = {
			NOT = { is_ai = yes }
			has_country_flag = BRG_Education_Crisis_Begun
		}
		fire_only_once = yes
		is_good = no
		days_mission_timeout = 7
		days_re_enable = 30
		timeout_effect = {
			random_list = {
				25 = {
					random_owned_state = {
						limit = { check_variable = { nationality = 123 } } #french
						subtract_from_variable = { THIS.HimmlerSupport = 5 }
						add_to_variable = { THIS.CharlemagneSupport = 5 }
						custom_effect_tooltip = BRG_HIMMLER_SUPPORT_1
					}
				}
				25 = {
					random_owned_state = {
						limit = { check_variable = { nationality = 123 } } #french
						subtract_from_variable = { THIS.HimmlerSupport = 10 }
						add_to_variable = { THIS.WalloonSupport = 15 }
						custom_effect_tooltip = BRG_HIMMLER_SUPPORT_2
					}
				}
				25 = {
					random_owned_state = {
						limit = { check_variable = { nationality = 123 } } #french
						subtract_from_variable = { THIS.HimmlerSupport = 15 }
						add_to_variable = { THIS.CharlemagneSupport = 10 }
						custom_effect_tooltip = BRG_HIMMLER_SUPPORT_3
					}
				}
				25 = {
					random_owned_state = {
						limit = { check_variable = { nationality = 123 } } #french
						subtract_from_variable = { THIS.HimmlerSupport = 10 }
						add_to_variable = { THIS.WalloonSupport = 10 }
						custom_effect_tooltip = BRG_HIMMLER_SUPPORT_4
					}
				}
			}
		}
	}
	###HELP DECISIONS###
	BRG_destroying_schools = {
		visible = {
			OR = {
				AND = {
					NOT = { has_completed_focus = BRG_a_second_attempt }
					NOT = { check_variable = { BRG_Number_of_Edu_Decisions > 4 } }
					has_completed_focus = BRG_education_waiting_for_text
				}
				has_country_flag = BRG_education_debug_waiting_on_you_tex
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_DestroyingSchoolsTrigger
				any_owned_state = {
					AND = {
						schools > 0
					}
				}
			}
		}
		days_re_enable = 14
		days_remove = 7
		complete_effect = {
			custom_effect_tooltip = BRG_NI_Boost_35
			add_to_variable = { BRG_National_Indoctrination = 35 }
		}
		remove_effect = {
			custom_effect_tooltip = BRG_DestroyingSchoolsTT
			TNO_worsen_academic_base_low = yes
			TNO_worsen_education_policy_effectiveness_low = yes
			random_owned_state = {
				limit = { AND = { check_variable = { nationality = 123 } schools > 1 } }
				custom_effect_tooltip = BRG_higherer_susceptibility
				add_to_variable = { BRG_Conversion_Susceptibility = 10 }
				hidden_effect = {
					remove_building = {
						type = schools
						level = 1
					}
				}
			}
		}
	}
	BRG_recover_from_edu_crisis = {
		visible = {
			OR = {
				AND = {
					NOT = { has_completed_focus = BRG_a_second_attempt }
					NOT = { check_variable = { BRG_Number_of_Edu_Decisions > 4 } }
					has_completed_focus = BRG_education_waiting_for_text
				}
				has_country_flag = BRG_education_debug_waiting_on_you_tex
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_Has_1000_NI
				check_variable = { BRG_National_Indoctrination > 19.99 }
			}
		}
		days_re_enable = 1
		days_remove = 7
		complete_effect = {
			custom_effect_tooltip = BRG_Spend_1000_NI
			subtract_from_variable = { BRG_National_Indoctrination = 20 }
			add_to_variable = { BRG_Number_of_Edu_Decisions = 1 }
		}
		remove_effect = {
			add_stability = 0.05
			TNO_improve_poverty_low = yes
		}
	}

	BRG_appease_the_ss = {
		visible = {
			NOT = { has_completed_focus = BRG_a_second_attempt }
			NOT = { check_variable = { BRG_Number_of_Edu_Decisions > 4 } }
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_Has_50_NI
				check_variable = { BRG_National_Indoctrination > 49.99 }
			}
		}
		days_re_enable = 1
		days_remove = 7
		complete_effect = {
			custom_effect_tooltip = BRG_Spend_50_NI
			subtract_from_variable = { BRG_National_Indoctrination = 50 }
			add_to_variable = { BRG_Number_of_Edu_Decisions = 1 }
		}
		remove_effect = {
			custom_effect_tooltip = BRG_ST_GAIN_BOOST
			add_to_variable = { BRG_education_tree_stab_factor_variable = 0.05 }
			every_owned_state = {
				add_to_variable = { HimmlerSupport = 10 }
				custom_effect_tooltip = BRG_Will_Convert_State
			}
		}
	}

	#FAILURE ONES
	BRG_destroying_schools_2 = {
		visible = {
			OR = {
				AND = {
					has_completed_focus = BRG_a_second_attempt
					NOT = { check_variable = { BRG_Number_of_Edu_Decisions_2 > 4 } }
					has_completed_focus = BRG_education_waiting_for_text
				}
				has_country_flag = BRG_education_debug_waiting_on_you_tex
			}
		}
		available = {

		}
		days_re_enable = 14
		days_remove = 7
		complete_effect = {
			custom_effect_tooltip = BRG_Gain_50_NI
			add_to_variable = { BRG_National_Indoctrination = 50 }
			custom_effect_tooltip = BRG_PP_GAIN_BOOST
			add_to_variable = { BRG_education_tree_pp_factor_variable = 0.05 }
		}
		remove_effect = {
			TNO_worsen_academic_base_med = yes
			random_owned_state = {
				limit = { check_variable = { nationality = 123 } }
				custom_effect_tooltip = BRG_higherer_susceptibility
				add_to_variable = { BRG_Conversion_Susceptibility = 10 }
			}
		}
	}
	BRG_recover_from_edu_crisis_2 = {
		visible = {
			OR = {
				AND = {
					has_completed_focus = BRG_a_second_attempt
					NOT = { check_variable = { BRG_Number_of_Edu_Decisions_2 > 4 } }
					has_completed_focus = BRG_education_waiting_for_text
				}
				has_country_flag = BRG_education_debug_waiting_on_you_tex
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_Has_1000_NI
				check_variable = { BRG_National_Indoctrination > 19.99 }
			}
		}
		days_re_enable = 1
		days_remove = 7
		complete_effect = {
			custom_effect_tooltip = BRG_Spend_1000_NI
			subtract_from_variable = { BRG_National_Indoctrination = 20 }
			add_to_variable = { BRG_Number_of_Edu_Decisions = 1 }
		}
		remove_effect = {
			add_stability = 0.05
			TNO_improve_academic_base_low = yes

		}
	}
}

BRG_gcw_aid_heydrich_category = {
	BRG_GCW_increase_volunteers_1 = {
		visible = {
			AND = {
				has_completed_focus = BRG_the_call_to_arms
				HGR = {
					exists = yes
				}
				has_country_flag = BRG_GCW_advisor_level_1_flag
			}
		}
		fire_only_once = yes
		days_remove = 30
		remove_effect = {
			set_country_flag = BRG_GCW_advisor_level_2_flag
		}
		cost = 100
		ai_will_do = {
			factor = 100
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_GCW_increase_volunteers_1"
			if = {
				limit = {
					BRG = {
						is_ai = no
					}
				}
				BRG = {
					set_temp_variable = { target = HGR }
					TNO_increase_volunteer_cap_1 = yes
				}
				hidden_effect = {
					HGR = {
						country_event = {
							id = BRG_gcw.1
							days = 1
						}
					}
				}
			}
		}
	}
	BRG_GCW_increase_volunteers_2 = {
		visible = {
			AND = {
				has_completed_focus = BRG_the_call_to_arms
				HGR = {
					exists = yes
				}
				has_country_flag = BRG_GCW_advisor_level_2_flag
			}
		}
		fire_only_once = yes
		days_remove = 30
		remove_effect = {
			clr_country_flag = BRG_GCW_advisor_level_2_flag
			set_country_flag = BRG_GCW_advisor_level_3_flag
		}
		cost = 100
		ai_will_do = {
			factor = 100
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_GCW_increase_volunteers_2"
			if = {
				limit = {
					BRG = {
						is_ai = no
					}
				}
				BRG = {
					set_temp_variable = { target = HGR }
					TNO_increase_volunteer_cap_1 = yes
				}
				hidden_effect = {
					HGR = {
						country_event = {
							id = BRG_gcw.2
							days = 1
						}
					}
				}
			}
		}
	}
	BRG_GCW_guns_for_heydrich_decision = {
		visible = {
			AND = {
				has_completed_focus = BRG_the_call_to_arms
				HGR = {
					exists = yes
				}
			}
		}
		available = {
			AND = {
				BRG = {
					has_equipment = {
						infantry_equipment > 1999
					}
				}
			}
		}
		fire_only_once = no
		days_remove = 30
		cost = 50
		ai_will_do = {
			factor = 20
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_GCW_guns_for_heydrich_decision"
			BRG = {
				send_equipment = {
					equipment = infantry_equipment
					amount = 2000
					target = HGR
				}
			}
		}
	}
	BRG_GCW_anti_tank_for_heydrich_decision = {
		visible = {
			AND = {
				has_completed_focus = BRG_the_call_to_arms
				HGR = {
					exists = yes
				}
			}
		}
		available = {
			AND = {
				BRG = {
					has_equipment = {
						anti_tank_equipment > 999
					}
				}
			}
		}
		fire_only_once = no
		days_remove = 30
		cost = 50
		ai_will_do = {
			factor = 20
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_GCW_anti_tank_for_heydrich_decision"
			BRG = {
				send_equipment = {
					equipment = anti_tank_equipment
					amount = 1000
					target = HGR
				}
			}
		}
	}
	BRG_GCW_support_equipment_for_heydrich_decision = {
		visible = {
			AND = {
				has_completed_focus = BRG_the_call_to_arms
				HGR = {
					exists = yes
				}
			}
		}
		available = {
			AND = {
				BRG = {
					has_equipment = {
						support_equipment > 999
					}
				}
			}
		}
		fire_only_once = no
		days_remove = 30
		cost = 50
		ai_will_do = {
			factor = 20
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_GCW_support_equipment_for_heydrich_decision"
			BRG = {
				send_equipment = {
					equipment = support_equipment
					amount = 1000
					target = HGR
				}
			}
		}
	}
	BRG_GCW_panzers_for_heydrich_decision = {
		visible = {
			AND = {
				has_completed_focus = BRG_the_call_to_arms
				HGR = {
					exists = yes
				}
			}
		}
		available = {
			has_equipment = { MBT_chassis > 199 }
		}
		fire_only_once = no
		days_remove = 30
		cost = 75
		ai_will_do = {
			factor = 20
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_GCW_support_equipment_for_heydrich_decision"
			BRG = {
				send_equipment = {
					type = MBT_chassis
					amount = 200
					target = HGR
				}
			}
		}
	}
	BRG_GCW_fuel_for_heydrich_decision = {
		visible = {
			AND = {
				has_completed_focus = BRG_the_call_to_arms
				HGR = {
					exists = yes
				}
			}
		}
		available = {
			BRG = {
				has_fuel > 9999
			}
		}
		fire_only_once = no
		days_remove = 30
		custom_cost_trigger = { has_fuel > 9999 }
		custom_cost_text = decision_cost_10000_fuel
		ai_will_do = {
			factor = 25
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_GCW_fuel_for_heydrich_decision"
			HGR = {
				add_fuel = 10000
			}
			BRG = {
				add_fuel = -10000
			}
		}
	}
	BRG_target_speerite_officers_decision = {
		available = {
			has_completed_focus = BRG_death_from_a_mile_away
		}

		visible = {
			has_completed_focus = BRG_death_from_a_mile_away
			HGR = { exists = yes }
			SGR = { exists = yes }
			is_ai = no
		}

		fire_only_once = no
		days_remove = 30
		cost = 100
		ai_will_do = {
			factor = 20
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_target_speerite_officers_decision"
			custom_effect_tooltip = BRG_target_speerite_officers_tooltip
			hidden_effect = {
				SGR = {
					country_event = {
						id = BRG_gcw.4
						days = 1
					}
				}
			}
		}
	}
	BRG_target_bormannite_officers_decision = {
		available = {
			has_completed_focus = BRG_death_from_a_mile_away
		}

		visible = {
			has_completed_focus = BRG_death_from_a_mile_away
			HGR = { exists = yes }
			BGR = { exists = yes }
			is_ai = no
		}

		fire_only_once = no
		days_remove = 30
		cost = 100
		ai_will_do = {
			factor = 20
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_target_bormannite_officers_decision"
			custom_effect_tooltip = BRG_target_bormannite_officers_tooltip
			hidden_effect = {
				BGR = {
					country_event = {
						id = BRG_gcw.4
						days = 1
					}
				}
			}
		}
	}
	BRG_target_goringite_officers_decision = {
		available = {
			has_completed_focus = BRG_death_from_a_mile_away
		}

		visible = {
			has_completed_focus = BRG_death_from_a_mile_away
			HGR = { exists = yes }
			GGR = { exists = yes }
			is_ai = no
		}

		fire_only_once = no
		days_remove = 30
		cost = 100
		ai_will_do = {
			factor = 20
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_target_goringite_officers_decision"
			custom_effect_tooltip = BRG_target_goringite_officers_tooltip
			hidden_effect = {
				GGR = {
					country_event = {
						id = BRG_gcw.4
						days = 1
					}
				}
			}
		}
	}
	BRG_operation_mark_antony_decision = {
		available = {
			has_completed_focus = BRG_death_from_a_mile_away
		}

		visible = {
			has_completed_focus = BRG_death_from_a_mile_away
			HGR = { exists = yes }
			GGR = { exists = yes }
		}

		fire_only_once = no
		days_remove = 30
		cost = 100
		ai_will_do = {
			factor = 20
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_target_goringite_officers_decision"
			custom_effect_tooltip = BRG_operation_mark_antony_decision_tooltip
			hidden_effect = {
				GGR = {
					country_event = {
						id = BRG_gcw.8
						days = 1
					}
				}
			}
		}
	}
	BRG_GCW_target_speerite_military_industry_decision = {
		available = {
			has_completed_focus = BRG_terrorkampagne
		}
		visible = {
			has_completed_focus = BRG_terrorkampagne
			HGR = { exists = yes }
			SGR = { exists = yes }
		}
		fire_only_once = no
		days_remove = 30
		cost = 75
		ai_will_do = {
			factor = 20
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_GCW_target_speerite_military_industry_decision"
			custom_effect_tooltip = BRG_GCW_target_speerite_military_industry_decision_tooltip
			hidden_effect = {
				SGR = {
					country_event = {
						id = BRG_gcw.6
						days = 1
					}
				}
			}
		}
	}
	BRG_GCW_target_speerite_civ_industry_decision = {
		available = {
			has_completed_focus = BRG_terrorkampagne
		}
		visible = {
			has_completed_focus = BRG_terrorkampagne
			HGR = { exists = yes }
			SGR = { exists = yes }
		}
		fire_only_once = no
		days_remove = 30
		cost = 75
		ai_will_do = {
			factor = 20
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_GCW_target_speerite_civ_industry_decision"
			custom_effect_tooltip = BRG_GCW_target_speerite_civ_industry_decision_tooltip
			hidden_effect = {
				SGR = {
					country_event = {
						id = BRG_gcw.5
						days = 1
					}
				}
			}
		}
	}
	BRG_GCW_target_speerite_infrastructure_decision = {
		available = {
			has_completed_focus = BRG_terrorkampagne
		}
		visible = {
			has_completed_focus = BRG_terrorkampagne
			HGR = { exists = yes }
			SGR = { exists = yes }
		}
		fire_only_once = no
		days_remove = 30
		cost = 75
		ai_will_do = {
			factor = 20
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_GCW_target_speerite_infrastructure_decision"
			custom_effect_tooltip = BRG_GCW_target_speerite_infrastructure_decision_tooltip
			hidden_effect = {
				SGR = {
					country_event = {
						id = BRG_gcw.7
						days = 1
					}
				}
			}
		}
	}
	BRG_GCW_target_bormannite_military_industry_decision = {
		available = {
			has_completed_focus = BRG_terrorkampagne
		}
		visible = {
			has_completed_focus = BRG_terrorkampagne
			HGR = { exists = yes }
			BGR = { exists = yes }
		}
		fire_only_once = no
		days_remove = 30
		cost = 75
		ai_will_do = {
			factor = 20
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_GCW_target_bormannite_military_industry_decision"
			custom_effect_tooltip = BRG_GCW_target_bormannite_military_industry_decision_tooltip
			hidden_effect = {
				BGR = {
					country_event = {
						id = BRG_gcw.6
						days = 1
					}
				}
			}
		}
	}
	BRG_GCW_target_bormannite_civ_industry_decision = {
		available = {
			has_completed_focus = BRG_terrorkampagne
		}
		visible = {
			has_completed_focus = BRG_terrorkampagne
			HGR = { exists = yes }
			BGR = { exists = yes }
		}
		fire_only_once = no
		days_remove = 30
		cost = 75
		ai_will_do = {
			factor = 20
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_GCW_target_bormannite_civ_industry_decision"
			custom_effect_tooltip = BRG_GCW_target_bormannite_civ_industry_decision_tooltip
			hidden_effect = {
				BGR = {
					country_event = {
						id = BRG_gcw.5
						days = 1
					}
				}
			}
		}
	}
	BRG_GCW_target_bormannite_infrastructure_decision = {
		available = {
			has_completed_focus = BRG_terrorkampagne
		}
		visible = {
			has_completed_focus = BRG_terrorkampagne
			HGR = { exists = yes }
			BGR = { exists = yes }
		}
		fire_only_once = no
		days_remove = 30
		cost = 75
		ai_will_do = {
			factor = 20
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_GCW_target_bormannite_infrastructure_decision"
			custom_effect_tooltip = BRG_GCW_target_bormannite_infrastructure_decision_tooltip
			hidden_effect = {
				BGR = {
					country_event = {
						id = BRG_gcw.7
						days = 1
					}
				}
			}
		}
	}
	BRG_GCW_target_goringite_military_industry_decision = {
		available = {
			has_completed_focus = BRG_terrorkampagne
		}
		visible = {
			has_completed_focus = BRG_terrorkampagne
			HGR = { exists = yes }
			GGR = { exists = yes }
		}
		fire_only_once = no
		days_remove = 30
		cost = 75
		ai_will_do = {
			factor = 20
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_GCW_target_goringite_military_industry_decision"
			custom_effect_tooltip = BRG_GCW_target_goringite_military_industry_decision_tooltip
			hidden_effect = {
				GGR = {
					country_event = {
						id = BRG_gcw.6
						days = 1
					}
				}
			}
		}
	}
	BRG_GCW_target_goringite_civ_industry_decision = {
		available = {
			has_completed_focus = BRG_terrorkampagne
		}
		visible = {
			has_completed_focus = BRG_terrorkampagne
			HGR = { exists = yes }
			GGR = { exists = yes }
		}
		fire_only_once = no
		days_remove = 30
		cost = 75
		ai_will_do = {
			factor = 20
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_GCW_target_goringite_civ_industry_decision"
			custom_effect_tooltip = BRG_GCW_target_goringite_civ_industry_decision_tooltip
			hidden_effect = {
				GGR = {
					country_event = {
						id = BRG_gcw.5
						days = 1
					}
				}
			}
		}
	}
	BRG_GCW_target_goringite_infrastructure_decision = {
		available = {
			has_completed_focus = BRG_terrorkampagne
		}
		visible = {
			has_completed_focus = BRG_terrorkampagne
			HGR = { exists = yes }
			GGR = { exists = yes }
		}
		fire_only_once = no
		days_remove = 30
		cost = 75
		ai_will_do = {
			factor = 20
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision BRG_GCW_target_goringite_infrastructure_decision"
			custom_effect_tooltip = BRG_GCW_target_goringite_infrastructure_decision_tooltip
			hidden_effect = {
				GGR = {
					country_event = {
						id = BRG_gcw.7
						days = 1
					}
				}
			}
		}
	}
}

BRG_domestic_industry_category = {
	##Infrastructure
	BRG_failed_to_feed_the_beast = { #You fucked up Rodomo, time for penalties
		allowed = { tag = BRG }
		available = { always = no }
		activation = { always = no }
		is_good = no					#Get reckt scrub
		days_mission_timeout = 7		#How many days before the mission fails?
		timeout_effect = {				#Say bye bye to your industry
			custom_effect_tooltip = BRG_rodomo_deficit_explanation
			random_list = {
				33 = {
					custom_effect_tooltip = BRG_decrease_rodomo_construction_speed
					hidden_effect = { subtract_from_variable = { BRG_Rodomo_Workers = 0.1 } }
				}
				34 = {
					custom_effect_tooltip = BRG_decrease_rodomo_effeciency
					hidden_effect = { subtract_from_variable = { BRG_Rodomo_Effeciency = 0.1 } }
				}
				33 = {
					custom_effect_tooltip = BRG_decrease_rodomo_output
					hidden_effect = { subtract_from_variable = { BRG_Rodomo_Output = 0.1 } }
				}
			}
			random_list = {
				50 = { TNO_worsen_industrial_equipment_med = yes TNO_worsen_press_rights_policy_effectiveness_med = yes TNO_worsen_trade_unions_policy_effectiveness_med = yes }
				50 = { TNO_worsen_industrial_expertise_med = yes TNO_worsen_security_policy_effectiveness_med = yes TNO_worsen_slavery_policy_effectiveness_med = yes }
			}
			clr_country_flag = BRG_rodomo_deficit_flag
		}
	}
	BRG_increase_rodomo_effeciency = {

		icon = GFX_decision_generic_construction

		allowed = { original_tag = BRG }

		visible = {
			has_completed_focus = BRG_industrialbezirk_rodomo
			controls_state = 15
		}
		cost = 25
		days_re_enable = 135

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_increase_efficiency_eventually
			custom_effect_tooltip = BRG_gradual_murder
			set_variable = { BRG_increase_rodomo_effeciency_worker_decrease = BRG_Rodomo_Cost }
			divide_variable = { BRG_increase_rodomo_effeciency_worker_decrease = 4 }
			round_variable = BRG_increase_rodomo_effeciency_worker_decrease
			subtract_from_variable = { 15.BRG_Skilled_Worker_Pop_Monthly_Change = BRG_increase_rodomo_effeciency_worker_decrease }
			activate_mission = BRG_increase_rodomo_effeciency_mission
		}
	}
	BRG_increase_rodomo_effeciency_mission = { #You monster
		allowed = { tag = BRG }
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_maintain_rodomo_tt
				has_country_flag = BRG_rodomo_deficit_flag
			}
		}
		activation = { always = no }
		is_good = yes #Rewards yay
		days_mission_timeout = 120
		timeout_effect = { #Rewards
			custom_effect_tooltip = BRG_increase_rodomo_effeciency_tt
			BRG_increase_rodomo_cost = yes
			hidden_effect = {
				multiply_variable = { BRG_increase_rodomo_effeciency_worker_decrease = 4 }
				add_to_variable = { BRG_Rodomo_Effeciency = 0.05 }
				add_to_variable = { BRG_Rodomo_Cost = 150 }
				15 = { add_to_variable = { BRG_Skilled_Worker_Pop_Monthly_Change = BRG_increase_rodomo_effeciency_worker_decrease } }
				set_variable = { BRG_increase_rodomo_effeciency_worker_decrease = 0 }
			}
		}
	}
	BRG_increase_rodomo_output = {

		icon = GFX_decision_generic_construction

		allowed = { original_tag = BRG }


		visible = {
			has_completed_focus = BRG_factories_of_their_destruction
			controls_state = 15
		}
		cost = 25
		days_re_enable = 135

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_increase_output_eventually
			custom_effect_tooltip = BRG_gradual_murder
			set_variable = { BRG_increase_rodomo_output_worker_decrease = BRG_Rodomo_Cost }
			divide_variable = { BRG_increase_rodomo_output_worker_decrease = 4 }
			round_variable = BRG_increase_rodomo_output_worker_decrease
			subtract_from_variable = { 15.BRG_Skilled_Worker_Pop_Monthly_Change = BRG_increase_rodomo_output_worker_decrease }
			activate_mission = BRG_increase_rodomo_output_mission
		}
	}


	BRG_increase_rodomo_output_mission = { #You monster
		allowed = { tag = BRG }
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_maintain_rodomo_tt
				has_country_flag = BRG_rodomo_deficit_flag
			}
		}
		activation = { always = no }
		is_good = yes #Rewards yay
		days_mission_timeout = 120
		timeout_effect = { #Rewards
			custom_effect_tooltip = BRG_increase_rodomo_output_tt
			BRG_increase_rodomo_cost = yes
			hidden_effect = {
				multiply_variable = { BRG_increase_rodomo_output_worker_decrease = 4 }
				add_to_variable = { BRG_Rodomo_Output = 0.05 }
				add_to_variable = { BRG_Rodomo_Cost = 150 }
				15 = { add_to_variable = { BRG_Skilled_Worker_Pop_Monthly_Change = BRG_increase_rodomo_output_worker_decrease } }
				set_variable = { BRG_increase_rodomo_output_worker_decrease = 0 }
			}
		}
	}
	BRG_increase_rodomo_construction = {

		icon = GFX_decision_generic_construction

		allowed = { original_tag = BRG }


		visible = {
			has_completed_focus = BRG_factories_of_their_destruction
			controls_state = 15
		}
		cost = 25
		days_re_enable = 135

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_increase_construction_eventually
			custom_effect_tooltip = BRG_gradual_murder
			set_variable = { BRG_increase_rodomo_construction_worker_decrease = BRG_Rodomo_Cost }
			divide_variable = { BRG_increase_rodomo_construction_worker_decrease = 4 }
			round_variable = BRG_increase_rodomo_construction_worker_decrease
			subtract_from_variable = { 15.BRG_Skilled_Worker_Pop_Monthly_Change = BRG_increase_rodomo_construction_worker_decrease }
			activate_mission = BRG_increase_rodomo_construction_mission
		}
	}
	BRG_increase_rodomo_construction_mission = { #You monster
		allowed = { tag = BRG }
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_maintain_rodomo_tt
				has_country_flag = BRG_rodomo_deficit_flag
			}
		}
		activation = { always = no }
		is_good = yes #Rewards yay
		days_mission_timeout = 120
		timeout_effect = { #Rewards
			custom_effect_tooltip = BRG_increase_rodomo_construction_tt
			BRG_increase_rodomo_cost = yes
			hidden_effect = {
				multiply_variable = { BRG_increase_rodomo_construction_worker_decrease = 4 }
				add_to_variable = { BRG_Rodomo_Workers = 0.05 }
				add_to_variable = { BRG_Rodomo_Cost = 150 }
				15 = { add_to_variable = { BRG_Skilled_Worker_Pop_Monthly_Change = BRG_increase_rodomo_construction_worker_decrease } }
				set_variable = { BRG_increase_rodomo_construction_worker_decrease = 0 }
			}
		}
	}
	BRG_increase_rodomo_capacity = {

		icon = GFX_decision_generic_construction

		allowed = { original_tag = BRG }

		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_rodomo_space_left
				check_variable = { BRG_Normandy_Cap < 100001 }
			}
		}
		visible = {
			has_completed_focus = BRG_forced_relocation
			controls_state = 15
		}
		cost = 25
		days_re_enable = 135

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_increase_capacity_eventually
			custom_effect_tooltip = BRG_gradual_murder
			set_variable = { BRG_increase_rodomo_capacity_worker_decrease = BRG_Rodomo_Cost }
			divide_variable = { BRG_increase_rodomo_capacity_worker_decrease = 4 }
			round_variable = BRG_increase_rodomo_capacity_worker_decrease
			subtract_from_variable = { 15.BRG_Skilled_Worker_Pop_Monthly_Change = BRG_increase_rodomo_capacity_worker_decrease }
			activate_mission = BRG_increase_rodomo_capacity_mission
		}
	}
	BRG_increase_rodomo_capacity_mission = { #You monster
		allowed = { tag = BRG }
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_maintain_rodomo_tt
				has_country_flag = BRG_rodomo_deficit_flag
			}
		}
		activation = { always = no }
		is_good = yes #Rewards yay
		days_mission_timeout = 120
		timeout_effect = { #Rewards
			custom_effect_tooltip = BRG_increase_rodomo_capacity_tt
			BRG_increase_rodomo_cost = yes
			hidden_effect = {
				multiply_variable = { BRG_increase_rodomo_capacity_worker_decrease = 4 }
				add_to_variable = { BRG_Normandy_Cap = 20000 }
				add_to_variable = { BRG_Rodomo_Cost = 150 }
				15 = { add_to_variable = { BRG_Skilled_Worker_Pop_Monthly_Change = BRG_increase_rodomo_capacity_worker_decrease } }
				set_variable = { BRG_increase_rodomo_capacity_worker_decrease = 0 }
			}
		}
	}
	BRG_precious_minerals = {

		icon = GFX_decision_category_generic_money

		allowed = { original_tag = BRG }
		targets = { 17 1635 }
		state_target = yes
		target_trigger = {
			FROM = { is_controlled_by = BRG }
		}

		visible = {
			has_completed_focus = BRG_expand_mines
			FROM = { is_controlled_by = BRG }
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_workers_cost_1000
				check_variable = { FROM.BRG_Skilled_Worker_Pop > 9999 }
			}
		}
		cost = 50
		days_remove = 60
		fire_only_once = yes

		on_map_mode = map_only

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			subtract_from_variable = { FROM.BRG_Skilled_Worker_Pop = 10000 }
			custom_effect_tooltip = BRG_Lose_10000_Workers
		}
		remove_effect = {
			custom_effect_tooltip = BRG_black_market_minerals
			1635 = { BRG_Increase_himmler_support_small = yes }
			17 = { BRG_Increase_himmler_support_small = yes }
			add_ideas = BRG_Blood_Diamonds
			TNO_improve_trade_laws_policy_effectiveness_low = yes
		}
	}
	BRG_shipyard_construction = {

		icon = GFX_decision_generic_shipyard

		allowed = { original_tag = BRG }
		state_target = yes
		target_array = BRG.BurgundyDomesticGUIStates
		target_trigger = {
			FROM = {
				is_controlled_by = BRG
				is_coastal = yes
				free_building_slots = {
					building = dockyard
					size > 0
					include_locked = no
				}
			}
		}

		visible = {
			# has_completed_focus = BRG_burgundian_shipyards
			FROM = { is_controlled_by = BRG }
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_workers_cost_1250
				check_variable = { FROM.BRG_Skilled_Worker_Pop > 12499 }
			}
		}
		cost = 80
		days_remove = 60

		on_map_mode = map_only

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			subtract_from_variable = { FROM.BRG_Skilled_Worker_Pop = 12500 }
		}
		remove_effect = {
			FROM = {
				BRG_Increase_himmler_support_small = yes
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
	}
}
BRG_domestic_famine_category = {
	BRG_steal_food_decision = {

		icon = GFX_decision_generic_construction

		allowed = { original_tag = BRG }
		visible = {
			has_completed_focus = BRG_emergency_stockpile_measures
		}
		cost = 30
		days_re_enable = 180

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_steal_food
			custom_effect_tooltip = BRG_reduce_growth
			add_to_variable = { BRG_National_Food_Reserve = 20000 }
			subtract_from_variable = { BRG_famine_growth_penalty = 0.01 }
			add_stability = -0.02
		}
	}
	BRG_trade_equipment_for_agriculture = {

		icon = GFX_decision_generic_construction

		allowed = { original_tag = BRG }
		visible = {
			has_completed_focus = BRG_industrial_aids
		}
		cost = 75
		days_re_enable = 100

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_increase_agriculture_modifier
			custom_effect_tooltip = BRG_decrease_equipment_modifier
			hidden_effect = {
				add_to_variable = { BRG_famine_agriculture_gain = 1 }
				subtract_from_variable = { BRG_famine_equipment_penalty = 1 }
			}
		}
	}
	BRG_trade_construction_for_agriculture = {

		icon = GFX_decision_generic_construction

		allowed = { original_tag = BRG }
		visible = {
			has_completed_focus = BRG_industrial_aids
		}
		cost = 75
		days_re_enable = 100

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_increase_agriculture_modifier
			custom_effect_tooltip = BRG_decrease_rodomo_output
			hidden_effect = {
				add_to_variable = { BRG_famine_agriculture_gain = 1 }
				subtract_from_variable = { BRG_Rodomo_Output = 0.1 }
			}
		}
	}
	BRG_trade_expertise_for_agriculture = {

		icon = GFX_decision_generic_construction

		allowed = { original_tag = BRG }
		visible = {
			has_completed_focus = BRG_specialized_assistance
		}
		cost = 75
		days_re_enable = 100

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_increase_agriculture_modifier
			custom_effect_tooltip = BRG_decrease_experitse_modifier
			hidden_effect = {
				add_to_variable = { BRG_famine_agriculture_gain = 1 }
				subtract_from_variable = { BRG_famine_expertise_penalty = 1 }
			}
		}
	}
	BRG_trade_research_for_agriculture = {

		icon = GFX_decision_generic_construction

		allowed = { original_tag = BRG }
		visible = {
			has_completed_focus = BRG_specialized_assistance
		}
		cost = 75
		days_re_enable = 100

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_increase_agriculture_modifier
			custom_effect_tooltip = BRG_decrease_research_modifier
			hidden_effect = {
				add_to_variable = { BRG_famine_agriculture_gain = 1 }
				subtract_from_variable = { BRG_famine_research_penalty = 1 }
			}
		}
	}
	BRG_industrial_farm = {

		icon = GFX_decision_generic_industrial_farm

		allowed = { original_tag = BRG }
		state_target = yes
		target_array = BRG.BurgundyDomesticGUIStates
		target_trigger = {
			FROM = {
				is_owned_by = BRG
				NOT = {
					state = 16 #Nord Paris
					state = 15 #Normandie
				}
			}
		}

		visible = {
			has_completed_focus = BRG_fields_of_grain
			NOT = { FROM = { check_variable = { BRG_brutalist_city_level > 0 } } }
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_workers_cost_1250
				check_variable = { FROM.BRG_Skilled_Worker_Pop > 1249 }
			}
		}
		cost = 60
		days_remove = 60
		fire_only_once = yes

		on_map_mode = map_only

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			subtract_from_variable = { FROM.BRG_Skilled_Worker_Pop = 1250 }
		}
		remove_effect = {
			custom_effect_tooltip = BRG_industrial_farm_construction
			custom_effect_tooltip = BRG_worker_decrease_medium
			hidden_effect = {
				FROM = {
					add_state_modifier = {
						modifier = {
							BRG_Skilled_Worker_Pop_Monthly_Change = -400
						}
					}
					add_to_variable = { THIS.BRG_state_food_production = 1250 }
				}
			}
		}
	}
	BRG_force_farm_work = {

		icon = GFX_decision_generic_forced_labor

		allowed = { original_tag = BRG }
		targets = { }
		state_target = yes
		target_array = BRG.BurgundyDomesticGUIStates
		target_trigger = {
			FROM = {
				is_controlled_by = BRG
				NOT = {
					state = 16 #Nord Paris
					state = 15 #Normandie
				}
			}
		}

		visible = {
			has_completed_focus = BRG_crack_the_whip
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_workers_cost_300
				check_variable = { FROM.BRG_Skilled_Worker_Pop > 299 }
			}
			command_power > 34.99
		}
		days_remove = 60
		fire_only_once = yes

		on_map_mode = map_only

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			subtract_from_variable = { FROM.BRG_Skilled_Worker_Pop = 300 }
			add_command_power = -35
		}
		remove_effect = {
			custom_effect_tooltip = BRG_force_farm_work_construction
			custom_effect_tooltip = BRG_worker_decrease_small
			custom_effect_tooltip = BRG_loyalty_hit_small
			hidden_effect = {
				FROM = {
					subtract_from_variable = { HimmlerSupport = 3 }
					add_state_modifier = {
						modifier = {
							BRG_Skilled_Worker_Pop_Monthly_Change = -200
							BRG_state_food_production = 300
						}
					}
				}
			}
		}
	}
	BRG_designate_mega_farm = {

		icon = GFX_decision_generic_farm

		allowed = { original_tag = BRG }
		state_target = yes
		targets = { 1625 788 }
		target_trigger = {
			FROM = { is_controlled_by = BRG }
		}

		visible = {
			has_completed_focus = BRG_raze_the_cities
			FROM = {
				NOT = { nuclear_reactor > 0 }
				has_state_flag = BRG_brutalism_tier_1
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = BRG_workers_cost_2000
				check_variable = { FROM.BRG_Skilled_Worker_Pop > 1999 }
			}
		}
		cost = 60
		days_remove = 60
		fire_only_once = yes

		on_map_mode = map_only

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			subtract_from_variable = { FROM.BRG_Skilled_Worker_Pop = 2000 }
		}
		remove_effect = {
			custom_effect_tooltip = BRG_mega_farm_construction
			hidden_effect = {
				FROM = {
					set_state_flag = BRG_mega_farm
					if = {
						limit = { dockyard > 0 }
						remove_building = {
							type = dockyard
							level = dockyard_level
						}
					}
					if = {
						limit = { synthetic_refinery > 0 }
						remove_building = {
							type = synthetic_refinery
							level = synthetic_refinery_level
						}
					}
					set_state_category = burgundian_mega_farm
				}
			}
		}
	}
	BRG_food_grant = {

		icon = GFX_decision_generic_industry

		allowed = { original_tag = BRG }

		visible = {
			has_completed_focus = BRG_needs_of_the_few_outwiegh_the_many
		}
		days_re_enable = 60

		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			custom_effect_tooltip = BRG_please_charlemagne
			if = {
				limit = { check_variable = { BRG_state_food_production > 299 } }
				random_owned_state = {
					custom_effect_tooltip = BRG_food_production_grant
					subtract_from_variable = { BRG_state_food_production = 300 }
				}
			}
			hidden_effect = {
				every_owned_state = {
					limit = {
						NOT = {
							state = 16 #Nord Paris
						}
					}
					if = {
						limit = { is_core_of = FRA }
						if = {
							limit = { check_variable = { nationality = 140 } }
							subtract_from_variable = { CharlemagneSupport = 3 }
							add_to_variable = { HimmlerSupport = 3 }
						}
						else = {
							subtract_from_variable = { CharlemagneSupport = 2 }
							add_to_variable = { HimmlerSupport = 2 }
						}
					}
				}
			}
		}
	}
	BRG_raze_city = {

		icon = GFX_decision_generic_destroy_city

		allowed = { original_tag = BRG }
		state_target = yes
		target_array = BRG.BurgundyDomesticGUIStates
		target_trigger = {
			FROM = {
				is_owned_by = BRG
				NOT = {
					state = 16 #Nord Paris
					state = 15 #Normandie
				}
			}
		}

		visible = {
			has_completed_focus = BRG_industriebauernhof_projekte
			FROM = { check_variable = { BRG_brutalist_city_level > 0 } }
		}
		days_remove = 60
		fire_only_once = yes
		highlight_states = {
			highlight_state_targets = { state = THIS }
		}

		on_map_mode = map_only

		ai_will_do = {
			factor = 1
		}
		remove_effect = {
			custom_effect_tooltip = BRG_demolish_city
			hidden_effect = {
				FROM = {
					set_temp_variable = { BRG_ratio_impact = BRG_brutalist_city_level }
					set_temp_variable = { BRG_change_impact = BRG_brutalist_city_level }
					multiply_temp_variable = { BRG_ratio_impact = 0.5 }
					multiply_temp_variable = { BRG_change_impact = 20 }
					subtract_from_variable = { BRG_Cop_To_Worker_Ratio = BRG_ratio_impact }
					subtract_from_variable = { BRG_Skilled_Worker_Pop_Monthly_Change = BRG_change_impact }
					set_variable = { BRG_brutalist_city_level = 0 }
					remove_building = { type = brutalist_city level = 1 }
				}
			}
		}
	}
}
#Supply decisions

pulse_actions = {
	BRG_fall_ragnachar_mission = { # This acts as a replacement for the peace deal code
		activation = { always = no }
		available = { FRA = { surrender_progress > 0.6 } }

		fire_only_once = yes
		is_good = no

		days_mission_timeout = 30
		complete_effect = {
			FRA = {
				set_province_controller = 9737
				set_capital = { state = 19 }
				white_peace = {
					tag = BRG
					message = fra_brg_capitulation_msg
				}
			}
			BRG = { country_event = BRG_opening.6 }
			remove_mission = BRG_fall_ragnachar_mission
		}
		timeout_effect = {
			FRA = {
				set_province_controller = 9737
				set_capital = { state = 19 }
				white_peace = {
					tag = BRG
					message = fra_brg_capitulation_msg
				}
			}
			BRG = { country_event = BRG_opening.6 }
			remove_mission = BRG_fall_ragnachar_mission
		}
	}
}