


political_actions = {
	
	# Requisition funds from the Congolese Government
	BEL_requisition_congolese_funds_decision  = {

		priority = 10

		icon = GFX_decision_generic_fundraising

		ai_will_do = {
			base = 50
		}
	
		allowed = {  
			original_tag = BEL 
		}
	
		available = {
			has_completed_focus = CONGO_requisition_funds
			any_country_with_original_tag = {
				original_tag_to_check = COG
				is_subject_of = ROOT
			}
		}

		visible = { 
			has_completed_focus = CONGO_requisition_funds
		}

		#days_remove = 70

		days_re_enable = 180

		cost = 0

		modifier = {
		}

		complete_effect = { 

			add_political_power = 50
			every_country = {
				limit = {
					original_tag = COG
					is_subject_of = ROOT
				}
				add_autonomy_score = { 
					value = 75
					localization = CONGO_requisitioned_funds_from_us
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = BEL_requisition_congolese_funds_decision_tt

		}

	}

	# Invest Congolese Gold into Infrastructure
	BEL_invest_congo_gold_into_infrastructure_decision  = {

		priority = 8

		icon = GFX_decision_generic_construction

		ai_will_do = {
			base = 50
		}
	
		allowed = {  
			original_tag = BEL 
		}
	
		available = {
			has_completed_focus = CONGO_gold_and_diamonds
			any_country_with_original_tag = {
				original_tag_to_check = COG
				is_subject_of = ROOT
			}
		}

		visible = { 
			has_completed_focus = CONGO_gold_and_diamonds
		}

		#days_remove = 70

		#days_re_enable = 180

		cost = 10

		modifier = {
		}

		complete_effect = { 

			every_country = {
				limit = {
					original_tag = COG
					is_subject_of = ROOT
				}
				add_autonomy_score = { 
					value = 50
					localization = CONGO_used_congolese_gold
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_timed_idea = {
				idea = BEL_cog_gold_investment_into_infrastructure
				days = 180
			}	

		}

	}

	# Invest Congolese Gold into Welfare
	BEL_invest_congo_gold_into_welfare_decision  = {

		priority = 7

		icon = GFX_decision_generic_welfare

		ai_will_do = {
			base = 50
		}
	
		allowed = {  
			original_tag = BEL 
		}
	
		available = {
			has_completed_focus = CONGO_gold_and_diamonds
			any_country_with_original_tag = {
				original_tag_to_check = COG
				is_subject_of = ROOT
			}
		}

		visible = { 
			has_completed_focus = CONGO_gold_and_diamonds
		}

		#days_remove = 70

		#days_re_enable = 180

		cost = 10

		modifier = {
		}

		complete_effect = { 

			every_country = {
				limit = {
					original_tag = COG
					is_subject_of = ROOT
				}
				add_autonomy_score = { 
					value = 50
					localization = CONGO_used_congolese_gold
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_timed_idea = {
				idea = BEL_cog_gold_investment_into_welfare
				days = 180
			}	

		}

	}

	# Pay Construction Firms with Cash from Congolese Diamonds
	BEL_invest_congo_diamonds_into_construction_decision  = {

		priority = 6

		icon = GFX_decision_hol_attract_foreign_investors

		ai_will_do = {
			base = 50
		}
	
		allowed = {  
			original_tag = BEL 
		}
	
		available = {
			has_completed_focus = CONGO_gold_and_diamonds
			any_country_with_original_tag = {
				original_tag_to_check = COG
				is_subject_of = ROOT
			}
		}

		visible = { 
			has_completed_focus = CONGO_gold_and_diamonds
		}

		#days_remove = 70

		#days_re_enable = 180

		cost = 10

		modifier = {
		}

		complete_effect = { 

			every_country = {
				limit = {
					original_tag = COG
					is_subject_of = ROOT
				}
				add_autonomy_score = { 
					value = 75
					localization = CONGO_used_congolese_diamonds
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_timed_idea = {
				idea = BEL_cog_diamond_investment_into_construction
				days = 180
			}	

		}

	}

	BEL_dismantle_BEL_SPR_alliance_decision = {
		icon = GFX_decision_generic_break_treaty

		targets = { SPR SPD }

		target_trigger = {
			FROM = {
				is_in_faction_with = ROOT
				OR = {
					has_government = democratic
					has_government = communism
				}
				is_subject = no
			}
		}

		cost = 10

		days_remove = 5

		allowed = {
			original_tag = BEL
		}

		visible = {
			has_global_flag = scw_over
		}

		available = {
			is_faction_leader = yes
			is_in_faction_with = FROM
		}

		cancel_trigger = {
			FROM = {
				OR = {
					exists = no
					is_subject = yes
					NOT = {
						is_in_faction_with = ROOT
					}
				}
			}

			is_faction_leader = no
		}

		complete_effect = {

		}

		remove_effect = {

			dismantle_faction = FROM

			FROM = {
				country_event = {
					id = ww_BEL_event_spanish_interaction.9
					hours = 6
				}
			}
		}
	}

	BEL_emergency_measures_on_production_front  = {

		priority = 6

		icon = GFX_decision_generic_industry

		ai_will_do = {
			base = 50
		}
	
		allowed = {  
			original_tag = BEL 
		}
		
		visible = { 
			has_completed_focus = BEL_unity_makes_strength
		}
	
		available = {
			
		}

		fire_only_once = yes

		cost = 100

		modifier = {
		}

		complete_effect = { 	
			add_timed_idea = {
				idea = BEL_emergency_measures
				days = 180
			}
		}
	}
}

BEL_belgian_defences_cat = {
	BEL_remove_flooded_tank_barriers = {
		icon = generic_construction

		state_target = yes

		on_map_mode = map_and_decisions_view

		target_array = BEL.core_states

		target_trigger = {
			FROM = {
				is_controlled_by = ROOT
				has_dynamic_modifier = { modifier = BEL_flooded_tank_barriers_dynamic_modifier }
			}
		}

		custom_cost_trigger = {
			command_power > 25
		}
		custom_cost_text = BEL_command_power_25

		days_remove = 30

		target_root_trigger = {
			any_controlled_state = {
				is_core_of = BEL
				has_dynamic_modifier = { modifier = BEL_flooded_tank_barriers_dynamic_modifier }
			}
		}

		available = {
			FROM = {
				has_dynamic_modifier = { modifier = BEL_flooded_tank_barriers_dynamic_modifier }
				is_controlled_by = ROOT
			}
		}

		cancel_trigger = {
			FROM = {
				NOT = { is_controlled_by = ROOT }
			}
		}

		complete_effect = {
			#Cost
			hidden_effect = {			
				add_command_power = -25
			}
		}

		remove_effect = {
			FROM = {
				remove_dynamic_modifier = { modifier = BEL_flooded_tank_barriers_dynamic_modifier }
			}
		}

		ai_will_do = {
			base = 0.1
			modifier = {
				factor = 20
				command_power > 25
			}
			modifier = {
				factor = 40
				command_power > 49
			}
		}
	}
}

BEL_gold_reserves_cat = {
	BEL_gold_reserves_welfare = {

		icon = GFX_decision_generic_welfare

		ai_will_do = {
			base = 1
		}

		available = {
			NOT = {
				has_country_flag = BEL_spending_gold_reserves_flag
			}
		}

		visible = { 
			check_variable = { BEL_gold_reserves_spending < 4 }
			NOT = {
				has_idea = BEL_industrial_investments
			}
		}

		fire_only_once = no

		days_remove = 30

		days_re_enable = 365

		cost = 50

		cancel_trigger = { 
			has_capitulated = yes
		}

		cancel_effect = {
			
		}

		complete_effect = {
			custom_effect_tooltip = BEL_modify_gold_reserves_dynamic_modifier_tt
			add_to_variable = { 
				BEL_gold_reserves_consumer_goods_factor = 0.025
				tooltip = consumer_goods_factor_tt				
			}

			hidden_effect = {
				set_country_flag = BEL_spending_gold_reserves_flag
			}
		}

		remove_effect = { 
			add_political_power = 150
			add_stability = 0.05
			add_popularity = {
			    ideology = ROOT
			    popularity = 0.05
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			BEL_times_gold_reserves_were_spent = yes

			hidden_effect = {
				clr_country_flag = BEL_spending_gold_reserves_flag
			}
		}
	}
	BEL_gold_reserves_construction = {

		icon = GFX_decision_generic_construction

		ai_will_do = {
			base = 1
		}

		available = {
			NOT = {
				has_country_flag = BEL_spending_gold_reserves_flag
			}
		}

		visible = { 
			check_variable = { BEL_gold_reserves_spending < 4 }
			NOT = {
				has_idea = BEL_construction_investments
			}
		}

		fire_only_once = no

		days_remove = 30

		#days_re_enable = 180

		cost = 50

		cancel_trigger = { 
			has_capitulated = yes
		}

		cancel_effect = {
			
		}

		complete_effect = {
			custom_effect_tooltip = BEL_modify_gold_reserves_dynamic_modifier_tt
			add_to_variable = { 
				BEL_gold_reserves_consumer_goods_factor = 0.025
				tooltip = consumer_goods_factor_tt				
			}

			hidden_effect = {
				set_country_flag = BEL_spending_gold_reserves_flag
			}
		}

		remove_effect = { 
			add_timed_idea = {
				idea = BEL_construction_investments
				days = 180
			}
			custom_effect_tooltip = generic_skip_one_line_tt

			BEL_times_gold_reserves_were_spent = yes

			hidden_effect = {
				clr_country_flag = BEL_spending_gold_reserves_flag
			}
		}
	}
	BEL_gold_reserves_industry = {

		icon = GFX_decision_generic_factory

		ai_will_do = {
			base = 1
		}

		available = {
			NOT = {
				has_country_flag = BEL_spending_gold_reserves_flag
			}
		}

		visible = { 
			check_variable = { BEL_gold_reserves_spending < 4 }
			NOT = {
				has_idea = BEL_industrial_investments
			}
		}

		fire_only_once = no

		days_remove = 30

		#days_re_enable = 180

		cost = 50

		cancel_trigger = { 
			has_capitulated = yes
		}

		cancel_effect = {
			
		}

		complete_effect = {
			custom_effect_tooltip = BEL_modify_gold_reserves_dynamic_modifier_tt
			add_to_variable = { 
				BEL_gold_reserves_consumer_goods_factor = 0.025
				tooltip = consumer_goods_factor_tt				
			}

			hidden_effect = {
				set_country_flag = BEL_spending_gold_reserves_flag
			}
		}

		remove_effect = { 
			add_timed_idea = {
				idea = BEL_industrial_investments
				days = 365
			}
			
			custom_effect_tooltip = generic_skip_one_line_tt
			
			BEL_times_gold_reserves_were_spent = yes

			hidden_effect = {
				clr_country_flag = BEL_spending_gold_reserves_flag
			}
		}
	}
}

BEL_government_in_exile_cat = {
	
	BEL_request_equipment_decision = {
		icon = GFX_decision_generic_industry

		allowed = {

		}

		available = {
			NOT = {	has_country_flag = BEL_currently_undertaking_gov_4_action_flag }
		}

		targets = { GER ENG FRA }

		target_trigger = {
			ROOT = { 
				OR = {
					is_in_faction = no 
					is_in_faction_with = FROM
				}
			}
		}

		cost = 50

		fire_only_once = no

		days_remove = 30

		complete_effect = {
			set_country_flag = BEL_currently_undertaking_gov_4_action_flag
		}

		remove_effect = {
			clr_country_flag = BEL_currently_undertaking_gov_4_action_flag

			FROM = {
				country_event = {
					id = ww_BEL_event_diplomatic.15
					hours = 6
				}
			}

			custom_effect_tooltip = if_they_accept_tt
			event_option_tooltip = ww_BEL_event_diplomatic.15.a
		}
	}

	BEL_request_factory_access_decision = {
		icon = GFX_decision_generic_industry

		allowed = {

		}

		available = {
			NOT = {	has_country_flag = BEL_currently_undertaking_gov_4_action_flag }
		}

		targets = { GER ENG FRA }

		target_trigger = {
			ROOT = { 
				OR = {
					is_in_faction = no 
					is_in_faction_with = FROM
				}
			}
		}

		cost = 50

		fire_only_once = no

		days_remove = 30

		complete_effect = {
			set_country_flag = BEL_currently_undertaking_gov_4_action_flag
		}

		remove_effect = {
			clr_country_flag = BEL_currently_undertaking_gov_4_action_flag

			FROM = {
				country_event = {
					id = ww_BEL_event_diplomatic.16
					hours = 6
				}
			}

			custom_effect_tooltip = if_they_accept_tt
			event_option_tooltip = ww_BEL_event_diplomatic.16.a
		}
	}

	BEL_share_military_experience = {
		icon = GFX_decision_generic_industry

		allowed = {

		}

		available = {
			NOT = {	has_country_flag = BEL_currently_undertaking_gov_4_action_flag }
		}

		targets = { GER ENG FRA }

		target_trigger = {
			ROOT = { 
				OR = {
					is_in_faction = no 
					is_in_faction_with = FROM
				}
			}
		}

		cost = 50

		fire_only_once = no

		days_remove = 30

		complete_effect = {
			set_country_flag = BEL_currently_undertaking_gov_4_action_flag
		}

		remove_effect = {
			clr_country_flag = BEL_currently_undertaking_gov_4_action_flag

			FROM = {
				country_event = {
					id = ww_BEL_event_diplomatic.17
					hours = 6
				}
			}

			custom_effect_tooltip = if_they_accept_tt
			event_option_tooltip = ww_BEL_event_diplomatic.17.a
		}
	}
}


war_measures = { 


	# Force Congolese Capitulation
	BEL_force_congolese_capitulation_decision  = {

		priority = 100

		icon = GFX_decision_eng_trade_unions_support

		ai_will_do = {
			base = 500
		}
	
		allowed = {  
			original_tag = BEL 
		}
	
		available = {
			any_country_with_original_tag = {
				original_tag_to_check = COG
				is_subject_of = ROOT
			}
			any_country_with_original_tag = {
				original_tag_to_check = COG
				has_war_with = ROOT
			}
			295 = {
				OR = {
					is_controlled_by = ROOT
					CONTROLLER = {
						is_subject_of = ROOT
					}
				}
			}
			718 = {
				OR = {
					is_controlled_by = ROOT
					CONTROLLER = {
						is_subject_of = ROOT
					}
				}
			}
			889 = {
				OR = {
					is_controlled_by = ROOT
					CONTROLLER = {
						is_subject_of = ROOT
					}
				}
			}
		}

		visible = { 
			has_global_flag = CONGO_independence_war_ongoing
		}

		#days_remove = 70

		#days_re_enable = 180

		cost = 25

		complete_effect = { 

			custom_effect_tooltip = BEL_force_congolese_capitulation_decision_tt

			hidden_effect = {
				every_country = {
					limit = {
						original_tag = COG
						has_war_with = ROOT
					} 
					every_country = {
						limit = {
							original_tag = COG
							is_subject_of = ROOT
						}
						annex_country = {
							target = PREV
							transfer_troops = no
						}	
					}
				}

				every_country = {
					limit = {
						OR = {
							original_tag = KAT
							original_tag = COG
							original_tag = RWA
							original_tag = BRD
						}
						has_war_with = ROOT
					}
					ROOT = {
						white_peace = {
							tag = PREV
						}
					}
				}

				every_country = {
					limit = {
						is_subject_of = ROOT
						original_tag = COG
					}
					load_focus_tree = { tree = congo_focus keep_completed = yes }
				}

				clr_global_flag = CONGO_independence_war_ongoing

				news_event = { 
					id = ww_congo.18
					hours = 12
				}
			}
		}
	}
}

BEL_closer_european_union_cat =  {
	BEL_invite_to_the_european_union_decision = {
		priority = 75

		icon = GFX_decision_eng_trade_unions_support

		ai_will_do = {
			base = 50
		}

		targets = { GER ITA AUS GRE DEN IRE POR SPR SWE FIN CZE POL HUN ROM EST LAT LIT BUL SLV CRO FRA ENG LUX HOL } #Avoid states that are not in the eu to this day such as SWI, NOR and YUG (Serbia),but include the UK for shits and giggles :D

		target_trigger = {
			FROM = {
				exists = yes
				is_government_in_exile = no
				
				NOT = {
					has_war_with = ROOT
				}
				NOT = { has_country_flag = sent_eu_invitation_flag }
			}
		}

		cost = 50

		days_remove = 30

		fire_only_once = yes

		allowed = {
			OR = {
				original_tag = BEL
				original_tag = AUS
				original_tag = HOL
			}
		}

		visible = {
			FROM = {
				is_in_faction = no
				is_subject = no #It has to be here or the decision is cancelled by the taret trigger rather than the cancel trigger if it happens. Cancellation via target trigger doesn't run cancel_effect meaning following decisions get perma-locked by a flag that can't be removed
				OR = { #needs to be here to cancel correctly if there is a ideology flip
					has_government = neutrality
					has_government = democratic
				}
			}
		}

		available = {
			NOT = {	has_country_flag = BEL_currently_taking_eu_decision_flag }	

		}

		cancel_trigger = {
			FROM = {
				OR = {
					is_subject = yes
					exists = no
					is_in_faction = yes
					NOT = {
						has_government = neutrality
						has_government = democratic
					}
				}
			}
		}

		cancel_effect = {
			clr_country_flag = BEL_currently_taking_eu_decision_flag
		}

		complete_effect = {
			set_country_flag = BEL_currently_taking_eu_decision_flag
		}

		remove_effect = {
			FROM = {
				country_event = {
					id = ww_BEL_event_diplomatic.20
					hours = 12
				}
			}
			clr_country_flag = BEL_currently_taking_eu_decision_flag
		}
	}

	BEL_establish_research_sharing_group_decision = {
		priority = 80
	
		icon = GFX_decision_hol_exchange_intelligence_data
	
		ai_will_do = {
			base = 10
		}

		cost = 100

		days_remove = 30

		fire_only_once = yes

		allowed = {
			OR = { #to allow for potential Austria
				original_tag = BEL
				original_tag = AUS
			}
		}

		visible = {

		}

		available = {
			NOT = {	has_country_flag = BEL_currently_taking_eu_decision_flag }
			any_country = { is_in_faction_with = ROOT }
		}

		cancel_trigger = {
			NOT = {
				any_country = { is_in_faction_with = ROOT }
			}
		}

		cancel_effect = {
			clr_country_flag = BEL_currently_taking_eu_decision_flag
		}

		complete_effect = {
			set_country_flag = BEL_currently_taking_eu_decision_flag
		}

		remove_effect = {
			clr_country_flag = BEL_currently_taking_eu_decision_flag

			add_to_tech_sharing_group = EU_tech_sharing_group

			every_other_country = {
				limit = {
					is_in_faction_with = ROOT
				}
				country_event = {
					id = ww_BEL_event_diplomatic.23
					hours = 6
				}
			}
		}
	}

	BEL_propose_limited_federalization_descision = {
		priority = 80
	
		icon = GFX_decision_hol_exchange_intelligence_data
	
		ai_will_do = {
			base = 10
		}

		target_array = ROOT.faction_members

		target_trigger = {
			FROM = {
				exists = yes
				capital_scope = {
					is_on_continent = europe
				}
			}
		}

		cost = 100

		days_remove = 30

		fire_only_once = yes

		allowed = {
			OR = { #to allow for potential Austria
				original_tag = BEL
				original_tag = AUS
				original_tag = HOL
			}
		}

		visible = {
			FROM = { is_government_in_exile = no } 
			is_subject = no #has to be here or the target trigger will kill the decision rather than the cancel leading to cancel effects not being run
		}

		available = {
			NOT = {	has_country_flag = BEL_currently_taking_eu_decision_flag }
			FROM = {
				is_in_faction_with = ROOT
			}
		}

		cancel_trigger = {
			FROM = {
				OR = {
					is_subject = yes
					is_government_in_exile = yes
					exists = no
					NOT = {
						is_in_faction_with = ROOT
					}
				}
			}
		}

		cancel_effect = {
			clr_country_flag = BEL_currently_taking_eu_decision_flag
		}

		complete_effect = {
			set_country_flag = BEL_currently_taking_eu_decision_flag

		}

		remove_effect = {
			clr_country_flag = BEL_currently_taking_eu_decision_flag
			FROM = {
				country_event = {
					id = ww_BEL_event_diplomatic.26
					hours = 6
				}
			}

			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				ROOT = {
					set_autonomy = {
						target = FROM
						autonomy_state = autonomy_eu_member
						freedom_level = 0.5
					}
				}
			}

			custom_effect_tooltip = generic_more_likely_to_accept_tt
			custom_effect_tooltip = more_likely_to_accept_federalization_tt
			
		}
	}
}

BEL_cores_in_gallic_france_cat = {
	BEL_complete_integration_of_from_decision = {
		icon = GFX_decision_generic_operation

		allowed = {

		}
		available = {
			NOT = {	has_country_flag = BEL_currently_coring_gallic_state_flag }
		}

		state_target = yes

		target_trigger = {
			FROM = {
				OR = {
					state = 29
					state = 785
					state = 18
					state = 28
					state = 17
					state = 27
					state = 1521
					state = 1257
					state = 1258
					state = 1259
					state = 1401
					state = 1402
					state = 1403
				}
				OR = {
					ROOT = { has_country_flag = BEL_currently_coring_gallic_state_flag }	#cancel by cancel_trigger instead
					is_fully_controlled_by = ROOT
				}
				NOT = {
					is_core_of = ROOT
				}
			}
			
		}

		cost = 100

		fire_only_once = yes

		days_remove = 90

		cancel_trigger = {
			FROM = {
				NOT = {
					is_fully_controlled_by = ROOT
				}
			}
		}

		cancel_effect = {
			clr_country_flag = BEL_currently_coring_gallic_state_flag
		}

		complete_effect = {
			set_country_flag = BEL_currently_coring_gallic_state_flag
		}

		remove_effect = {
			FROM = {
				add_core_of = ROOT
			}

			ROOT = { clr_country_flag = BEL_currently_coring_gallic_state_flag }
		}
	}
}

BEL_intervention_in_spain_cat = {
	BEL_guns_for_the_spaniards_decision = {
		icon = GFX_decision_generic_prepare_civil_war

		allowed = {

		}

		visible = {
			SPR_scw_in_progress = yes
		}

		available = {
			NOT = { has_country_flag = BEL_currently_undertaking_intervention_decision_flag }
		}

		targets = { SPD }

		custom_cost_trigger = {
			has_equipment = { infantry_equipment > 1999 }
		}

		custom_cost_text = decision_cost_ie_2000

		days_remove = 25

		fire_only_once = yes

		cancel_trigger = {
			has_global_flag = scw_over
			FROM = {
				exists = yes
			}
		}

		cancel_effect = {
			clr_country_flag = BEL_currently_undertaking_intervention_decision_flag
		}

		complete_effect = {
			set_country_flag = BEL_currently_undertaking_intervention_decision_flag
		}

		remove_effect = {
			clr_country_flag = BEL_currently_undertaking_intervention_decision_flag

			set_country_flag = BEL_sent_equipment_to_spain_flag

			FROM = {
				country_event = {
					id = ww_BEL_event_spanish_interaction.1
					hours = 6
				}
			}

			effect_tooltip = {

				FROM = {
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 2000
						producer = ROOT
					}
				}
			}
		}
	}

	BEL_more_equipment_for_the_spanish_decision = {
		icon = GFX_decision_generic_industry

		allowed = {

		}

		visible = {
			SPR_scw_in_progress = yes

			has_country_flag = BEL_sent_equipment_to_spain_flag
		}

		available = {
			NOT = { has_country_flag = BEL_currently_undertaking_intervention_decision_flag }
		}

		targets = { SPD }

		cost = 50

		days_remove = 25

		fire_only_once = yes

		cancel_trigger = {
			has_global_flag = scw_over
			FROM = {
				exists = yes
			}
		}

		cancel_effect = {
			clr_country_flag = BEL_currently_undertaking_intervention_decision_flag
		}

		complete_effect = {
			set_country_flag = BEL_currently_undertaking_intervention_decision_flag
		}

		remove_effect = {
			clr_country_flag = BEL_currently_undertaking_intervention_decision_flag

			
			country_event = {
				id = ww_BEL_event_spanish_interaction.2
				hours = 6
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = BEL_more_equipment_for_the_spanish_decision_tt

			custom_effect_tooltip = generic_skip_one_line_tt
			
		}
	}

	BEL_speech_in_support_of_spain_decision = {
		icon = GFX_decision_generic_political_address

		allowed = {

		}

		visible = {
			SPR_scw_in_progress = yes
		}

		available = {
			NOT = { has_country_flag = BEL_currently_undertaking_intervention_decision_flag }
		}

		targets = { SPD }

		cost = 100

		days_remove = 25

		fire_only_once = yes

		cancel_trigger = {
			has_global_flag = scw_over
			FROM = {
				exists = yes
			}
		}

		cancel_effect = {
			clr_country_flag = BEL_currently_undertaking_intervention_decision_flag
		}

		complete_effect = {
			set_country_flag = BEL_currently_undertaking_intervention_decision_flag
		}

		remove_effect = {
			clr_country_flag = BEL_currently_undertaking_intervention_decision_flag

			FROM = {
				country_event = {
					id = ww_BEL_event_spanish_interaction.4
					hours = 6
				}

				effect_tooltip = {
					FROM = {
						add_political_power = 150
					}
				}
			}
		}
	}

	BEL_encourage_emigration_to_spain_decision = {
		icon = GFX_decision_eng_propaganda_campaigns

		allowed = {

		}

		visible = {
			SPR_scw_in_progress = yes
		}

		available = {
			NOT = { has_country_flag = BEL_currently_undertaking_intervention_decision_flag }
		}

		targets = { SPD }

		cost = 75

		days_remove = 25

		fire_only_once = yes

		cancel_trigger = {
			has_global_flag = scw_over
			FROM = {
				exists = yes
			}
		}

		cancel_effect = {
			clr_country_flag = BEL_currently_undertaking_intervention_decision_flag
		}

		complete_effect = {
			set_country_flag = BEL_currently_undertaking_intervention_decision_flag			
		}

		remove_effect = {
			clr_country_flag = BEL_currently_undertaking_intervention_decision_flag
			FROM = {
				country_event = {
					id = ww_BEL_event_spanish_interaction.5
					hours = 6
				}

				effect_tooltip = {
					FROM = {
						add_timed_idea = {
							idea = BEL_belgian_immigration_ns
							days = 365
						}
					}
				}
			}
		}
	}

	BEL_intervene_on_side_of_SPR = {
		available = { has_war_support > 0.15 }

		visible = { has_war = no }

		targets = { SPD }

		target_trigger = { 
			FROM = {
				original_tag = SPR
			}
		}

		complete_effect = {
			#This is not optimal, but it generates a beautiful tooltip

			set_country_flag = supports_SPD_flag
			if = {
				limit = { country_exists = SPA }
				add_to_war = { targeted_alliance = SPD enemy = SPA hostility_reason = asked_to_join }
			}
			if = {
				limit = { country_exists = SPC }
				add_to_war = { targeted_alliance = SPD enemy = SPC hostility_reason = asked_to_join }
			}
			if = {
				limit = { country_exists = SPB }
				add_to_war = { targeted_alliance = SPD enemy = SPB hostility_reason = asked_to_join }
			}

			effect_tooltip = {
				give_military_access = FROM
				FROM = { give_military_access = ROOT }
			}
			hidden_effect = {
				diplomatic_relation = {
					country = FROM
					relation = military_access
					active = yes
				}
				FROM = {
					diplomatic_relation = {
						country = ROOT
						relation = military_access
						active = yes
					}
				}
			}
			if = {
				limit = {
					is_faction_leader = yes
				}
				add_to_faction = FROM
			}	
			clr_country_flag = BEL_currently_undertaking_intervention_decision_flag

			FROM = {
				country_event = {
					id = ww_BEL_event_spanish_interaction.6
					hours = 6
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = if_they_accept
			effect_tooltip = {
				create_faction_from_template = {
					template = faction_template_anti_fascist
					name = BEL_SPR_alliance
					icon = GFX_faction_logo_generic_11
				}
				add_to_faction = ROOT
				add_to_faction = FROM
			}		
		}

		cost = 100
		ai_will_do = {
			factor = 1
			modifier = {
				has_war = yes
				factor = 0
			}
			modifier = {
				is_historical_focus_on = yes
				factor = 0
			}
		}
		
	}

	BEL_form_alliance_with_spain = {
		icon = GFX_decision_eng_trade_unions_support

		allowed = {

		}

		visible = {
			SPR_scw_in_progress = yes
		}

		available = {
			NOT = { has_country_flag = BEL_currently_undertaking_intervention_decision_flag }
			is_in_faction = no
		}

		targets = { SPD }

		target_trigger = {
			FROM = {
				is_in_faction = no
				OR = {
					has_government = democratic
					has_government = communism
				}
			}
		}

		cost = 50

		days_remove = 15

		fire_only_once = yes

		cancel_trigger = {
			has_global_flag = scw_over
			FROM = {
				exists = yes
			}
		}

		cancel_effect = {
			clr_country_flag = BEL_currently_undertaking_intervention_decision_flag
		}

		complete_effect = {
			set_country_flag = BEL_currently_undertaking_intervention_decision_flag
		}

		remove_effect = {
			clr_country_flag = BEL_currently_undertaking_intervention_decision_flag

			FROM = {
				country_event = {
					id = ww_BEL_event_spanish_interaction.6
					hours = 6
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = if_they_accept
			effect_tooltip = {
				create_faction = BEL_SPR_alliance
				add_to_faction = ROOT
				add_to_faction = FROM
			}
			
		}
	}
}
	
BEL_rekindle_the_red_flame_cat = {
	BEL_communist_constitution_decision = {
		icon = GFX_decision_eng_trade_unions_support

		allowed = {

		}

		visible = {
			
		}

		available = {
			communism > 0.6
		}

		cost = 100

		days_remove = 25

		fire_only_once = yes

		cancel_trigger = {
			
		}

		cancel_effect = {
			clr_country_flag = BEL_currently_undertaking_communism_decision_flag
		}

		complete_effect = {
			set_country_flag = BEL_currently_undertaking_communism_decision_flag			
		}

		remove_effect = {
			clr_country_flag = BEL_currently_undertaking_communism_decision_flag
			set_politics = {
				ruling_party = communism
				elections_allowed = no
			}
		}
	}

	BEL_worker_rallies_decision = {
		icon = GFX_decision_eng_propaganda_campaigns

		allowed = {

		}

		visible = {
			
		}

		available = {
			NOT = { has_country_flag = BEL_currently_undertaking_communism_decision_flag }
		}

		cost = 50

		modifier = {
			political_power_factor = -0.1
		}

		days_remove = 15
		fire_only_once = yes

		cancel_trigger = {
			
		}

		cancel_effect = {
			clr_country_flag = BEL_currently_undertaking_communism_decision_flag
		}

		complete_effect = {
			set_country_flag = BEL_currently_undertaking_communism_decision_flag			
		}

		remove_effect = {
			clr_country_flag = BEL_currently_undertaking_communism_decision_flag

			add_popularity = {
				ideology = communism
				popularity = 0.1
			}

			add_stability = -0.05
		}
	}

	BEL_increased_union_powers_decision = {
		icon = GFX_decision_eng_trade_unions_demand

		allowed = {

		}

		visible = {
			
		}

		available = {
			NOT = { has_country_flag = BEL_currently_undertaking_communism_decision_flag }
		}

		cost = 50

		days_remove = 25

		fire_only_once = yes

		cancel_trigger = {
			
		}

		cancel_effect = {
			clr_country_flag = BEL_currently_undertaking_communism_decision_flag
		}

		complete_effect = {
			set_country_flag = BEL_currently_undertaking_communism_decision_flag			
		}

		remove_effect = {
			clr_country_flag = BEL_currently_undertaking_communism_decision_flag

			set_country_flag = BEL_has_increased_union_powers_flag

			add_timed_idea = {
				idea = BEL_powerful_unions_ns
				days = 180
			}

			custom_effect_tooltip = BEL_increased_union_powers_decision_tt
		}
	}

	BEL_boost_miner_unions_decision = {
		icon = GFX_decision_eng_propaganda_campaigns

		allowed = {

		}

		visible = {
			has_country_flag = BEL_has_increased_union_powers_flag
		}

		available = {
			NOT = { has_country_flag = BEL_currently_undertaking_communism_decision_flag }
		}

		cost = 50

		days_remove = 25

		fire_only_once = yes

		complete_effect = {
			set_country_flag = BEL_currently_undertaking_communism_decision_flag
			clr_country_flag = BEL_has_increased_union_powers_flag		
		}

		remove_effect = {
			clr_country_flag = BEL_currently_undertaking_communism_decision_flag

			add_timed_idea = {
				idea = BEL_empowered_miner_unions_ns
				days = 365
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = BEL_boost_unions_tt	
		}
	}

	BEL_boost_construction_unions_decision = {
		icon = GFX_decision_eng_propaganda_campaigns

		allowed = {

		}

		visible = {
			has_country_flag = BEL_has_increased_union_powers_flag
		}

		available = {
			NOT = { has_country_flag = BEL_currently_undertaking_communism_decision_flag }
		}

		cost = 50

		days_remove = 25

		fire_only_once = yes


		complete_effect = {
			set_country_flag = BEL_currently_undertaking_communism_decision_flag
			clr_country_flag = BEL_has_increased_union_powers_flag			
		}

		remove_effect = {
			clr_country_flag = BEL_currently_undertaking_communism_decision_flag
			add_timed_idea = {
				idea = BEL_empowered_construction_unions_ns
				days = 365
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = BEL_boost_unions_tt	
		}
	}

	BEL_boost_factory_workers_unions_decision = {
		icon = GFX_decision_eng_propaganda_campaigns

		allowed = {

		}

		visible = {
			has_country_flag = BEL_has_increased_union_powers_flag
		}

		available = {
			NOT = { has_country_flag = BEL_currently_undertaking_communism_decision_flag }
		}

		cost = 50

		days_remove = 25

		fire_only_once = yes

		complete_effect = {
			set_country_flag = BEL_currently_undertaking_communism_decision_flag
			clr_country_flag = BEL_has_increased_union_powers_flag			
		}

		remove_effect = {
			clr_country_flag = BEL_currently_undertaking_communism_decision_flag
			add_timed_idea = {
				idea = BEL_empowered_factory_workers_unions_ns
				days = 365
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = BEL_boost_unions_tt	
		}
	}
}