debug_decisions = {
	DEBUG_Manu = {
		priority = 999
		allowed = {
			tag = GER
		}

		visible = {
			is_ai = no
			is_debug = yes
		}

		available = {
		}

		complete_effect = {
		}
	}
	DEBUG_DANNE_GER = {
		priority = 999
		allowed = {
			always = yes
			tag = GER
		}

		visible = {
			is_debug = yes
		}

		available = {
			
		}

		complete_effect = {	
			if = {
				limit = {
					OR = {
						has_dynamic_modifier = { modifier = GER_mefo_bills_modifier }
						has_dynamic_modifier = { modifier = GER_economy_of_conquest_modifier }
					}
				}
				custom_effect_tooltip = GER_modify_economy_of_conquest_modifier_tt
				add_to_variable = { 
					GER_industrial_consumer_goods_factor = -0.1
					tooltip = consumer_goods_factor_tt
				}
				GER_reduce_mefo_bills_penalty = yes
			}
		}
	}
	DEBUG_DANNE_change_CG_GER = {
		priority = 999
		allowed = {
			always = yes
			tag = GER
		}

		visible = {
			is_debug = yes
		}

		available = {
			
		}

		complete_effect = {	
			if = {
				limit = {
					OR = {
						has_dynamic_modifier = { modifier = GER_mefo_bills_modifier }
						has_dynamic_modifier = { modifier = GER_economy_of_conquest_modifier }
					}
				}
				custom_effect_tooltip = GER_modify_economy_of_conquest_modifier_tt
				add_to_variable = { 
					GER_industrial_consumer_goods_factor = 0.1
					tooltip = consumer_goods_factor_tt
				}
				GER_add_mefo_bills_penalty = yes
			}
		}
	}
}

################################## 1.14   ###############################################
GER_mefo_bills_category = {
	GER_mefo_bills_mission = {
		allowed = { always = no }
		icon = ger_mefo_bills
		available = {
			NOT = { has_government = democratic }
			GER_can_delay_mefo_payment = yes
			has_political_power > 0
			hidden_trigger = { always = no }
		}
		#cost = GER_mefo_bill_counter?10
		days_mission_timeout = 180
		is_good = yes
		fire_only_once = yes
		cancel_trigger = {
			hidden_trigger = {
				OR = {
					NOT = { GER_has_mefo_bills = yes }
					has_idea = GER_mefo_bills_ended
				}
			}
		}
		days_remove = GER_extend_mefo_bills_days?0
		remove_effect = {	}
		complete_effect = {	}
		timeout_effect = {
			if = {
				limit = {
					has_country_flag = ger_has_cancelled_mefo
				}
				GER_remove_mefo_bills = yes
				#1
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 15 compare = less_than }
					}
					add_political_power = -20
					add_timed_idea = { idea = GER_mefo_bills_ended days = 60 }
				}
				#2
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 20 compare = equals }
					}
					add_political_power = -40
					add_timed_idea = { idea = GER_mefo_bills_ended days = 80 }
				}
				#3
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 30 compare = equals }
					}
					add_political_power = -60
					add_timed_idea = { idea = GER_mefo_bills_ended days = 100 }
				}
				#4
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 40 compare = equals }
					}
					add_political_power = -80
					add_timed_idea = { idea = GER_mefo_bills_ended days = 120 }
				}
				#5
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 50 compare = equals }
					}
					add_political_power = -100
					add_timed_idea = { idea = GER_mefo_bills_ended days = 140 }
				}
				#6
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 60 compare = equals }
					}
					add_political_power = -120
					add_timed_idea = { idea = GER_mefo_bills_ended days = 160 }
				}
				#7
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 70 compare = equals }
					}
					add_political_power = -140
					add_timed_idea = { idea = GER_mefo_bills_ended days = 180 }
				}
				#8
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 80 compare = equals }
					}
					add_political_power = -160
					add_timed_idea = { idea = GER_mefo_bills_ended days = 200 }
				}
				#9
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 90 compare = equals }
					}
					add_political_power = -180
					add_timed_idea = { idea = GER_mefo_bills_ended days = 220 }
				}
				#10
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 100 compare = equals }
					}
					add_political_power = -200
					add_timed_idea = { idea = GER_mefo_bills_ended days = 240 }
				}
				#11
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 110 compare = equals }
					}
					add_political_power = -220
					add_timed_idea = { idea = GER_mefo_bills_ended days = 260 }
				}
				#12
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 120 compare = equals }
					}
					add_political_power = -240
					add_timed_idea = { idea = GER_mefo_bills_ended days = 280 }
				}
				#13
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 130 compare = equals }
					}
					add_political_power = -260
					add_timed_idea = { idea = GER_mefo_bills_ended days = 300 }
				}
				#14
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 140 compare = equals }
					}
					add_political_power = -280
					add_timed_idea = { idea = GER_mefo_bills_ended days = 320 }
				}
				#15
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 150 compare = equals }
					}
					add_political_power = -300
					add_timed_idea = { idea = GER_mefo_bills_ended days = 340 }
				}
				#16
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 160 compare = equals }
					}
					add_political_power = -320
					add_timed_idea = { idea = GER_mefo_bills_ended days = 360 }
				}
				#17
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 170 compare = equals }
					}
					add_political_power = -340
					add_timed_idea = { idea = GER_mefo_bills_ended days = 380 }
				}
				#18
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 180 compare = equals }
					}
					add_political_power = -360
					add_timed_idea = { idea = GER_mefo_bills_ended days = 400 }
				}
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 180 compare = greater_than }
					}
					add_political_power = -380
					add_timed_idea = { idea = GER_mefo_bills_ended days = 420 }
				}
			}
			else = {
				custom_effect_tooltip = GER_mefo_bills_mission_tt
				custom_effect_tooltip = GER_mefo_bills_effect_in_days
				hidden_effect = {
					set_variable = { GER_extend_mefo_bills_days = days_mission_timeout@GER_mefo_bills_mission }
					set_country_flag = paid_for_mefo
				}
				GER_mefo_bills_level_up = yes
				if = {
					limit = {
						check_variable = { var = GER_mefo_bill_counter value = 15 compare = less_than }
					}
					hidden_effect = { set_variable = { var = GER_mefo_bill_counter value = 10 } }
				}
				add_to_variable = { var = GER_mefo_bill_counter value = 10 }
				hidden_effect = {
					activate_mission = GER_mefo_bills_mission
				}
			}
		}
		ai_will_do = {	factor = 200	}
	}

	GER_cancel_mefos = {
		icon = ger_mefo_bills
		available = {
			hidden_trigger = {
				NOT = { has_country_flag = ger_has_cancelled_mefo }
				NOT = {
					OR = {
						NOT = { GER_has_mefo_bills = yes }
						has_idea = GER_mefo_bills_ended
					}
				}
			}
		}
		cost = 0
		fire_only_once = no
		visible = {
			hidden_trigger = {
				NOT = { has_country_flag = ger_has_cancelled_mefo }
				NOT = {
					OR = {
						NOT = { GER_has_mefo_bills = yes }
						has_idea = GER_mefo_bills_ended
					}
				}
			}
		}
		cancel_if_not_visible = yes
		remove_effect = {
			set_country_flag = ger_has_cancelled_mefo
		}
		ai_will_do = {
			factor = 0
		}
	}

	GER_renew_mefos = {
		icon = ger_mefo_bills
		available = {
			hidden_trigger = {
				has_country_flag = ger_has_cancelled_mefo
				NOT = {
					OR = {
						NOT = { GER_has_mefo_bills = yes }
						has_idea = GER_mefo_bills_ended
					}
				}
			}
		}
		cost = 0
		fire_only_once = no
		visible = {
			hidden_trigger = {
				has_country_flag = ger_has_cancelled_mefo
				NOT = {
					OR = {
						NOT = { GER_has_mefo_bills = yes }
						has_idea = GER_mefo_bills_ended
					}
				}
			}
		}
		cancel_if_not_visible = yes
		remove_effect = {
			clr_country_flag = ger_has_cancelled_mefo
		}
		ai_will_do = {
			factor = 200
		}
	}
}

################################## 1.14   ###############################################

# Operational Planning
GER_operational_planning_category = {

	# Campaign Instructions against [FROM.GetName]
	GER_operational_planning = {
		icon = GFX_decision_hol_draw_up_staff_plans

		ai_will_do = {
			base = 1
			modifier = {
				factor = 5
				has_war_with = FROM
			}
			modifier = {
				factor = 2
				FROM = {
					is_major = yes
				}
			}
			modifier = {
				factor = 10
				FROM = {
					original_tag = POL
				}
				has_completed_focus = GER_danzig_or_war
			}
			modifier = {
				factor = 10
				FROM = {
					original_tag = SOV
				}
				has_completed_focus = GER_war_with_the_ussr
			}
			#modifier = {
			#	factor = 1.5
			#	has_wargoal_against = FROM
			#}
			modifier = {
				factor = 10
				FROM = {
					original_tag = FRA
				}
				OR = {
					divisions_in_state = {
						state = 6
						size > 5
						#type = armor
					}
					divisions_in_state = {
						state = 977
						size > 5
						#type = armor
					}
					divisions_in_state = {
						state = 34
						size > 5
						#type = armor
					}
					divisions_in_state = {
						state = 980
						size > 5
						#type = armor
					}
				}
			}
			modifier = { #Don't Blitzkrieg France unless you can bypass the Maginot
				factor = 0
				FROM = {
					original_tag = FRA
					any_core_state = {
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
						ROOT = {
							divisions_in_state = {
								state = PREV
								size < 1
								#type = armor
							}
						}
					}
					NOT = {
						any_controlled_state = {
							OR = {
								is_core_of = HOL
								is_core_of = BEL
							}
							any_neighbor_state = {
								is_fully_controlled_by = ROOT
							}
						}
					}
				}
				980 = {	state_is_fully_controlled_by_ROOT_subject_or_faction_member = no }
				28 = { state_is_fully_controlled_by_ROOT_subject_or_faction_member = no }
			}
			modifier = { #Save CP and XP for the French offensive
				factor = 0
				FROM = {
					OR = {
						original_tag = HOL
						original_tag = BEL
					}
					is_ai = yes
				}
				has_war_with = FRA
				command_power < 80
				has_army_experience < 40
			}
			modifier = { #Muahahahaha
				factor = 2
				FROM = {
					is_ai = no
				}
			}
			modifier = { #Luxemburg is not worth wasting CP and XP on
				factor = 0
				FROM = {
					original_tag = LUX
					is_ai = yes
				}
			}
			modifier = { #Germany is super aggressive and wastes CP and XP on countries they only have a War Goal on
				factor = 0
				NOT = {
					has_war_with = FROM
				}
			}
			modifier = { #Save CP and XP for the offensive
				factor = 0
				focus_progress = {
				    focus = GER_war_with_the_ussr
				    progress > 0.01
				}
				NOT = {
					has_completed_focus = GER_war_with_the_ussr
				}
				NOT = {
					has_completed_focus = GER_war_with_the_ussr
				}
			}
		}

		allowed = {
			original_tag = GER
		}

		days_remove = 365

		custom_cost_trigger = {
			command_power > 24
			has_army_experience > 14
		}

		custom_cost_text = decision_cost_CP_25_ArmXP_15 

		available = { #Can't be target_root_trigger
			NOT = {	has_country_flag = GER_operational_planning_flag }
			OR = {
				has_war_with = FROM
				has_wargoal_against = FROM
			}
		}

		target_array = ROOT.GER_war_targets_array

		target_trigger = { #TODO_Danne This needs to be refined! 
			FROM = {
				has_war_with = ROOT
				any_controlled_state = {
					is_on_continent = europe
					any_neighbor_state = {
						is_controlled_by_ROOT_or_ally = yes
					}
				}
			}
		}

	#	fire_only_once = yes
		
		complete_effect = {
			hidden_effect = {
				add_command_power = -25
				army_experience = -15
				set_country_flag = GER_operational_planning_flag
			}
			#BLITZKRIEG
			if = {
				limit = {
					has_completed_focus = GER_adopt_new_panzer_doctrine
				}
				if = { #It's easier to make this a separate modifier and using scripted loc to display the effects in the "main" state modifier
					limit = {
						has_completed_focus = GER_panzergrenadier
					}
					hidden_effect= {
						every_state = {
							limit = {
								is_controlled_by = FROM
								is_on_continent = europe
							}
							add_dynamic_modifier = {
								modifier = GER_motor_and_mech_attack_modifier
								scope = GER
								days = 45
							}
						}
					}
				}
				if = { #Add basic Blitzkrieg modifier
					limit = {
						has_completed_focus = GER_adopt_new_panzer_doctrine
						NOT = { has_completed_focus = GER_advanced_panzer_research }
					}
					every_state = {
						limit = {
							is_controlled_by = FROM
							is_on_continent = europe
						}
						add_dynamic_modifier = {
							modifier = GER_blitzkrieg_modifier
							scope = GER
							days = 45
						}
					}
				}
				else_if = { #Add Blitzkrieg Level 2
					limit = {
						has_completed_focus = GER_advanced_panzer_research
						NOT = { has_completed_focus = GER_expand_kummersdorfs_capacity }
					}
					every_state = {
						limit = {
							is_controlled_by = FROM
							is_on_continent = europe
						}
						add_dynamic_modifier = {
							modifier = GER_blitzkrieg_modifier_lvl_2
							scope = GER
							days = 45
						}
					}
				}
				else_if = { #Add Blitzkrieg Level 3
					limit = {
						has_completed_focus = GER_expand_kummersdorfs_capacity
					}
					every_state = {
						limit = {
							is_controlled_by = FROM
							is_on_continent = europe
						}
						add_dynamic_modifier = {
							modifier = GER_blitzkrieg_modifier_lvl_3
							scope = GER
							days = 45
						}
					}
				}
				hidden_effect = { #This removes the GER_operational_planning_flag, enabling Germany to do the decision again. remove_effect won't work if the country in question capitulates
					country_event = { id = wuw_GER_military_events.1 days = 45 } 
				}
			}
			#BEWEGUNGSKRIEG
			else_if = {
				limit = {
					has_completed_focus = GER_the_prussian_legacy
				}
				if = { #It's easier to make this a separate modifier and using scripted loc to display the effects in the "main" state modifier
					limit = {
						has_completed_focus = GER_panzergrenadier
					}
					hidden_effect= {
						every_state = {
							limit = {
								is_controlled_by = FROM
								is_on_continent = europe
							}
							add_dynamic_modifier = {
								modifier = GER_motor_and_mech_attack_modifier
								scope = GER
								days = 90
							}
						}
					}
				}
				if = { #Add basic bewegungskrieg modifier
					limit = {
						has_completed_focus = GER_the_prussian_legacy
						NOT = { has_completed_focus = GER_lessons_of_the_great_war }
					}
					every_state = {
						limit = {
							is_controlled_by = FROM
							is_on_continent = europe
						}
						add_dynamic_modifier = {
							modifier = GER_bewegungskrieg_modifier
							scope = GER
							days = 90
						}
					}
				}
				else_if = { #Add bewegungskrieg Level 2
					limit = {
						has_completed_focus = GER_lessons_of_the_great_war
						NOT = { has_completed_focus = GER_artillery_bombardment }
					}
					every_state = {
						limit = {
							is_controlled_by = FROM
							is_on_continent = europe
						}
						add_dynamic_modifier = {
							modifier = GER_bewegungskrieg_modifier_lvl_2
							scope = GER
							days = 90
						}
					}
				}
				else_if = { #Add bewegungskrieg Level 3
					limit = {
						has_completed_focus = GER_artillery_bombardment
						NOT = { has_completed_focus = GER_stormtroopers }
					}
					every_state = {
						limit = {
							is_controlled_by = FROM
							is_on_continent = europe
						}
						add_dynamic_modifier = {
							modifier = GER_bewegungskrieg_modifier_lvl_3
							scope = GER
							days = 90
						}
					}
				}
				else_if = { #Add bewegungskrieg Level 4
					limit = {
						has_completed_focus = GER_stormtroopers
					}
					every_state = {
						limit = {
							is_controlled_by = FROM
							is_on_continent = europe
						}
						add_dynamic_modifier = {
							modifier = GER_bewegungskrieg_modifier_lvl_4
							scope = GER
							days = 90
						}
					}
				}				
				hidden_effect = { #This removes the GER_operational_planning_flag, enabling Germany to do the decision again. remove_effect won't work if the country in question capitulates
					country_event = { id = wuw_GER_military_events.1 days = 90 } 
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
		}
		remove_effect = {
		}
	}
	GER_operational_planning_africa = {
		icon = GFX_decision_hol_draw_up_staff_plans

		ai_will_do = {
			base = 0 #TODO_DANNE Don't do this for now, concentrate your efforts elsewhere
			#modifier = {
			#	factor = 5
			#	has_war_with = FROM
			#}
			#modifier = {
			#	factor = 2
			#	FROM = {
			#		is_major = yes
			#	}
			#}
		}

		allowed = {
			original_tag = GER
		}

		days_remove = 365

		custom_cost_trigger = {
			command_power > 24
			has_army_experience > 14
		}

		custom_cost_text = decision_cost_CP_25_ArmXP_15

		visible = { has_completed_focus = GER_establish_the_afrikakorps }

		available = { #Can't be target_root_trigger
			NOT = {	has_country_flag = GER_operational_planning_flag }
			OR = {
				has_war_with = FROM
				has_wargoal_against = FROM
			}
			hidden_trigger = {
				has_completed_focus = GER_establish_the_afrikakorps
			}
		}

		target_array = ROOT.GER_war_targets_array

		target_trigger = { #TODO_Danne This needs to be refined! 
			FROM = {
				has_war_with = ROOT
				any_controlled_state = {
					is_on_continent = africa
					any_neighbor_state = {
						is_controlled_by_ROOT_or_ally = yes
					}
				}
			}
		}

		fire_only_once = yes
		
		complete_effect = {
			hidden_effect = {
				add_command_power = -25
				army_experience = -15
				set_country_flag = GER_operational_planning_flag
			}
			if = {
				limit = {
					has_completed_focus = GER_adopt_new_panzer_doctrine
				}
				if = { #It's easier to make this a separate modifier and using scripted loc to display the effects in the "main" state modifier
					limit = {
						has_completed_focus = GER_panzergrenadier
					}
					hidden_effect= {
						every_state = {
							limit = {
								is_controlled_by = FROM
								is_on_continent = africa
							}
							add_dynamic_modifier = {
								modifier = GER_motor_and_mech_attack_modifier
								scope = GER
								days = 45
							}
						}
					}
				}
				if = { #Add basic Blitzkrieg modifier
					limit = {
						has_completed_focus = GER_adopt_new_panzer_doctrine
						NOT = { has_completed_focus = GER_advanced_panzer_research }
					}
					every_state = {
						limit = {
							is_controlled_by = FROM
							is_on_continent = africa
						}
						add_dynamic_modifier = {
							modifier = GER_blitzkrieg_modifier
							scope = GER
							days = 45
						}
					}
				}
				else_if = { #Add Blitzkrieg Level 2
					limit = {
						has_completed_focus = GER_advanced_panzer_research
						NOT = { has_completed_focus = GER_expand_kummersdorfs_capacity }
					}
					every_state = {
						limit = {
							is_controlled_by = FROM
							is_on_continent = africa
						}
						add_dynamic_modifier = {
							modifier = GER_blitzkrieg_modifier_lvl_2
							scope = GER
							days = 45
						}
					}
				}
				else_if = { #Add Blitzkrieg Level 3
					limit = {
						has_completed_focus = GER_expand_kummersdorfs_capacity
					}
					every_state = {
						limit = {
							is_controlled_by = FROM
							is_on_continent = africa
						}
						add_dynamic_modifier = {
							modifier = GER_blitzkrieg_modifier_lvl_3
							scope = GER
							days = 45
						}
					}
				}
				hidden_effect = { #This removes the GER_operational_planning_flag, enabling Germany to do the decision again. remove_effect won't work if the country in question capitulates
					country_event = { id = wuw_GER_military_events.1 days = 45 } 
				}
			}
			#BEWEGUNGSKRIEG
			else_if = {
				limit = {
					has_completed_focus = GER_the_prussian_legacy
				}
				if = { #It's easier to make this a separate modifier and using scripted loc to display the effects in the "main" state modifier
					limit = {
						has_completed_focus = GER_panzergrenadier
					}
					hidden_effect= {
						every_state = {
							limit = {
								is_controlled_by = FROM
								is_on_continent = africa
							}
							add_dynamic_modifier = {
								modifier = GER_motor_and_mech_attack_modifier
								scope = GER
								days = 90
							}
						}
					}
				}
				if = { #Add basic bewegungskrieg modifier
					limit = {
						has_completed_focus = GER_the_prussian_legacy
						NOT = { has_completed_focus = GER_lessons_of_the_great_war }
					}
					every_state = {
						limit = {
							is_controlled_by = FROM
							is_on_continent = africa
						}
						add_dynamic_modifier = {
							modifier = GER_bewegungskrieg_modifier
							scope = GER
							days = 90
						}
					}
				}
				else_if = { #Add bewegungskrieg Level 2
					limit = {
						has_completed_focus = GER_lessons_of_the_great_war
						NOT = { has_completed_focus = GER_artillery_bombardment }
					}
					every_state = {
						limit = {
							is_controlled_by = FROM
							is_on_continent = africa
						}
						add_dynamic_modifier = {
							modifier = GER_bewegungskrieg_modifier_lvl_2
							scope = GER
							days = 90
						}
					}
				}
				else_if = { #Add bewegungskrieg Level 3
					limit = {
						has_completed_focus = GER_artillery_bombardment
						NOT = { has_completed_focus = GER_stormtroopers }
					}
					every_state = {
						limit = {
							is_controlled_by = FROM
							is_on_continent = africa
						}
						add_dynamic_modifier = {
							modifier = GER_bewegungskrieg_modifier_lvl_3
							scope = GER
							days = 90
						}
					}
				}
				else_if = { #Add bewegungskrieg Level 4
					limit = {
						has_completed_focus = GER_stormtroopers
					}
					every_state = {
						limit = {
							is_controlled_by = FROM
							is_on_continent = africa
						}
						add_dynamic_modifier = {
							modifier = GER_bewegungskrieg_modifier_lvl_4
							scope = GER
							days = 90
						}
					}
				}				
				hidden_effect = { #This removes the GER_operational_planning_flag, enabling Germany to do the decision again. remove_effect won't work if the country in question capitulates
					country_event = { id = wuw_GER_military_events.1 days = 90 } 
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
		}
		remove_effect = {
		}
	}
}

GER_price_controls_cat = {
	GER_guns_before_butter = {

		icon = GFX_decision_ger_military_buildup

		ai_will_do = {
			base = 5
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.2 }
			}
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.3 }
			}
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.4 }
			}
			modifier = {
				factor = 0
				check_variable = { GER_industrial_consumer_goods_factor < 0.1 }
			}
		}

		available = {
		}

		visible = { #This decision is not available for the 1939 Start
			NOT = { has_country_flag = GER_inactivate_price_control_measures_flag }
		}

		cost = 30

		fire_only_once = yes

		complete_effect = {
			GER_modify_industrial_modifier = yes
			add_to_variable = { 
				GER_industrial_consumer_goods_factor = -0.05
				tooltip = consumer_goods_factor_tt
			}
			GER_reduce_mefo_bills_penalty = yes
			add_war_support = 0.025
		}
	}

	GER_arbeit_und_brot = {

		icon = GFX_decision_generic_political_address

		ai_will_do = {
			base = 5
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.2 }
			}
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.3 }
			}
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.4 }
			}
			modifier = {
				factor = 0
				check_variable = { GER_industrial_consumer_goods_factor < 0.1 }
			}
		}

		available = {
		}

		visible = { #This decision is not available for the 1939 Start
			NOT = { has_country_flag = GER_inactivate_price_control_measures_flag }
		}

		cost = 30

		fire_only_once = yes

		complete_effect = {
			GER_modify_industrial_modifier = yes
			add_to_variable = { 
				GER_industrial_consumer_goods_factor = -0.05
				tooltip = consumer_goods_factor_tt
			}
			GER_reduce_mefo_bills_penalty = yes
			add_popularity = { ideology = ROOT popularity = 0.025 }
		}
	}
	GER_collect_scrap_metal = {

		icon = GFX_decision_steel

		ai_will_do = {
			base = 5
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.2 }
			}
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.3 }
			}
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.4 }
			}
			modifier = {
				factor = 0
				check_variable = { GER_industrial_consumer_goods_factor < 0.1 }
			}
		}

		available = {
		}

		visible = { #This decision is not available for the 1939 Start
			NOT = { has_country_flag = GER_inactivate_price_control_measures_flag }
		}

		cost = 30

		fire_only_once = yes

		complete_effect = {
			GER_modify_industrial_modifier = yes
			add_to_variable = { 
				GER_industrial_consumer_goods_factor = -0.05
				tooltip = consumer_goods_factor_tt
			}
			GER_reduce_mefo_bills_penalty = yes
			add_timed_idea = {
				idea = GER_collect_scrap_metal_ns
				days = 90
			}
		}
	}
	GER_ersatz_material = {

		icon = GFX_decision_generic_consumer_goods

		ai_will_do = {
			base = 5
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.2 }
			}
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.3 }
			}
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.4 }
			}
			modifier = {
				factor = 0
				check_variable = { GER_industrial_consumer_goods_factor < 0.1 }
			}
		}

		available = {
			has_completed_focus = GER_coal_liquefaction
		}

		visible = { #This decision is not available for the 1939 Start
			NOT = { has_country_flag = GER_inactivate_price_control_measures_flag }
		}

		cost = 30

		fire_only_once = yes

		complete_effect = {
			GER_modify_industrial_modifier = yes
			add_to_variable = { 
				GER_industrial_consumer_goods_factor = -0.05
				tooltip = consumer_goods_factor_tt
			}
			GER_reduce_mefo_bills_penalty = yes
		}
	}
	GER_import_tariffs = {

		icon = GFX_decision_eng_trade_unions_demand

		ai_will_do = {
			base = 2.5
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.2 }
			}
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.3 }
			}
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.4 }
			}
			modifier = {
				factor = 0
				check_variable = { GER_industrial_consumer_goods_factor < 0.1 }
			}
		}

		available = {
		}

		visible = { #This decision is not available for the 1939 Start
			NOT = { has_country_flag = GER_inactivate_price_control_measures_flag }
		}

		cost = 15

		fire_only_once = yes

		complete_effect = {
			GER_modify_industrial_modifier = yes
			add_to_variable = { 
				GER_industrial_consumer_goods_factor = -0.15
				tooltip = consumer_goods_factor_tt
			}
			GER_reduce_mefo_bills_penalty = yes
			add_timed_idea = {
				idea = GER_import_tariffs_ns
				days = 365
			}
		}
	}
	GER_implement_rations = {

		icon = GFX_decision_eng_trade_unions_support

		ai_will_do = {
			base = 2.5
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.2 }
			}
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.3 }
			}
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.4 }
			}
			modifier = {
				factor = 0
				check_variable = { GER_industrial_consumer_goods_factor < 0.1 }
			}
		}

		available = {
			has_stability > 0.2
		}

		visible = { #This decision is not available for the 1939 Start
			NOT = { has_country_flag = GER_inactivate_price_control_measures_flag }
		}

		cost = 15

		fire_only_once = yes

		complete_effect = {
			GER_modify_industrial_modifier = yes
			add_to_variable = { 
				GER_industrial_consumer_goods_factor = -0.1
				tooltip = consumer_goods_factor_tt
			}
			GER_reduce_mefo_bills_penalty = yes
			add_stability = -0.025
		}
	}
	GER_implement_wage_controls = {

		icon = GFX_decision_hol_attract_foreign_investors

		ai_will_do = {
			base = 2.5
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.2 }
			}
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.3 }
			}
			modifier = {
				factor = 2
				check_variable = { GER_industrial_consumer_goods_factor > 0.4 }
			}
			modifier = {
				factor = 0
				check_variable = { GER_industrial_consumer_goods_factor < 0.1 }
			}
		}

		available = {
			has_stability > 0.2
		}

		visible = { #This decision is not available for the 1939 Start
			NOT = { has_country_flag = GER_inactivate_price_control_measures_flag }
		}

		cost = 15

		fire_only_once = yes

		complete_effect = {
			GER_modify_industrial_modifier = yes
			add_to_variable = { 
				GER_industrial_consumer_goods_factor = -0.1
				tooltip = consumer_goods_factor_tt
			}
			GER_reduce_mefo_bills_penalty = yes
			add_stability = -0.025
		}
	}
	GER_exploit_the_gombos_treaty = {

		icon = GFX_decision_generic_fundraising

		ai_will_do = {
			base = 1
			modifier = {
				factor = 1.2
				check_variable = { GER_industrial_consumer_goods_factor > 0.3 }
			}
			modifier = {
				factor = 1.3
				check_variable = { GER_industrial_consumer_goods_factor > 0.5 }
			}
			modifier = {
				factor = 1.5
				check_variable = { GER_industrial_consumer_goods_factor > 0.7 }
			}
			modifier = {
				factor = 0
				check_variable = { GER_industrial_consumer_goods_factor < 0.1 }
			}
			modifier = {
				factor = 0
				is_historical_focus_on = yes 
				has_government = fascism
			}
		}

		visible = {
			has_dlc = "Gotterdammerung"
			NOT = {
				OR = {
					is_in_faction_with = HUN
					has_guaranteed = HUN
				}
			}
			HUN = {
				exists = yes
				has_capitulated = no
			}
		}

		available = {
			HUN = {
				has_idea = HUN_gombos_trade_treaty
				NOT = {
					is_in_faction_with = ROOT
				}
			}
		}

		cost = 30

		fire_only_once = yes

		complete_effect = {
			GER_modify_industrial_modifier = yes
			add_to_variable = { 
				GER_industrial_consumer_goods_factor = -0.15
				tooltip = consumer_goods_factor_tt
			}
			custom_effect_tooltip = GER_exploit_the_gombos_treaty_tt
			GER_reduce_mefo_bills_penalty = yes
			custom_effect_tooltip = generic_skip_one_line_tt

			HUN = {
				country_event = {
					id = wuw_GER_diplomacy.56
					hours = 2
				}	
			}
			effect_tooltip = {
				HUN = {
					add_opinion_modifier = {
						target = ROOT
						modifier = GER_stole_our_money_opm
					}	
					remove_ideas = HUN_gombos_trade_treaty
				}
			}
		}
	}
}

GER_fortify_the_vaterland_cat = {
	GER_construct_the_westwall = {
		icon = GFX_decision_generic_fortification
		ai_will_do = {
			base = 10
			modifier = {
				factor = 3
				OR = {
					has_war_with = HOL
					has_war_with = BEL
					has_war_with = LUX
					has_war_with = FRA
					has_war_with = ENG
				}
			}
			modifier = {
				factor = 2
				OR = {
					has_wargoal_against = HOL
					has_wargoal_against = BEL
					has_wargoal_against = LUX
					has_wargoal_against = FRA
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}

		visible = {
			NOT = {
				has_country_flag = GER_constructed_the_westwall
			}
		}

		available = {
			51 = { #Rineland
				is_fully_controlled_by = ROOT
				is_demilitarized_zone = no
			}
			42 = { #Moselland
				is_fully_controlled_by = ROOT
				is_demilitarized_zone = no
			}
			978 = { #Baden
				is_fully_controlled_by = ROOT
				is_demilitarized_zone = no
			}
			NOT = { has_country_flag = GER_constructing_forts_flag }
		}

		days_remove = 90

		fire_only_once = yes

		ai_hint_pp_cost = 15
		custom_cost_trigger = {
			command_power > GER_fort_construction_cp_cost
			has_political_power > GER_fort_construction_pp_cost
		}
		custom_cost_text = decision_cost_CP_25_pp_15

		modifier = {
			civilian_factory_use = 2
		}

		cancel_trigger = {
			NOT = { 
				has_full_control_of_state = 51 #Rineland
				has_full_control_of_state = 42 #Moselland
				has_full_control_of_state = 978 #Baden
			}
		}

		cancel_effect = {
			clr_country_flag = GER_constructing_forts_flag
		}

		complete_effect = {
			set_country_flag = GER_constructing_forts_flag

			hidden_effect = {
				add_command_power = GER_fort_construction_cp_payment
				add_political_power = GER_fort_construction_pp_payment
			}
		}

		remove_effect = {
			clr_country_flag = GER_constructing_forts_flag

			custom_effect_tooltip = GER_construct_westwall_tt
			hidden_effect = {
				if = {
					limit = {
						51 = { #Rhineland
							any_province_building_level = {
								province = {
									id = 3444
									id = 9522
									id = 3547
								}
								building = bunker
								level < 4 
							}
						}

					}
					51 = { #Rhineland
						add_building_construction = {
							type = bunker
							level = 2
							province = {
								id = 3444
								id = 9522
								id = 3547
							}
							instant_build = yes
						}
					}
				}
				if = {
					limit = {
						42 = { #Moselland
							any_province_building_level = {
								province = {
									id = 11470
									id = 11435
									id = 9575
									id = 11531
									id = 563
									id = 3558
								}
								building = bunker
								level < 4 
							}
						}

					}
					42 = { #Moselland
						add_building_construction = {
							type = bunker
							level = 2
							province = {
								id = 11470
								id = 11435
								id = 9575
								id = 11531
								id = 563
								id = 3558
							}
							instant_build = yes
						}
					}
				}
				if = {
					limit = {
						978 = { #Baden
							any_province_building_level = {
								province = {
									id = 3530
									id = 6568
									id = 6542
									id = 6712
									id = 11640
								}
								building = bunker
								level < 4
							}
						}

					}
					978 = { #Baden
						add_building_construction = {
							type = bunker
							level = 2
							province = {
								id = 3530
								id = 6542
								id = 6712
								id = 11640
							}
							instant_build = yes
						}
					}
				}
			}
			hidden_effect = {
				set_country_flag = GER_constructed_the_westwall
			}
		}
	}

	GER_construct_the_ostwall = {
		icon = GFX_decision_generic_fortification
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				has_war_with = SOV
				195 = { state_is_fully_controlled_by_ROOT_subject_or_faction_member = no } #Leningrad
				219 = { state_is_fully_controlled_by_ROOT_subject_or_faction_member = no } #Moskow
				217 = { state_is_fully_controlled_by_ROOT_subject_or_faction_member = no } #Stalingrad
				date > "1943.1.1"
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}

		visible = {
		}

		available = { 
			custom_trigger_tooltip = {
				tooltip = GER_controls_dnieper_rive_tt
				813 = { #Virumaa
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				209 = { #Pskov
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				210 = { #Nevel
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				207 = { #Vitebsk
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				206 = { #Minsk
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				204 = { #Bobruysk
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				194 = { #Mozyr
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				202 = { #Kyiv
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				203 = { #Cherkasy
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				226 = { #Dnipropetrovsk
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				200 = { #Zaporozhe
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
			}
			NOT = { has_country_flag = GER_constructing_forts_flag }
		}

		days_remove = 180

		fire_only_once = yes

		ai_hint_pp_cost = 15
		custom_cost_trigger = {
			command_power > GER_fort_construction_cp_cost
			has_political_power > GER_fort_construction_pp_cost
		}
		custom_cost_text = decision_cost_CP_25_pp_15

		modifier = {
			civilian_factory_use = 5
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = GER_not_controls_dnieper_rive_tt
				OR = {
					813 = { #Virumaa
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					209 = { #Pskov
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					210 = { #Nevel
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					207 = { #Vitebsk
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					206 = { #Minsk
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					204 = { #Bobruysk
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					194 = { #Mozyr
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					202 = { #Kyiv
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					203 = { #Cherkasy
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					226 = { #Dnipropetrovsk
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					200 = { #Zaporozhe
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
				}
			}
		}

		cancel_effect = {
			clr_country_flag = GER_constructing_forts_flag
		}

		complete_effect = {
			set_country_flag = GER_constructing_forts_flag

			hidden_effect = {
				add_command_power = GER_fort_construction_cp_payment
				add_political_power = GER_fort_construction_pp_payment
			}
		}

		remove_effect = {
			clr_country_flag = GER_constructing_forts_flag

			custom_effect_tooltip = GER_construct_ostwall_tt
			effect_tooltip = {	
				every_state = {
					limit = { 
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
						bunker < 10
						OR = { #From the Baltic to Azov
							state = 813 #Virumaa
							state = 209 #Pskov
							state = 210 #Nevel
							state = 207 #Vitebsk
							state = 206 #Minsk
							state = 204 #Bobruysk
							state = 194 #Mozyr
							state = 202 #Kyiv
							state = 203 #Cherkasy
							state = 226 #Dnipropetrovsk
							state = 200 #Zaporozhe
						}
					}
					add_building_construction = {
						type = bunker
						level = 1
						instant_build = yes
						province = {
							all_provinces = yes
					    }
					}
				}
			}
			if = {
				limit = { 
					813 = {
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
				}
				hidden_effect = {
					813 = {
						add_building_construction = {
							type = bunker
							level = 2
							province = 4640
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					209 = {
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
				}
				hidden_effect = {
					209 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 415
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 3310
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					210 = {
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
				}
				hidden_effect = {
					210 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 3333
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 11259
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 9386
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					207 = {
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
				}
				hidden_effect = {
					207 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 323
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 2
							province = 11241
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 11220
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 3331
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					206 = {
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
				}
				hidden_effect = {
					206 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 9289
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 3378
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					204 = {
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
				}
				hidden_effect = {
					204 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 6373
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					194 = {
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
				}
				hidden_effect = {
					194 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 6319
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 9249
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 3507
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					202 = {
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
				}
				hidden_effect = {
					202 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 9568
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 3543
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 3
							province = 525
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 3494
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					203 = {
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
				}
				hidden_effect = {
					203 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 11454
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 488
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 3468
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 6478
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					226 = {
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
				}
				hidden_effect = {
					226 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 9433
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 2
							province = 11437
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					200 = {
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
				}
				hidden_effect = {
					200 = {
						add_building_construction = {
							type = bunker
							level = 2
							province = 11405
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 6596
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 11700
							instant_build = yes
						}
					}
				}
			}
		}
	}
	GER_construct_the_north_atlantikwall = {
		icon = GFX_decision_generic_coastal_fortification
		ai_will_do = {
			base = 10
			modifier = {
				factor = 3
				OR = {
					has_war_with = ENG
					has_war_with = USA
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
			modifier = { #Save CP for the offensive
				factor = 0
				focus_progress = {
				    focus = GER_war_with_the_ussr
				    progress > 0.01
				}
				NOT = {
					has_completed_focus = GER_war_with_the_ussr
				}
			}
		}

		visible = {
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = GER_controls_norway_tt
				925 = { #Finnmark
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				924 = { #Troms
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				144 = { #Nordland
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				923 = { #Helgeland
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				143 = { #Trondelag
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				142 = { #Vestlandet
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				922 = { #Agder
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				921 = { #Telemark
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				110 = { #Oslo
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
			}
			NOT = { has_country_flag = GER_constructing_forts_flag }
		}

		days_remove = 90

		fire_only_once = yes

		ai_hint_pp_cost = 15
		custom_cost_trigger = {
			command_power > GER_fort_construction_cp_cost
			has_political_power > GER_fort_construction_pp_cost
		}
		custom_cost_text = decision_cost_CP_25_pp_15

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = GER_not_controls_norway_tt
				OR = {
					925 = { #Finnmark
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					924 = { #Troms
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					144 = { #Nordland
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					923 = { #Helgeland
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					143 = { #Trondelag
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					142 = { #Vestlandet
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					922 = { #Agder
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					921 = { #Telemark
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					110 = { #Oslo
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
				}
			}
		}

		cancel_effect = {
			clr_country_flag = GER_constructing_forts_flag
		}

		complete_effect = {
			set_country_flag = GER_constructing_forts_flag

			hidden_effect = {
				add_command_power = GER_fort_construction_cp_payment
				add_political_power = GER_fort_construction_pp_payment
			}
		}

		remove_effect = {
			clr_country_flag = GER_constructing_forts_flag

			custom_effect_tooltip = GER_construct_north_atlantikwall_tt
			every_state = {
				limit = { 
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					OR = { #From Finnmark to Västergötland
						state = 925
						state = 924
						state = 144
						state = 923
						state = 143
						state = 142
						state = 922
						state = 921
						state = 110
						state = 915
						state = 140
					}
					coastal_bunker < 10
					is_coastal = yes 
				}
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes
					province = {
						all_provinces = yes
				    }
				}
			}
			every_state = {
				limit = { 
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					OR = { #From Finnmark to Västergötland
						state = 925
						state = 924
						state = 144
						state = 923
						state = 143
						state = 142
						state = 922
						state = 921
						state = 110
						state = 915
						state = 140
					}
					coastal_bunker < 10
					is_coastal = yes 
					naval_base > 1
				}
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes
					province = {
						all_provinces = yes
				    }
				}
			}
		}
	}
	GER_construct_the_central_atlantikwall = {
		icon = GFX_decision_generic_coastal_fortification
		ai_will_do = {
			base = 10
			modifier = {
				factor = 3
				OR = {
					has_war_with = ENG
					has_war_with = USA
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
			modifier = { #Save CP for the offensive
				factor = 0
				focus_progress = {
				    focus = GER_war_with_the_ussr
				    progress > 0.01
				}
				NOT = {
					has_completed_focus = GER_war_with_the_ussr
				}
			}
		}

		visible = {
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = GER_controls_atlantic_coast_jylland_vlaanderen_tt
				99 = { #Jylland
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				912 = { #Sonderjylland
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				909 = { #Schleswig
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				58 = { #Holstein
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				59 = { #Hannover
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				56 = { #Weser-Ems
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				36 = { #Friesland
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				7 = { #Holland
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				35 = { #Brabant
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				6 = { #Vlaanderen
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				977 = { #Antwerpen
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
			}
			NOT = { has_country_flag = GER_constructing_forts_flag }
		}

		days_remove = 90

		fire_only_once = yes

		ai_hint_pp_cost = 15
		custom_cost_trigger = {
			command_power > GER_fort_construction_cp_cost
			has_political_power > GER_fort_construction_pp_cost
		}
		custom_cost_text = decision_cost_CP_25_pp_15

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = GER_not_controls_atlantic_coast_jylland_vlaanderen_tt
				OR = {
					99 = { #Jylland
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					912 = { #Sonderjylland
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					909 = { #Schleswig
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					58 = { #Holstein
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					59 = { #Hannover
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					56 = { #Weser-Ems
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					36 = { #Friesland
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					7 = { #Holland
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					35 = { #Brabant
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					6 = { #Vlaanderen
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					977 = { #Antwerpen
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
				}
			}
		}

		cancel_effect = {
			clr_country_flag = GER_constructing_forts_flag
		}

		complete_effect = {
			set_country_flag = GER_constructing_forts_flag

			hidden_effect = {
				add_command_power = GER_fort_construction_cp_payment
				add_political_power = GER_fort_construction_pp_payment
			}
		}

		remove_effect = {
			clr_country_flag = GER_constructing_forts_flag

			custom_effect_tooltip = GER_construct_central_atlantikwall_tt
			every_state = {
				limit = { 
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					OR = { #From Jylland to Vlaanderen
						state = 99
						state = 912
						state = 909
						state = 58 
						state = 59
						state = 56
						state = 36
						state = 7
						state = 35
						state = 6
						state = 977
					}
					coastal_bunker < 10
					is_coastal = yes 
				}
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes
					province = {
						all_provinces = yes
				    }
				}
			}
			every_state = {
				limit = { 
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					OR = { #From Jylland to Vlaanderen
						state = 99
						state = 912
						state = 909
						state = 58 
						state = 59
						state = 56
						state = 36
						state = 7
						state = 35
						state = 6
						state = 977
					}
					coastal_bunker < 10
					is_coastal = yes 
					naval_base > 1
				}
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes
					province = {
						all_provinces = yes
				    }
				}
			}
		}
	}
	GER_construct_the_west_atlantikwall = {
		icon = GFX_decision_generic_coastal_fortification
		ai_will_do = {
			base = 10
			modifier = {
				factor = 3
				OR = {
					has_war_with = ENG
					has_war_with = USA
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
			modifier = { #Save CP for the offensive
				factor = 0
				focus_progress = {
				    focus = GER_war_with_the_ussr
				    progress > 0.01
				}
				NOT = {
					has_completed_focus = GER_war_with_the_ussr
				}
			}
		}

		visible = {
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = GER_controls_french_coast_tt
				29 = { #Nord-Pas-de_calais
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				785 = { #Picardy
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				15 = { #Normandy
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				14 = { #Brittany
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				30 = { #Loire
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				23 = { #Poitou
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				19 = { #Aquitaine
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				806 = { #Pyrenees-Atlantique
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
			}
			NOT = { has_country_flag = GER_constructing_forts_flag }
		}

		days_remove = 90

		fire_only_once = yes

		ai_hint_pp_cost = 15
		custom_cost_trigger = {
			command_power > GER_fort_construction_cp_cost
			has_political_power > GER_fort_construction_pp_cost
		}
		custom_cost_text = decision_cost_CP_25_pp_15

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = GER_not_controls_french_coast_tt
				OR = {
					29 = { #Nord-Pas-de_calais
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					785 = { #Picardy
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					15 = { #Normandy
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					14 = { #Brittany
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					30 = { #Loire
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					23 = { #Poitou
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					19 = { #Aquitaine
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					806 = { #Pyrenees-Atlantique
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
				}
			}
		}

		cancel_effect = {
			clr_country_flag = GER_constructing_forts_flag
		}

		complete_effect = {
			set_country_flag = GER_constructing_forts_flag

			hidden_effect = {
				add_command_power = GER_fort_construction_cp_payment
				add_political_power = GER_fort_construction_pp_payment
			}
		}

		remove_effect = {
			clr_country_flag = GER_constructing_forts_flag

			custom_effect_tooltip = GER_construct_west_atlantikwall_tt
			every_state = {
				limit = { 
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					OR = { #From ord-Pas-de_calais to Pyrenees-Atlantique
						state = 29
						state = 785
						state = 15
						state = 14
						state = 30
						state = 23
						state = 19
						state = 806
					}
					coastal_bunker < 10
					is_coastal = yes 
				}
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes
					province = {
						all_provinces = yes
				    }
				}
			}
			every_state = {
				limit = { 
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					OR = { #From ord-Pas-de_calais to Pyrenees-Atlantique
						state = 29
						state = 785
						state = 15
						state = 14
						state = 30
						state = 23
						state = 19
						state = 806
					}
					coastal_bunker < 10
					is_coastal = yes 
					naval_base > 1
				}
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes
					province = {
						all_provinces = yes
				    }
				}
			}
		}
	}
	GER_construct_the_south_atlantikwall = {
		icon = GFX_decision_generic_coastal_fortification
		ai_will_do = {
			base = 10
			modifier = {
				factor = 3
				OR = {
					has_war_with = ENG
					has_war_with = USA
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
			modifier = { #Save CP for the offensive
				factor = 0
				focus_progress = {
				    focus = GER_war_with_the_ussr
				    progress > 0.01
				}
				NOT = {
					has_completed_focus = GER_war_with_the_ussr
				}
			}
		}

		visible = { #It's a secret to everybody!
			OR = {
				792 = { #Pais Vasco
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				790 = { #Asturias
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				171 = { #Galicia
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				180 = { #Porto
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				112 = { #Lisbon
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				179 = { #Beja
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				169 = { #Sevilla
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = GER_controls_iberian_coast_tt
				792 = { #Pais Vasco
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				790 = { #Asturias
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				171 = { #Galicia
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				180 = { #Porto
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				112 = { #Lisbon
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				179 = { #Beja
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				169 = { #Sevilla
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
			}
			NOT = { has_country_flag = GER_constructing_forts_flag }
		}

		days_remove = 90

		fire_only_once = yes

		ai_hint_pp_cost = 15
		custom_cost_trigger = {
			command_power > GER_fort_construction_cp_cost
			has_political_power > GER_fort_construction_pp_cost
		}
		custom_cost_text = decision_cost_CP_25_pp_15

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = GER_not_controls_iberian_coast_tt
				OR = {
					792 = { #Pais Vasco
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
					790 = { #Asturias
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
					171 = { #Galicia
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
					180 = { #Porto
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
					112 = { #Lisbon
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
					179 = { #Beja
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
					169 = { #Sevilla
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					}
				}
			}
		}

		cancel_effect = {
			clr_country_flag = GER_constructing_forts_flag
		}

		complete_effect = {
			set_country_flag = GER_constructing_forts_flag

			hidden_effect = {
				add_command_power = GER_fort_construction_cp_payment
				add_political_power = GER_fort_construction_pp_payment
			}
		}

		remove_effect = {
			clr_country_flag = GER_constructing_forts_flag

			custom_effect_tooltip = GER_construct_south_atlantikwall_tt
			every_state = {
				limit = { 
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					OR = { #From Pais Vasco to Sevilla
						state = 792
						state = 790
						state = 171
						state = 180
						state = 112
						state = 179
						state = 169
					}
					coastal_bunker < 10
					is_coastal = yes 
				}
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes
					province = {
						all_provinces = yes
				    }
				}
			}
			every_state = {
				limit = { 
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
					OR = { #From Pais Vasco to Sevilla
						state = 792
						state = 790
						state = 171
						state = 180
						state = 112
						state = 179
						state = 169
					}
					coastal_bunker < 10
					is_coastal = yes 
					naval_base > 1
				}
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes
					province = {
						all_provinces = yes
				    }
				}
			}
		}
	}
	GER_construct_the_alpenwall = {
		icon = GFX_decision_generic_mountain_fortification
		ai_will_do = {
			base = 10
			modifier = {
				factor = 2
				has_wargoal_against = ITA
			}
			modifier = {
				factor = 3
				any_enemy_country = {
					OR = {
						controls_state = 158 #Piemonte
						controls_state = 159 #Lombardia
						controls_state = 39 #Alto Adige
						controls_state = 160 #Veneto
						controls_state = 161 #Emilia Romagna
					}

				}
			}
		}

		visible = {
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = GER_controls_the_alps_tt
				845 = { #Jura Mountains
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				847 = { #Western Swiss Alps
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				151 = { #Eastern Swiss Alps
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				153 = { #Tirol
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
				976 = { #Steiremark
					state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
				}
			}
			NOT = { has_country_flag = GER_constructing_forts_flag }
		}

		days_remove = 90

		fire_only_once = yes

		ai_hint_pp_cost = 15
		custom_cost_trigger = {
			command_power > GER_fort_construction_cp_cost
			has_political_power > GER_fort_construction_pp_cost
		}
		custom_cost_text = decision_cost_CP_25_pp_15

		modifier = {
			civilian_factory_use = 4
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = GER_not_controls_the_alps_tt
				OR = {
					845 = { #Jura Mountains
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					847 = { #Western Swiss Alps
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					151 = { #Eastern Swiss Alps
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					153 = { #Tirol
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
					976 = { #Steiremark
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = no
					}
				}
			}
		}

		cancel_effect = {
			clr_country_flag = GER_constructing_forts_flag
		}

		complete_effect = {
			set_country_flag = GER_constructing_forts_flag

			hidden_effect = {
				add_command_power = GER_fort_construction_cp_payment
				add_political_power = GER_fort_construction_pp_payment
			}
		}

		remove_effect = {
			clr_country_flag = GER_constructing_forts_flag

			custom_effect_tooltip = GER_construct_alpenwall_tt
			effect_tooltip = {	
				every_state = {
					limit = { 
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
						bunker < 10
						OR = {
							state = 845 #Jura Mountains
							state = 847 #Western Swiss Alps
							state = 151 #Eastern Swiss Alps
							state = 153 #Tirol
							state = 976 #Steiremark
						}
					}
					add_building_construction = {
						type = bunker
						level = 1
						instant_build = yes
						province = {
							all_provinces = yes
					    }
					}
				}
			}
			if = {
				limit = { 
					845 = {
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
						bunker < 10
					}
				}
				hidden_effect = {
					845 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 9638
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 6683
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 9622
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 6666
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 4640
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					847 = {
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
						bunker < 10
					}
				}
				hidden_effect = {
					847 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 636
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					151 = {
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
						bunker < 10
					}
				}
				hidden_effect = {
					151 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 658
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					153 = {
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
						bunker < 10
					}
				}
				hidden_effect = {
					153 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 11618
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 671
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 6673
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					976 = {
						state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes
						bunker < 10
					}
				}
				hidden_effect = {
					976 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 11612
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 653
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 9646
							instant_build = yes
						}
					}
				}
			}
		}
	}
}

GER_hilfskreuzer_cat = {
	GER_refit_convoys_to_cruisers = {
		icon = GFX_decision_generic_merge_plant_ship

		ai_will_do = {
			base = 10
			modifier = {
				factor = 1.5
				has_equipment = {
	   				convoy > 200
		  		}
			}
			modifier = {
				factor = 2
				has_equipment = {
	   				convoy > 300
		  		}
			}
			modifier = {
				factor = 2
				has_equipment = {
	   				convoy > 500
		  		}
			}
		}

		cost = 25

		custom_cost_text = decision_cost_20_convoy_10_NavXP

		custom_cost_trigger = {
			has_navy_experience > 9
			has_equipment = {
				convoy > 19
			}
		}

		fire_only_once = no
		available = {	
			has_equipment = {
   				convoy > 19
	  		}
		}
		days_remove = 25

		complete_effect = {
			#add_equipment_to_stockpile = { 
			#	type = convoy_1
			#	amount = -20 
			#}
		}
		remove_effect = {
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				if = {
					limit = {
						NOT = { has_country_flag = GER_create_merchant_raider_variant }
					}
					set_country_flag = GER_create_merchant_raider_variant
					create_equipment_variant = {
						name = "Hilfskreuzer"				
						type = ship_hull_cruiser_1
						name_group = GER_MR_HISTORICAL #Merchant Raider names
						parent_version = 0
						modules = {
							fixed_ship_battery_slot = ship_light_battery_2
							fixed_ship_anti_air_slot = empty
							fixed_ship_fire_control_system_slot = ship_fire_control_system_0
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = cruiser_ship_engine_1
							fixed_ship_armor_slot = ship_armor_cruiser_1
							fixed_ship_secondaries_slot = dp_ship_secondaries_1
							mid_1_custom_slot = ship_torpedo_1
							mid_2_custom_slot = empty
							rear_1_custom_slot = ship_light_battery_1
						}
						obsolete = yes
					}
				}
				create_ship = {
					type = ship_hull_cruiser_1
					equipment_variant = "Hilfskreuzer"
					creator = ROOT
				}
			}
			else = {
				if = {
					limit = {
						NOT = { has_country_flag = GER_create_merchant_raider_variant }
					}
					set_country_flag = GER_create_merchant_raider_variant
					create_equipment_variant = {
						name = "Hilfskreuzer"
						type = light_cruiser_1
						upgrades = {
							ship_reliability_upgrade = 0
							ship_engine_upgrade = 0
							ship_gun_upgrade = 0
							ship_anti_air_upgrade = 0
						}
						obsolete = yes
					}
				}
				create_ship = {
					type = light_cruiser_1
					equipment_variant = "Hilfskreuzer"
					creator = ROOT
				}
			}
		}
	}
}

operations = {

	GER_barbarossa_mission = {

		icon = generic_operation

		allowed = {
			always = no
			#added through on_action
		}

		available = {
			
			219 = {	#MOSCOW
				OR = {
					is_controlled_by_ROOT_or_ally = yes
					controller = {
						original_tag = FIN
						has_completed_focus = FIN_cooperation_with_germany
					}
				}
			}

			195 = {	#LENINGRAD
				OR = {
					is_controlled_by_ROOT_or_ally = yes
					controller = {
						original_tag = FIN
						has_completed_focus = FIN_cooperation_with_germany
					}
				}
			}

			202 = {	#KIEV
				OR = {
					is_controlled_by_ROOT_or_ally = yes
					controller = {
						original_tag = FIN
						has_completed_focus = FIN_cooperation_with_germany
					}
				}
			}

			217 = {	#STALINGRAD
				OR = {
					is_controlled_by_ROOT_or_ally = yes
					controller = {
						original_tag = FIN
						has_completed_focus = FIN_cooperation_with_germany
					}
				}
			}
		}

		days_mission_timeout = 180
		fire_only_once = yes

		activation = {

		}

		is_good = no

		complete_effect = {
			add_war_support = 0.1
			custom_effect_tooltip = barbarossa_mission_tt
		}

		timeout_effect = {

		}

		ai_will_do = {
			factor = 1
		}
	}
}

GER_case_anton_category = {

	GER_case_anton = {

		icon = generic_operation

		available = {
			original_tag = GER
			has_war = yes
			has_government = fascism
			any_country_with_original_tag = {
				original_tag_to_check = FRA
				has_government = fascism
				OR = {
					is_subject_of = GER
					has_focus_tree = vichy_french_focus
				}
				NOT = { has_war_with = GER }
				NOT = { has_country_flag = case_anton }
				custom_trigger_tooltip = {
					tooltip = GER_case_anton_tt2
					count_triggers = {
						amount = 3 # lost control of ca half french north africa
						458 = { CONTROLLER = { has_war_with = ROOT } }
						459 = { CONTROLLER = { has_war_with = ROOT } }
						460 = { CONTROLLER = { has_war_with = ROOT } }
						461 = { CONTROLLER = { has_war_with = ROOT } }
						462 = { CONTROLLER = { has_war_with = ROOT } }
						513 = { CONTROLLER = { has_war_with = ROOT } }
						665 = { CONTROLLER = { has_war_with = ROOT } }
					}
				}
			}
			divisions_in_state = { state = 31 size < 1 }
			divisions_in_state = { state = 25 size < 1 }
			divisions_in_state = { state = 22 size < 1 }
			divisions_in_state = { state = 21 size < 1 }
			divisions_in_state = { state = 851 size < 1 }
			divisions_in_state = { state = 32 size < 1 }
			divisions_in_state = { state = 22 size < 1 }
			divisions_in_state = { state = 26 size < 1 }
			divisions_in_state = { state = 33 size < 1 }
			divisions_in_state = { state = 20 size < 1 }
			OR = {
				ITA = { owns_state = 735 }
				divisions_in_state = { state = 735 size < 1 }
			}
		}

		cost = 50
		fire_only_once = yes

		visible = {
			original_tag = GER
			has_government = fascism
			any_country_with_original_tag = {
				original_tag_to_check = FRA
				has_government = fascism
				OR = {
					is_subject_of = GER
					has_focus_tree = vichy_french_focus
				}
				NOT = { has_war_with = GER }
			}
		}
		ai_will_do = {
			factor = 25

			modifier = {
				factor = 0
				VIC = { is_ai = no }
			}
		}
		complete_effect = {
			custom_effect_tooltip = GER_case_anton_tt
			hidden_effect = {
				random_other_country = {
					limit = {
						original_tag = FRA
						has_government = fascism
						OR = {
							is_subject_of = GER
							has_focus_tree = vichy_french_focus
						}
					}
					set_country_flag = case_anton
					activate_mission = FRA_case_anton_mission
				}
			}
		}
	}
}

# REICHSKOMMISARIATS 
GER_reichskommissariats = {

	GER_reichskommissariat_norwegen = {

		icon = ger_reichskommissariats

		priority = 98

		visible = {
			RKG = {
				exists = no
			}
		}

		fire_only_once = yes

		available = {
			is_subject = no
			NOR = {
				NOT = {
					has_completed_focus = NOR_quislings_coup
				}
			}
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			NOT = {
				has_subject = NOR # No need to create a worse Norwegian subject if you already have one 
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				110 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				142 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				143 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				144 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				920 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				921 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				922 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				923 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				924 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				925 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 110
				state = 142
				state = 143
				state = 144
				state = 920
				state = 921
				state = 922
				state = 923
				state = 924
				state = 925
			}
		}

		cost = 25

		ai_will_do = {
			base = 10
			modifier = {
				add = 50
				ENG = { has_capitulated = yes }
			}
			modifier = {
				add = 25
				NOR = { has_capitulated = yes }
			}
			modifier = {
				add = 25
				NOR = { exists = no }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			110 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RKG_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RKG
				set_state_flag = GER_RK_capital_state_trasferred_RKG_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_norwegen_effect_tt

			set_autonomy = { 
				target = RKG 
				autonomy_state = autonomy_integrated_puppet 
			}

			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RKG_state = yes
						NOT = {
							state = 110
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKG
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RKG_state = yes
						NOT = {
							state = 110
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKG
					set_state_controller_to = RKG
					add_claim_by = RKG
					add_compliance = 25
				}

				RKG = {
					add_manpower = 50000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 5000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 500
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.3
				hours = 0
			}	

		}
	}

	GER_reichskommissariat_niederlande = {

		icon = ger_reichskommissariats

		priority = 99

		fire_only_once = yes

		visible = {
			RKN = {
				exists = no
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			NOT = {
				has_subject = HOL # No need to create a worse Dutch subject if you already have one 
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				7 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				35 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				36 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 7
				state = 35
				state = 36
			}
		}


		cost = 25

		ai_will_do = {
			base = 10
			modifier = {
				add = 50
				ENG = { has_capitulated = yes }
			}
			modifier = {
				add = 15
				HOL = { has_capitulated = yes }
			}
			modifier = {
				add = 25
				HOL = { exists = no }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			7 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RKN_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RKN
				set_state_flag = GER_RK_capital_state_trasferred_RKN_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_niederlande_effect_tt

			set_autonomy = { 
				target = RKN 
				autonomy_state = autonomy_integrated_puppet 
			}

			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RKN_state = yes
						NOT = {
							state = 7
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKN
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RKN_state = yes
						NOT = {
							state = 7
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKN
					set_state_controller_to = RKN
					add_claim_by = RKN
					add_compliance = 25
				}
				RKN = {
					add_manpower = 50000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 5000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 500
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.2
				hours = 0
			}	
			
		}
	}

	GER_reichskommissariat_belgien_nordfrankreich = {

		icon = ger_reichskommissariats

		fire_only_once = yes

		visible = {
			RKB = {
				exists = no
			}
		}

		priority = 100

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			NOT = {
				has_subject = BEL # No need to create a worse Belgian subject if you already have one 
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				6 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				29 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				34 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				977 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				980 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 6
				state = 29
				state = 34
				state = 977
				state = 980
			}
		}

		cost = 25

		ai_will_do = {
			base = 10
			modifier = {
				add = 50
				ENG = { has_capitulated = yes }
			}
			modifier = {
				add = 15
				BEL = { has_capitulated = yes }
			}
			modifier = {
				add = 25
				BEL = { exists = no }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			6 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RKB_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RKB
				set_state_flag = GER_RK_capital_state_trasferred_RKB_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_belgien_effect_tt

			set_autonomy = { 
				target = RKB 
				autonomy_state = autonomy_integrated_puppet 
			}

			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RKB_state = yes
						NOT = {
							state = 6
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKB
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RKB_state = yes
						NOT = {
							state = 6
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKB
					set_state_controller_to = RKB
					add_claim_by = RKB
					add_compliance = 25
				}
				RKB = {
					add_manpower = 50000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 5000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 500
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.1
				hours = 0
			}	

		}
	}

	GER_reichskommissariat_ostland = {

		icon = ger_reichskommissariats

		fire_only_once = yes

		priority = 97

		visible = {
			RKO = {
				exists = no
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				94 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				95 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				96 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				194 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				204 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				206 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				11 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				784 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				189 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				12 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				190 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				13 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				191 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				814 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				815 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				809 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				808 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				810 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				813 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				812 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				811 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		cost = 25

		ai_will_do = {
			base = 5
			modifier = {
				add = 50
				SOV = { has_capitulated = yes }
			}
			modifier = {
				add = 50
				SOV = { exists = no }
			}
			modifier = {
				add = 10
				BLR = { exists = no }
			}
			modifier = {
				add = 10
				BLR = { has_capitulated = yes }
			}
			modifier = {
				add = 5
				LIT = { exists = no }
			}
			modifier = {
				add = 5
				LAT = { exists = no }
			}
			modifier = {
				add = 5
				EST = { exists = no }
			}
			modifier = {
				add = 15
				POL = { exists = no }
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 94
				state = 95
				state = 96
				state = 194
				state = 204
				state = 206
				state = 11
				state = 784
				state = 189
				state = 12
				state = 190
				state = 13
				state = 191
				state = 814
				state = 815
				state = 809
				state = 808
				state = 810
				state = 813
				state = 812
				state = 811
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			808 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RKO_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RKO
				set_state_flag = GER_RK_capital_state_trasferred_RKO_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_ostland_effect_tt

			set_autonomy = { 
				target = RKO
				autonomy_state = autonomy_integrated_puppet 
			}

			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RKO_state = yes
						NOT = {
							state = 808
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKO
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RKO_state = yes
						NOT = {
							state = 808
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKO
					set_state_controller_to = RKO
					add_claim_by = RKO
					add_compliance = 25
				}

				RKO = {
					add_manpower = 50000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 5000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 500
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.5
				hours = 0
			}	
			
		}
	}

	GER_reichskommissariat_ukraine = {

		icon = ger_reichskommissariats

		priority = 96

		fire_only_once = yes

		visible = {
			RKU = {
				exists = no
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			NOT = {
				has_subject = UKR # No need to create a worse Ukrainian subject if you already have one 
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				93 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				199 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				201 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				202 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				193 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				203 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				197 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				225 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				259 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				226 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				196 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				200 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				221 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				228 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				227 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				137 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 93
				state = 199
				state = 201
				state = 202
				state = 193
				state = 203
				state = 197
				state = 225
				state = 259
				state = 226
				state = 196
				state = 200
				state = 221
				state = 228
				state = 227
				state = 137
			}
		}

		cost = 25

		ai_will_do = {
			base = 15
			modifier = {
				add = 25
				SOV = { has_capitulated = yes }
			}
			modifier = {
				add = 50
				SOV = { exists = no }
			
			}
			modifier = {
				add = 15
				UKR = { exists = no }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			202 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RKU_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RKU
				set_state_flag = GER_RK_capital_state_trasferred_RKU_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_ukraine_effect_tt
			
			set_autonomy = { 
				target = RKU 
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RKU_state = yes
						NOT = {
							GER_is_soviet_greater_romania_state = yes
						}
						NOT = {
							state = 202
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKU
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RKU_state = yes
						NOT = {
							GER_is_soviet_greater_romania_state = yes
						}
						NOT = {
							state = 202
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKU
					set_state_controller_to = RKU
					add_claim_by = RKU
					add_compliance = 25
				}

				RKU = {
					add_manpower = 50000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 5000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 500
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.4
				hours = 0
			}	
			
		}
	}

	# Expand the Ukraine Area
	GER_expand_ukraine_adminsitrative_area = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 95

		fire_only_once = yes

		visible = {
			RKU = {
				exists = yes
			}
			NOT = {
				has_country_flag = GER_handed_over_greater_romania_to_rku
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				192 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				834 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				198 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 192 # Odessa
				state = 834 # Balta-Tiraspol
				state = 198 # Vinnytsia
			}
		}

		cost = 10

		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				SOV = { has_capitulated = yes }
			}
			modifier = {
				add = 9
				RKU = { exists = yes }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_rku_expanding_effect_tt
				
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_soviet_greater_romania_state = yes
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKU
					add_compliance = 20
				}
				every_state = {	
					limit = {
						GER_is_soviet_greater_romania_state = yes
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKU
					set_state_controller_to = RKU
					add_claim_by = RKU
					add_compliance = 20
				}
			}	

			hidden_effect = {
				set_country_flag = GER_handed_over_greater_romania_to_rku
			}
			
		}
	}

	# Expand the Ukraine Area Further
	GER_further_expand_ukraine_adminsitrative_area = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 95

		fire_only_once = yes

		visible = {
			RKU = {
				exists = yes
			}
			RKC = {
				exists = no
			}
			has_country_flag = GER_handed_over_greater_romania_to_rku
			NOT = {
				has_country_flag = GER_handed_over_normal_romania_to_rku
			}
		}

		available = {
			is_subject = no
			RKC = {
				exists = no
			}
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				766 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				78 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 766 # Southern Bessarabia
				state = 78 # Bessarabia
			}
		}

		cost = 10

		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				SOV = { has_capitulated = yes }
			}
			modifier = {
				add = 9
				RKU = { exists = yes }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_rku_more_expanding_effect_tt
				
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_additional_soviet_greater_romania_state = yes
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKU
					add_compliance = 20
				}
				every_state = {	
					limit = {
						GER_is_additional_soviet_greater_romania_state = yes
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKU
					set_state_controller_to = RKU
					add_claim_by = RKU
					add_compliance = 20
				}
			}	

			hidden_effect = {
				set_country_flag = GER_handed_over_normal_romania_to_rku
			}
			
		}
	}

	GER_reichskommissariat_kaukasien = {

		icon = ger_reichskommissariats

		priority = 95

		fire_only_once = yes

		visible = {
			RKK = {
				exists = no
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				231 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				230 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				229 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				826 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				232 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				821 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				828 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				827 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				233 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				234 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				235 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				237 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				236 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				238 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 231
				state = 230
				state = 229
				state = 826
				state = 232
				state = 821
				state = 828
				state = 827
				state = 233
				state = 234
				state = 235
				state = 237
				state = 236
				state = 238
			}
		}

		cost = 25

		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				SOV = { has_capitulated = yes }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			231 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RKK_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RKK
				set_state_flag = GER_RK_capital_state_trasferred_RKK_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_kaukasien_effect_tt
			
			set_autonomy = { 
				target = RKK 
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RKK_state = yes
						NOT = {
							state = 231
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKK
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RKK_state = yes
						NOT = {
							state = 231
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKK
					set_state_controller_to = RKK
					add_claim_by = RKK
					add_compliance = 25
				}

				RKK = {
					add_manpower = 50000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 5000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 500
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.6
				hours = 0
			}	
			
		}
	}

	GER_reichskommissariat_turkestan = {

		icon = ger_reichskommissariats

		priority = 93

		fire_only_once = yes

		visible = {
			RKT = {
				exists = no
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				405 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				742 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				830 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				584 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				832 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				831 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				823 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				587 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				585 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				732 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				404 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				586 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				402 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				406 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				407 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				583 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				881 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				589 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				590 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				588 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				882 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				654 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				40 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 405
				state = 742
				state = 830
				state = 584
				state = 832
				state = 831
				state = 823
				state = 587
				state = 585
				state = 732
				state = 404
				state = 586
				state = 402
				state = 406
				state = 407
				state = 583
				state = 881
				state = 589
				state = 590
				state = 588
				state = 882
				state = 654
				state = 40
			}
		}

		cost = 25

		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				SOV = { has_capitulated = yes }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			405 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RKT_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RKT
				set_state_flag = GER_RK_capital_state_trasferred_RKT_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_turkestan_effect_tt
			
			set_autonomy = { 
				target = RKT 
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RKT_state = yes
						NOT = {
							state = 405
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKT
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RKT_state = yes
						NOT = {
							state = 405
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKT
					set_state_controller_to = RKT
					add_claim_by = RKT
					add_compliance = 25
				}

				RKT = {
					add_manpower = 80000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 10000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 1000
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.7
				hours = 0
			}	
			
		}
	}

	GER_reichskommissariat_moskowien = {

		icon = ger_reichskommissariats

		priority = 94

		fire_only_once = yes

		visible = {
			RKM = {
				exists = no
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				219 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				205 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				242 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				243 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				241 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				207 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				224 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				210 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				246 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				209 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				263 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				208 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				195 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				244 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				264 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				247 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				223 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				222 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				220 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				240 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				258 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				260 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				265 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				245 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				218 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				217 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				351 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				248 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				253 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				254 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				257 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				252 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				255 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				239 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				250 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				879 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				880 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				214 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 219
				state = 205
				state = 242
				state = 243
				state = 241 # Gomel
				state = 207 # Vitebsk
				state = 224
				state = 210
				state = 246
				state = 209
				state = 263
				state = 208
				state = 195 # Leningrad
				state = 244
				state = 264
				state = 247
				state = 223
				state = 222
				state = 220 
				state = 240
				state = 258
				state = 260
				state = 265
				state = 245
				state = 218 # Rostov
				state = 217 # Stalingrad
				state = 351
				state = 248
				state = 253
				state = 254
				state = 257
				state = 252
				state = 255
				state = 239
				state = 250
				state = 879 # Kargopol
				state = 880 # Kotlas
				state = 214 # Archangelsk
			}
		}

		cost = 25

		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				SOV = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				SOV = { exists = no }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			219 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RKM_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RKM
				set_state_flag = GER_RK_capital_state_trasferred_RKM_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_muscovy_effect_tt
			
			set_autonomy = { 
				target = RKM 
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RKM_state = yes
						NOT = {
							state = 219
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKM
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RKM_state = yes
						NOT = {
							state = 219
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKM
					set_state_controller_to = RKM
					add_claim_by = RKM
					add_compliance = 25
				}

				RKM = {
					add_manpower = 80000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 10000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 1000
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.8
				hours = 0
			}	
			
		}
	}

	# What to do with Volga Germany
	GER_the_fate_of_the_volga_german_autonomous_area = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 91

		fire_only_once = yes

		visible = {
			OR = {
				829 = { is_controlled_by_ROOT_or_subject = yes }
				country_exists = RKM
				has_war_with = 829.controller
			}
			NOT = { has_country_flag = GER_decided_on_volga_germanys_status }
		}

		available = {
			OR = {
				has_completed_focus = GER_the_triumphant_will
				SOV = {
					exists = no
				}
			}
			829 = {
				is_controlled_by_ROOT_or_subject = yes
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 829 # Engels-Marxstadt
			}
		}

		cost = 15

		ai_will_do = {
			base = 0
			modifier = {
				add = 10
				SOV = { has_capitulated = yes }
			}
			modifier = {
				add = 25
				SOV = { exists = no }
			}
		}

		complete_effect = {

			country_event = {
				id = wuw_GER_reichskommissariats.9
				hours = 0
			}	

			hidden_effect = {
				set_country_flag = GER_decided_on_volga_germanys_status
			}
			
		}
	}

	# Send more soldiers to man the RKs 
	GER_send_wehrbauern_to_the_rks = {

		priority = 110

		cost = 30

		days_re_enable = 91

		icon = GFX_decision_eng_blackshirt_march

		allowed = {
			original_tag = GER # Germany
		}

		available = {
			OR = {
				RKM = {
					exists = yes
				}
				RKO = {
					exists = yes
				}
				RKU = {
					exists = yes
				}
				RKT = {
					exists = yes
				}
				RKK = {
					exists = yes
				}
				RKL = {
					exists = yes
				}
			}
			has_manpower > 15000
		}

		visible = {
			OR = {
				RKM = {
					exists = yes
				}
				RKO = {
					exists = yes
				}
				RKU = {
					exists = yes
				}
				RKT = {
					exists = yes
				}
				RKK = {
					exists = yes
				}
				RKL = {
					exists = yes
				}
			}
		}

		complete_effect = {

			IF = {
				limit = {
					RKM = {
						exists = yes
					}
				}
				add_manpower = -2500
				RKM = {
					add_manpower = 2500
					army_experience = 15
				}
				every_state = {
					limit = {
						is_controlled_by = RKM
						NOT = {
							is_core_of = RKM
						}
					}
					add_resistance = -3
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			IF = {
				limit = {
					RKO = {
						exists = yes
					}
				}
				add_manpower = -2500
				RKO = {
					add_manpower = 2500
					army_experience = 15
				}
				every_state = {
					limit = {
						is_controlled_by = RKO
						NOT = {
							is_core_of = RKO
						}
					}
					add_resistance = -3
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			IF = {
				limit = {
					RKU = {
						exists = yes
					}
				}
				add_manpower = -2500
				RKU = {
					add_manpower = 2500
					army_experience = 15
				}
				every_state = {
					limit = {
						is_controlled_by = RKU
						NOT = {
							is_core_of = RKU
						}
					}
					add_resistance = -3
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			IF = {
				limit = {
					RKT = {
						exists = yes
					}
				}
				add_manpower = -2500
				RKT = {
					add_manpower = 2500
					army_experience = 15
				}
				every_state = {
					limit = {
						is_controlled_by = RKT
						NOT = {
							is_core_of = RKT
						}
					}
					add_resistance = -3
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			IF = {
				limit = {
					RKK = {
						exists = yes
					}
				}
				add_manpower = -2500
				RKK = {
					add_manpower = 2500
					army_experience = 15
				}
				every_state = {
					limit = {
						is_controlled_by = RKK
						NOT = {
							is_core_of = RKK
						}
					}
					add_resistance = -3
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			IF = {
				limit = {
					RKL = {
						exists = yes
					}
				}
				add_manpower = -2500
				RKL = {
					add_manpower = 2500
					army_experience = 15
				}
				every_state = {
					limit = {
						is_controlled_by = RKL
						NOT = {
							is_core_of = RKL
						}
					}
					add_resistance = -3
				}
			}
			
		}

		ai_will_do = {
			base = 5
		}
	}

	# What to do with the South Urals
	GER_the_fate_of_the_south_ural_area = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 92

		fire_only_once = yes

		visible = {
			RKL = {
				exists = no
			}
			NOT = {
				has_country_flag = GER_decided_on_south_urals_status
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				401 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				251 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				652 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				582 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				651 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				249 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				256 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				833 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				399 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 401 # Balakovo
				state = 251 # Kuybyshev
				state = 652 # Orenburg
				state = 582 # Magnitogorsk
				state = 651 # Ufa/Bashkortostan
				state = 249 # Kazan/Tatarstan
				state = 256 # Chuvashia 
				state = 833 # Mari El
				state = 399 # Udmurtia
			}
		}

		cost = 15

		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				SOV = { has_capitulated = yes }
			}
			modifier = {
				add = 15
				RKM = { exists = yes }
			}
		}

		complete_effect = {

			country_event = {
				id = wuw_GER_reichskommissariats.10
				hours = 0
			}	

			hidden_effect = {
				set_country_flag = GER_decided_on_south_urals_status
			}
			
		}
	}

	# What to do with the North Urals
	GER_the_fate_of_the_north_ural_area = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 91

		fire_only_once = yes

		visible = {
			RKM = {
				exists = yes
			}
			NOT = {
				has_country_flag = GER_decided_on_north_urals_status
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				825 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				262 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				397 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				400 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				398 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				581 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				573 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 825 # Nenetsia
				state = 262 # Pechora
				state = 397 # Syktyvkar
				state = 400 # Kirov
				state = 398 # Perm
				state = 581 # Northern Urals
				state = 573 # Zlatoust
			}
		}

		cost = 20

		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				SOV = { has_capitulated = yes }
			}
			modifier = {
				add = 25
				RKM = { exists = yes }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_north_ural_rkm_effect_tt
				
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RK_north_urals_state = yes
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKM
					add_compliance = 20
				}
				every_state = {	
					limit = {
						GER_is_RK_north_urals_state = yes
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKM
					set_state_controller_to = RKM
					add_claim_by = RKM
					add_compliance = 20
				}
			}	

			hidden_effect = {
				set_country_flag = GER_decided_on_north_urals_status
			}
			
		}
	}

	# What to do with the West Yenisei region
	GER_the_fate_of_the_west_yenisei_area = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 91

		fire_only_once = yes

		visible = {
			RKM = {
				exists = yes
			}
			has_country_flag = GER_decided_on_north_urals_status
			NOT = {
				has_country_flag = GER_decided_on_west_yenisei_status
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				569 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				570 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				571 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				403 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				572 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				653 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				580 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				577 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				578 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				579 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				824 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 569 # Khakassia
				state = 570 # Novosibirsk
				state = 571 # Omsk
				state = 403 # Tyumen
				state = 572 # Chelyabinsk
				state = 653 # Sverdlovsk
				state = 580 # Tobolsk
				state = 577 # Surgut
				state = 578 # Tomsk
				state = 579 # Salekhard
				state = 824 # Yamalia
			}
		}

		cost = 20

		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				SOV = { has_capitulated = yes }
			}
			modifier = {
				add = 25
				RKM = { exists = yes }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_west_yenisei_rkm_effect_tt
				
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RK_west_yenisei_state = yes
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKM
					add_compliance = 20
				}
				every_state = {	
					limit = {
						GER_is_RK_west_yenisei_state = yes
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKM
					set_state_controller_to = RKM
					add_claim_by = RKM
					add_compliance = 20
				}
			}	

			hidden_effect = {
				set_country_flag = GER_decided_on_west_yenisei_status
			}
			
		}
	}

	# What to do with Greater Finland
	GER_the_fate_of_greater_finland = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 90

		fire_only_once = yes

		visible = {
			OR = {
				RKM = {
					exists = yes
				}
				FIN = {
					exists = yes
					OR = {
						is_subject_of = ROOT
						is_in_faction_with = ROOT
						AND = {
							has_idea = FIN_the_lone_wolf
							NOT = {
								has_country_flag = FIN_already_attempted_an_armistice
							}
						}
					}
					OR = {
						owns_state = 722
						owns_state = 147
						owns_state = 146
						owns_state = 929
					}
				}
			}
			NOT = {
				has_country_flag = GER_decided_on_greater_finland_status
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_the_triumphant_will
				SOV = {
					exists = no
				}
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				216 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				215 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				213 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 216 # Olonets
				state = 215 # Onega
				state = 213 # Murmansk
			}
		}

		cost = 25

		ai_will_do = {
			base = 0
			modifier = {
				add = 5
				SOV = { has_capitulated = yes }
			}
			modifier = {
				add = 25
				RKM = { exists = yes }
			}
		}

		complete_effect = {

			country_event = {
				id = wuw_GER_reichskommissariats.11
				hours = 0
			}	

			hidden_effect = {
				set_country_flag = GER_decided_on_greater_finland_status
			}
			
		}
	}

	GER_generalgouvernement = {

		icon = ger_reichskommissariats

		priority = 103

		fire_only_once = yes

		visible = {
			GEN = {
				exists = no
			}
		}

		available = {
			is_subject = no
			has_completed_focus = GER_reassert_eastern_claims
			NOT = {
				has_subject = POL # No need to create a worse Polish subject if you already have one 
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				88 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				90 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				92 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				10 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		cost = 30

		ai_will_do = {
			base = 2
			modifier = {
				add = 25
				POL = { has_capitulated = yes }
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 10 # Warsaw
				state = 90 # Kielce
				state = 92 # Lublin
				state = 88 # Krakow
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			88 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_GEN_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = GEN
				set_state_flag = GER_RK_capital_state_trasferred_GEN_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_generalgouvernement_effect_tt

			set_autonomy = { 
				target = GEN
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_GEN_state = yes
						NOT = {
							state = 88
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = GEN
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_GEN_state = yes
						NOT = {
							state = 88
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = GEN
					set_state_controller_to = GEN
					add_claim_by = GEN
					add_compliance = 25
				}

				GEN = {
					add_manpower = 50000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 5000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 500
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 2 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.12
				hours = 0
			}	
			
		}
	}

	# Expand the Generalgouvernment Area
	GER_expand_generalgouvernement_adminsitrative_area = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 102

		fire_only_once = yes

		visible = {
			GEN = {
				exists = yes
			}
			NOT = {
				has_country_flag = GER_handed_over_austrian_galicia_to_gen
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				89 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				91 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 89 # Stanislawow
				state = 91 # Lwow
			}
		}

		cost = 10

		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				SOV = { has_capitulated = yes }
			}
			modifier = {
				add = 9
				GEN = { exists = yes }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_gen_expanding_effect_tt
				
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_east_GEN_state = yes
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = GEN
					add_compliance = 20
				}
				every_state = {	
					limit = {
						GER_is_east_GEN_state = yes
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = GEN
					set_state_controller_to = GEN
					add_claim_by = GEN
					add_compliance = 20
				}
			}	

			hidden_effect = {
				set_country_flag = GER_handed_over_austrian_galicia_to_gen
			}
			
		}
	}

	GER_reichsprotektorat_bohemia_moravia = {

		icon = ger_reichskommissariats

		priority = 102

		fire_only_once = yes

		visible = {
			RKH = {
				exists = no
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			NOT = {
				has_subject = CZE # No need to create a worse Czech subject if you already have one 
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				9 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				75 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 9 # Bohemia
				state = 75 # Moravia
			}
		}


		cost = 25

		ai_will_do = {
			base = 5
			modifier = {
				add = 50
				ENG = { has_capitulated = yes }
			}
			modifier = {
				add = 25
				CZE = { exists = no }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			9 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RKH_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RKH
				set_state_flag = GER_RK_capital_state_trasferred_RKH_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_bohemia_effect_tt

			set_autonomy = { 
				target = RKH 
				autonomy_state = autonomy_reichsprotectorate 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RKH_state = yes
						NOT = {
							state = 7
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKH
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RKH_state = yes
						NOT = {
							state = 7
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKH
					set_state_controller_to = RKH
					add_claim_by = RKH
					add_compliance = 25
				}
				RKH = {
					add_manpower = 50000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 5000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 500
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 2 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.13
				hours = 0
			}	
			
		}
	}

	GER_reichskommissariat_iberien = {

		icon = ger_reichskommissariats

		priority = 88

		fire_only_once = yes

		visible = {
			RKI = {
				exists = no
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				165 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				167 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				794 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				166 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				172 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				792 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				176 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				790 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				791 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				174 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				171 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				788 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				793 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				168 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				41 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				170 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				175 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				789 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				173 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				169 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				118 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				180 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				181 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				795 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				179 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				112 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				806 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 165
				state = 167
				state = 794
				state = 166
				state = 172
				state = 792
				state = 176
				state = 790
				state = 791
				state = 174
				state = 171
				state = 788
				state = 793
				state = 168
				state = 41
				state = 170
				state = 175
				state = 789
				state = 173
				state = 169
				state = 118
				state = 180
				state = 181
				state = 795
				state = 179
				state = 112
				state = 806
			}
		}

		cost = 30

		ai_will_do = {
			base = 0
			modifier = {
				add = 5
				SPR = { exists = no }
			}
			modifier = {
				add = 5
				POR = { exists = no }
			}
			modifier = {
				add = 2
				FRA = { has_capitulated = yes }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			41 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RKI_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RKI
				set_state_flag = GER_RK_capital_state_trasferred_RKI_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_iberia_effect_tt
			
			set_autonomy = { 
				target = RKI 
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RKI_state = yes
						NOT = {
							state = 41
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKI
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RKI_state = yes
						NOT = {
							state = 41
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKI
					set_state_controller_to = RKI
					add_claim_by = RKI
					add_compliance = 25
				}

				RKI = {
					add_manpower = 60000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 5000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 500
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.14
				hours = 0
			}	
			
		}
	}

	GER_reichskommissariat_balkan = {

		icon = ger_reichskommissariats

		priority = 86

		fire_only_once = yes

		visible = {
			RKC = {
				exists = no
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				109 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				103 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				104 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				804 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				105 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				107 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				108 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				802 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				803 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				106 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				970 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				934 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				44 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				805 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				48 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				212 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				801 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				211 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				81 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				46 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				77 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				971 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				79 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				78 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				766 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				80 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 109
				state = 103
				state = 104
				state = 804
				state = 105
				state = 107
				state = 108
				state = 802
				state = 803
				state = 106
				state = 970
				state = 934
				state = 44
				state = 805
				state = 48
				state = 212
				state = 801
				state = 211
				state = 81
				state = 46
				state = 77
				state = 971
				state = 79
				state = 78
				state = 766
				state = 80
			}
		}

		cost = 30

		ai_will_do = {
			base = 0
			modifier = {
				add = 5
				YUG = { exists = no }
			}
			modifier = {
				add = 5
				ROM = { exists = no }
			}
			modifier = {
				add = 5
				BUL = { exists = no }
			}
			modifier = {
				add = 5
				ITA = { has_capitulated = yes }
			}
			modifier = {
				add = 5
				GRE = { has_capitulated = yes }
			}
			modifier = {
				add = 5
				HUN = { has_capitulated = yes }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			109 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RKC_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RKC
				set_state_flag = GER_RK_capital_state_trasferred_RKC_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_balkan_effect_tt
				
			set_autonomy = { 
				target = RKC 
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RKC_state = yes
						NOT = {
							AND = {
								is_controlled_by = RKU
								OR = {
									state = 766
									state = 78
								}
							}
						}
						NOT = {
							state = 109
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKC
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RKC_state = yes
						NOT = {
							AND = {
								is_controlled_by = RKU
								OR = {
									state = 766
									state = 78
								}
							}
						}
						NOT = {
							state = 109
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKC
					set_state_controller_to = RKC
					add_claim_by = RKC
					add_compliance = 25
				}

				RKC = {
					add_manpower = 60000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 5000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 500
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.15
				hours = 0
			}	
			
		}
	}

	# Expand the Balkan Area
	GER_expand_rkc_adminsitrative_area = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 86

		fire_only_once = yes

		visible = {
			RKC = {
				exists = yes
			}
			NOT = {
				has_country_flag = GER_handed_over_zadar_to_rkc
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				163 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 163 # Zadar
			}
		}

		cost = 10

		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				SOV = { has_capitulated = yes }
			}
			modifier = {
				add = 9
				RKC = { exists = yes }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_rkc_expanding_effect_tt
				
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RKC_zadar_state = yes
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKC
					add_compliance = 20
				}
				every_state = {	
					limit = {
						GER_is_RKC_zadar_state = yes
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKC
					set_state_controller_to = RKC
					add_claim_by = RKC
					add_compliance = 20
				}
			}	

			hidden_effect = {
				set_country_flag = GER_handed_over_zadar_to_rkc
			}
			
		}
	}

	GER_reichskommissariat_grossbritannien = {

		icon = ger_reichskommissariats

		priority = 85

		fire_only_once = yes

		visible = {
			RGB = {
				exists = no
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			NOT = {
				has_subject = ENG # No need to create a worse British subject if you already have one 
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				127 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				123 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				126 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				338 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				125 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				122 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				128 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				129 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				132 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				130 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				931 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				131 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				121 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				133 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				136 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				120 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 127
				state = 123
				state = 126
				state = 338
				state = 125
				state = 122
				state = 128
				state = 129
				state = 132
				state = 130
				state = 931
				state = 131
				state = 121
				state = 133
				state = 136
				state = 120
			}
		}

		cost = 25

		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				WLS = { exists = no }
			}
			modifier = {
				add = 8
				ENG = { exists = no }
			}
			modifier = {
				add = 5
				ENG = { has_capitulated = yes }
			}
			modifier = {
				add = 1
				SCO = { exists = no }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			126 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RGB_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RGB
				set_state_flag = GER_RK_capital_state_trasferred_RGB_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_grossbritannien_effect_tt
				
			set_autonomy = { 
				target = RGB 
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RGB_state = yes
						NOT = {
							state = 126
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RGB
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RGB_state = yes
						NOT = {
							state = 126
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RGB
					set_state_controller_to = RGB
					add_claim_by = RGB
					add_compliance = 25
				}

				RGB = {
					add_manpower = 60000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 6000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 600
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.16
				hours = 0
			}	
			
		}
	}

	# What to do with Greece
	GER_the_fate_of_the_greek_area = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 84

		fire_only_once = yes

		visible = {
			RKC = {
				exists = yes
			}
			NOT = {
				has_country_flag = GER_decided_on_greek_status
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				184 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				731 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				185 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				47 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				186 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 184
				state = 731
				state = 185
				state = 47
				state = 186
			}
		}

		cost = 15

		ai_will_do = {
			base = 0
			modifier = {
				add = 2
				ENG = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				USA = { has_capitulated = yes }
			}
			modifier = {
				add = 2
				GRE = { has_capitulated = yes }
			}
			modifier = {
				add = 25
				GRE = { exists = no }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_greek_rkm_effect_tt
				
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_south_RKC_state = yes
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKC
					add_compliance = 15
				}
				every_state = {	
					limit = {
						GER_is_south_RKC_state = yes
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKC
					set_state_controller_to = RKC
					add_claim_by = RKC
					add_compliance = 15
				}
			}	

			hidden_effect = {
				set_country_flag = GER_decided_on_greek_status
			}
			
		}
	}

	# What to do with Greater Hungary
	GER_the_fate_of_the_hungarian_area = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 83

		fire_only_once = yes

		visible = {
			RKC = {
				exists = yes
			}
			NOT = {
				has_country_flag = GER_decided_on_hungarian_status
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				764 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				45 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				82 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				84 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				76 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				83 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				974 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				973 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				154 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				43 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				155 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 764
				state = 45
				state = 82
				state = 84
				state = 76
				state = 83
				state = 974
				state = 973
				state = 154
				state = 43
				state = 155
			}
		}

		cost = 15

		ai_will_do = {
			base = 0
			modifier = {
				add = 2
				HUN = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				HUN = { exists = no }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_hungarian_rkm_effect_tt
				
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_north_RKC_state = yes
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKC
					add_compliance = 20
				}
				every_state = {	
					limit = {
						GER_is_north_RKC_state = yes
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKC
					set_state_controller_to = RKC
					add_claim_by = RKC
					add_compliance = 20
				}
			}	

			hidden_effect = {
				set_country_flag = GER_decided_on_hungarian_status
			}
			
		}
	}

	# What to do with Slovakia
	GER_the_fate_of_slovakia = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 83

		fire_only_once = yes

		visible = {
			OR = {
				AND = {
					has_country_flag = GER_decided_on_hungarian_status
					RKC = {
						exists = yes
					}
				}
				HUN = {
					OR = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
				}
				AND = {
					73 = {
						is_owned_and_controlled_by = ROOT
					}
					664 = {
						is_owned_and_controlled_by = ROOT
					}
					71 = {
						is_owned_and_controlled_by = ROOT
					}
					70 = {
						is_owned_and_controlled_by = ROOT
					}
				}
				AND = {
					RKH = {
						exists = yes
					}
					SLO = {
						exists = no
					}
				}
			}
			NOT = {
				has_country_flag = GER_decided_on_slovakian_status
			}
		}

		available = {
			is_subject = no
			OR = {
				RKC = {
					exists = yes
				}
				has_completed_focus = GER_the_triumphant_will
				AND = {
					has_completed_focus = GER_reintegrate_luxemburg_and_alsace_lorraine
					SLO = {
						exists = no
					}
				}
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				73 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				664 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				71 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				70 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 73 # Carpathian Ruthenia
				state = 664 # South Slovakia
				state = 71 # East Slovakia
				state = 70 # West Slovakia
			}
		}

		cost = 25

		ai_will_do = {
			base = 0
			modifier = {
				add = 5
				SLO = { exists = no }
			}
			modifier = {
				add = 15
				RKC = { exists = yes }
			}
		}

		complete_effect = {

			country_event = {
				id = wuw_GER_reichskommissariats.17
				hours = 0
			}	

			hidden_effect = {
				set_country_flag = GER_decided_on_slovakian_status
			}
			
		}
	}

	# What to do with Ireland
	GER_the_fate_of_the_irish_area = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 81

		fire_only_once = yes

		visible = {
			RGB = {
				exists = yes
			}
			NOT = {
				has_country_flag = GER_decided_on_irish_status
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				119 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				113 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				134 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				135 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				932 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 119
				state = 113
				state = 134
				state = 135
				state = 932
			}
		}

		cost = 15

		ai_will_do = {
			base = 0
			modifier = {
				add = 2
				IRE = { has_capitulated = yes }
			}
			modifier = {
				add = 1
				NIR = { has_capitulated = yes }
			}
			modifier = {
				add = 2
				NIR = { exists = no }
			}
			modifier = {
				add = 13
				IRE = { exists = no }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_ireland_rgb_effect_tt
				
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RGB_ireland_state = yes
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RGB
					add_compliance = 15
				}
				every_state = {	
					limit = {
						GER_is_RGB_ireland_state = yes
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RGB
					set_state_controller_to = RGB
					add_claim_by = RGB
					add_compliance = 15
				}
			}	

			hidden_effect = {
				set_country_flag = GER_decided_on_irish_status
			}
			
		}
	}

	##### AFRICAN RKS - UNLOCKED FROM "MITTELAFRIKA" FOCUS #####

	GER_reichskommissariat_nordafrika = {

		icon = ger_reichskommissariats

		fire_only_once = yes

		visible = {
			has_completed_focus = GER_mittelafrika
			RNA = {
				exists = no
			}
		}

		priority = 70

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				458 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				665 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				460 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				513 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				459 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				461 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				462 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				290 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				783 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				699 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				557 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				448 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				661 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				449 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				662 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				450 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				663 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				451 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				452 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				447 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				907 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				456 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				457 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				883 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				551 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				886 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				549 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				887 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				774 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				272 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				701 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				899 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				898 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				781 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 458
				state = 665
				state = 460
				state = 513
				state = 459
				state = 461
				state = 462
				state = 290
				state = 783
				state = 699
				state = 557
				state = 448
				state = 661
				state = 449
				state = 662
				state = 450
				state = 663
				state = 451
				state = 452
				state = 447
				state = 907
				state = 456
				state = 457
				state = 883
				state = 551
				state = 886
				state = 549
				state = 887
				state = 774
				state = 272 # Senegal
				state = 701 # Gambia
				state = 899 # Kayes-Koulikoro
				state = 898 # Gao
				state = 781 # Niger
			}
		}

		cost = 30

		ai_will_do = {
			base = 2
			modifier = {
				add = 10
				ENG = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				ENG = { exists = no }
			}
			modifier = {
				add = 10
				ITA = { exists = no }
			}
			modifier = {
				add = 10
				ETH = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				ETH = { has_capitulated = yes }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			458 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RNA_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RNA
				set_state_flag = GER_RK_capital_state_trasferred_RNA_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_nordafrika_effect_tt

			set_autonomy = { 
				target = RNA 
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RNA_state = yes
						NOT = {
							state = 458
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RNA
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RNA_state = yes
						NOT = {
							state = 458
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RNA
					set_state_controller_to = RNA
					add_claim_by = RNA
					add_compliance = 25
				}
				RNA = {
					add_manpower = 100000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 9000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 900
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			RNA = {
				add_ideas = GER_german_controlled_reichskommissariat
			}	

		}
	}

	GER_reichskommissariat_mittelafrika = {

		icon = ger_reichskommissariats

		fire_only_once = yes

		visible = {
			has_completed_focus = GER_mittelafrika
			RKA = {
				exists = no
			}
		}

		priority = 70

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				296 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				780 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				700 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				298 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				779 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				556 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				778 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				274 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				777 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				776 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				558 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				902 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				901 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				900 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				773 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				660 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				885 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				884 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				548 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				904 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				547 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				905 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				903 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				844 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				559 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				269 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				268 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				550 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				908 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				842 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				843 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				841 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				840 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				835 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				836 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				839 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				271 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				838 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				837 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				546 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				297 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				539 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				772 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				796 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				768 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				769 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				718 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				538 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				890 = {
				  	is_controlled_by_ROOT_or_subject = yes
				}
				295 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				888 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				889 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				771 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				770 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				981 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				540 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				891 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				892 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				897 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				896 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				544 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				545 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				542 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				895 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				894 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				541 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
				893 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 296
				state = 780
				state = 700
				state = 298
				state = 779
				state = 556
				state = 778
				state = 274
				state = 777
				state = 776
				state = 558
				state = 902
				state = 901
				state = 900
				state = 773
				state = 660
				state = 885
				state = 884
				state = 548
				state = 904
				state = 547
				state = 905
				state = 903
				state = 844
				state = 559
				state = 269
				state = 268
				state = 550
				state = 908
				state = 842
				state = 843
				state = 841
				state = 840
				state = 835
				state = 836
				state = 839
				state = 271
				state = 838
				state = 837
				state = 546
				state = 297
				state = 539
				state = 772
				state = 796
				state = 768
				state = 769
				state = 718
				state = 538
				state = 890
				state = 295
				state = 888
				state = 889
				state = 771
				state = 770
				state = 981
				state = 540
				state = 891
				state = 892
				state = 897
				state = 896
				state = 544
				state = 545
				state = 542
				state = 895
				state = 894
				state = 541
				state = 893
			}
		}

		cost = 30

		ai_will_do = {
			base = 2
			modifier = {
				add = 10
				ENG = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				ENG = { exists = no }
			}
			modifier = {
				add = 10
				ITA = { exists = no }
			}
			modifier = {
				add = 10
				ETH = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				ETH = { has_capitulated = yes }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			546 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RKA_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RKA
				set_state_flag = GER_RK_capital_state_trasferred_RKA_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_mittelafrika_effect_tt

			set_autonomy = { 
				target = RKA 
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RKA_state = yes
						NOT = {
							state = 546
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKA
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RKA_state = yes
						NOT = {
							state = 546
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKA
					set_state_controller_to = RKA
					add_claim_by = RKA
					add_compliance = 25
				}
				RKA = {
					add_manpower = 90000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 8000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 1000
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.18
				hours = 0
			}	

		}
	}

	# What to do with SAF
	GER_the_fate_of_the_saf_area = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 79

		fire_only_once = yes

		visible = {
			RKA = {
				exists = yes
			}
			NOT = {
				has_country_flag = GER_decided_on_saf_status
			}
		}

		available = {
			is_subject = no
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				275 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				719 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				681 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 275
				state = 719
				state = 681
			}
		}

		cost = 10

		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				SAF = { has_capitulated = yes }
			}
			modifier = {
				add = 13
				SAF = { exists = no }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_saf_rka_effect_tt
				
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_additional_RKA_state = yes
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKA
					add_compliance = 20
				}
				every_state = {	
					limit = {
						GER_is_additional_RKA_state = yes
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKA
					set_state_controller_to = RKA
					add_claim_by = RKA
					add_compliance = 20
				}
			}	

			hidden_effect = {
				set_country_flag = GER_decided_on_saf_status
			}
			
		}
	}

	GER_reichskommissariat_klein_venedig = {

		icon = ger_reichskommissariats

		fire_only_once = yes

		visible = {
			has_completed_focus = GER_establish_protectorates_in_america
			RKV = {
				exists = no
			}
		}

		priority = 60

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				307 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				489 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				488 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				687 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				309 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				310 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				969 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				495 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				940 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				939 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				938 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				942 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				280 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				486 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				504 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				944 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				503 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				502 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				501 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				505 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				941 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				497 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				937 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				935 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				498 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				936 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				499 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				496 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				943 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				500 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				487 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				688 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				301 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				946 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				945 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				300 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				510 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				957 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 307
				state = 489
				state = 488
				state = 687
				state = 309
				state = 310
				state = 969
				state = 495
				state = 940
				state = 939
				state = 938
				state = 942
				state = 280
				state = 486
				state = 504
				state = 944
				state = 503
				state = 502
				state = 501
				state = 505
				state = 941
				state = 497
				state = 937
				state = 935
				state = 498
				state = 936
				state = 499
				state = 496
				state = 943
				state = 500
				state = 487
				state = 688
				state = 301
				state = 946
				state = 945
				state = 300
				state = 510
				state = 957
				## IMPASSABLE, HIGHLIGHTED BUT NOT REQUIRED ##
				state = 967
				state = 961
				state = 968
				state = 962
				state = 963
				state = 964
				state = 965
				state = 966
			}
		}

		cost = 25

		ai_will_do = {
			base = 2
			modifier = {
				add = 10
				ENG = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				USA = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				BRA = { exists = no }
			}
			modifier = {
				add = 10
				BRA = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				VEN = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				VEN = { exists = no }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			489 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RKV_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RKV
				set_state_flag = GER_RK_capital_state_trasferred_RKV_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_klein_venedig_effect_tt

			set_autonomy = { 
				target = RKV 
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RKV_state = yes
						NOT = {
							state = 489
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKV
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RKV_state = yes
						NOT = {
							state = 489
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKV
					set_state_controller_to = RKV
					add_claim_by = RKV
					add_compliance = 25
				}
				RKV = {
					add_manpower = 60000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 7000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 600
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.19
				hours = 0
			}	

		}
	}

	GER_reichskommissariat_anden = {

		icon = ger_reichskommissariats

		fire_only_once = yes

		visible = {
			has_completed_focus = GER_establish_protectorates_in_america
			RAN = {
				exists = no
			}
		}

		priority = 59

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				953 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				507 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				949 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				954 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				955 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				512 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				950 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				279 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				511 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				958 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				278 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				956 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				960 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				509 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				508 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				959 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				952 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				506 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				951 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				302 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				947 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				492 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				494 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				303 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				491 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				490 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				305 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				306 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				493 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 953
				state = 507
				state = 949
				state = 954
				state = 955
				state = 512
				state = 950
				state = 279
				state = 511
				state = 958
				state = 278
				state = 956
				state = 960
				state = 509
				state = 508
				state = 959
				state = 952
				state = 506
				state = 951
				state = 302
				state = 947
				state = 492
				state = 494
				state = 303
				state = 491
				state = 490
				state = 305
				state = 306
				state = 493
			}
		}

		cost = 25

		ai_will_do = {
			base = 2
			modifier = {
				add = 10
				ENG = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				USA = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				CHL = { exists = no }
			}
			modifier = {
				add = 10
				CHL = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				PRU = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				PRU = { exists = no }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			494 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RAN_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RAN
				set_state_flag = GER_RK_capital_state_trasferred_RAN_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_anden_effect_tt

			set_autonomy = { 
				target = RAN 
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RAN_state = yes
						NOT = {
							state = 494
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RAN
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RAN_state = yes
						NOT = {
							state = 494
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RAN
					set_state_controller_to = RAN
					add_claim_by = RAN
					add_compliance = 25
				}
				RAN = {
					add_manpower = 60000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 6000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 600
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.20
				hours = 0
			}	

		}
	}

	GER_reichskommissariat_kolumbus = {

		icon = ger_reichskommissariats

		fire_only_once = yes

		visible = {
			has_completed_focus = GER_establish_protectorates_in_america
			RCO = {
				exists = no
			}
		}

		priority = 58

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				304 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				685 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				316 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				317 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				312 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				314 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				313 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				311 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				474 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				475 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				476 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				477 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				485 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				478 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				277 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				479 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				481 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				480 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				482 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				483 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				315 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				689 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				693 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				690 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				318 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				319 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				686 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				695 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				694 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				308 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				692 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				691 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				375 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				371 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				370 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				367 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				366 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				365 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				376 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				377 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				374 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				372 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 304
				state = 685
				state = 316
				state = 317
				state = 312
				state = 314
				state = 313
				state = 311
				state = 474
				state = 475
				state = 476
				state = 477
				state = 485
				state = 478
				state = 277
				state = 479
				state = 481
				state = 480
				state = 482
				state = 483
				state = 315
				state = 689
				state = 693
				state = 690
				state = 318
				state = 319
				state = 686
				state = 695
				state = 694 
				state = 308
				state = 692
				state = 691
				state = 375
				state = 371
				state = 370
				state = 367
				state = 366
				state = 365
				state = 376
				state = 377
				state = 374
				state = 372
			}
		}

		cost = 25

		ai_will_do = {
			base = 2
			modifier = {
				add = 10
				ENG = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				USA = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				MEX = { exists = no }
			}
			modifier = {
				add = 10
				MEX = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				CUB = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				CUB = { exists = no }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			695 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RCO_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RCO
				set_state_flag = GER_RK_capital_state_trasferred_RCO_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_kolumbus_effect_tt

			set_autonomy = { 
				target = RCO 
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RCO_state = yes
						NOT = {
							state = 695
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RCO
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RCO_state = yes
						NOT = {
							state = 695
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RCO
					set_state_controller_to = RCO
					add_claim_by = RCO
					add_compliance = 25
				}
				RCO = {
					add_manpower = 60000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 6000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 600
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.21
				hours = 0
			}	

		}
	}

	GER_reichskommissariat_nordamerika = {

		icon = ger_reichskommissariats

		fire_only_once = yes

		visible = {
			has_completed_focus = GER_establish_protectorates_in_america
			RUS = {
				exists = no
			}
		}

		priority = 57

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				359 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				360 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				361 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				362 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				816 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				363 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				364 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				368 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				369 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				261 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				396 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				358 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				357 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				393 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				395 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				394 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				373 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				392 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				391 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				383 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				384 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				390 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				389 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				382 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				381 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				388 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				380 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				470 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				472 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				867 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				683 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				865 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				469 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				467 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				682 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				866 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				276 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				468 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				465 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				464 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				862 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				863 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				466 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				861 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				860 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				332 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 359
				state = 360
				state = 361
				state = 362
				state = 816
				state = 363
				state = 364
				state = 368
				state = 369
				state = 261
				state = 396
				state = 358
				state = 357
				state = 393
				state = 395
				state = 394
				state = 373
				state = 392
				state = 391
				state = 383
				state = 384
				state = 390
				state = 389
				state = 382
				state = 381
				state = 388
				state = 380
				state = 470
				state = 472
				state = 867
				state = 683
				state = 865
				state = 469
				state = 467
				state = 682
				state = 866
				state = 276
				state = 468
				state = 465
				state = 464
				state = 862
				state = 863
				state = 466
				state = 861
				state = 860
				state = 332
			}
		}

		cost = 30

		ai_will_do = {
			base = 5
			modifier = {
				add = 10
				CAN = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				USA = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				USA = { exists = no }
			}
			modifier = {
				add = 10
				CAN = { exists = no }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			395 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RUS_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RUS
				set_state_flag = GER_RK_capital_state_trasferred_RUS_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_nordamerika_effect_tt

			set_autonomy = { 
				target = RUS 
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RUS_state = yes
						NOT = {
							state = 395
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RUS
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RUS_state = yes
						NOT = {
							state = 395
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RUS
					set_state_controller_to = RUS
					add_claim_by = RUS
					add_compliance = 25
				}
				RUS = {
					add_manpower = 80000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 7000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 700
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.22
				hours = 0
			}	

		}
	}

	# What to do with Greenland and Newfoundland
	GER_the_fate_of_greenland_and_nfl = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 55

		fire_only_once = yes

		visible = {
			RUS = {
				exists = yes
			}
			NOT = {
				has_country_flag = GER_decided_on_nfl_status
			}
		}

		available = {
			is_subject = no
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				730 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				331 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				101 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 730
				state = 331
				state = 101
			}
		}

		cost = 10

		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				CAN = { has_capitulated = yes }
			}
			modifier = {
				add = 13
				CAN = { exists = no }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_nfl_rus_effect_tt
				
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 730
							state = 331
							state = 101
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RUS
					add_compliance = 20
				}
				every_state = {	
					limit = {
						OR = {
							state = 730
							state = 331
							state = 101
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RUS
					set_state_controller_to = RUS
					add_claim_by = RUS
					add_compliance = 20
				}
			}	

			hidden_effect = {
				set_country_flag = GER_decided_on_nfl_status
			}
			
		}
	}

	# What to do with the American West Coast 
	GER_the_fate_of_west_coast_america = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 55

		fire_only_once = yes

		visible = {
			has_completed_focus = GER_establish_protectorates_in_america
			OR = {
				RUS = {
					exists = yes
				}
				RCO = {
					exists = yes
				}
				JAP = {
					exists = yes
					has_government = ROOT
					NOT = {
						has_war_with = ROOT
					}
					OR = {
						owns_state = 645 # Iwo Jima
						owns_state = 629 # Hawaii
						owns_state = 650 # Attu
						owns_state = 631 # Midway
					}
				}
			}
			NOT = {
				has_country_flag = GER_decided_on_american_west_coast_status
			}
		}

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_establish_protectorates_in_america
				USA = {
					exists = no
				}
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				484 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				378 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				379 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				387 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				385 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				386 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				740 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				473 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				471 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				864 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				463 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				739 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 484
				state = 378
				state = 379
				state = 387
				state = 385
				state = 386
				state = 740
				state = 473
				state = 471
				state = 864
				state = 463
				state = 739
			}
		}

		cost = 25

		ai_will_do = {
			base = 1
			modifier = {
				add = 15
				USA = { exists = no }
			}
			modifier = {
				add = 25
				RUS = { exists = yes }
			}
			modifier = {
				add = 5
				RCO = { exists = yes }
			}
		}

		complete_effect = {

			country_event = {
				id = wuw_GER_reichskommissariats.23
				hours = 0
			}	

			hidden_effect = {
				set_country_flag = GER_decided_on_american_west_coast_status
			}
			
		}
	}

	# What to do with the East Yenisei region
	GER_the_fate_of_the_east_yenisei_area = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 53

		fire_only_once = yes

		visible = {
			has_completed_focus = GER_create_asian_reichskommissariat
			RKM = {
				exists = yes
			}
			has_country_flag = GER_decided_on_west_yenisei_status
			NOT = {
				has_country_flag = GER_decided_on_east_yenisei_status
			}
		}

		available = {
			is_subject = no
			has_completed_focus = GER_create_asian_reichskommissariat
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				516 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				576 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				568 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				567 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				566 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				878 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				575 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				565 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				876 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				574 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				877 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				644 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				822 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				875 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				562 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				874 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				637 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				561 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				564 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				563 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				560 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 516
				state = 576
				state = 568
				state = 567
				state = 566
				state = 878
				state = 575
				state = 565
				state = 876
				state = 574
				state = 877
				state = 644
				state = 822
				state = 875
				state = 562
				state = 874
				state = 637
				state = 561
				state = 564
				state = 563
				state = 560
			}
		}

		cost = 20

		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				SOV = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				SOV = { exists = no }
			}
			modifier = {
				add = 15
				RKM = { exists = yes }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_east_yenisei_rkm_effect_tt
				
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_additional_RKM_siberia_state = yes
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKM
					add_compliance = 20
				}
				every_state = {	
					limit = {
						GER_is_additional_RKM_siberia_state = yes
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKM
					set_state_controller_to = RKM
					add_claim_by = RKM
					add_compliance = 20
				}
			}	

			hidden_effect = {
				set_country_flag = GER_decided_on_east_yenisei_status
			}
			
		}
	}

	# What to do with the East Turkestan region
	GER_the_fate_of_east_turkestan_area = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 53

		fire_only_once = yes

		visible = {
			has_completed_focus = GER_create_asian_reichskommissariat
			RKT = {
				exists = yes
			}
			NOT = {
				has_country_flag = GER_decided_on_east_turkestan_status
			}
		}

		available = {
			is_subject = no
			has_completed_focus = GER_create_asian_reichskommissariat
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				619 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				1042 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				287 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				759 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				617 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				618 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				760 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				329 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				818 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 619
				state = 287
				state = 759
				state = 617
				state = 618
				state = 760
				state = 1042
				state = 329 # Tannu Tuva
				state = 818 # Khovd
			}
		}

		cost = 20

		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				SIK = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				SIK = { exists = no }
			}
			modifier = {
				add = 15
				RKT = { exists = yes }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_east_turkestan_rkt_effect_tt
				
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_additional_RKT_xinjang_state = yes
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RKT
					add_compliance = 20
				}
				every_state = {	
					limit = {
						GER_is_additional_RKT_xinjang_state = yes
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RKT
					set_state_controller_to = RKT
					add_claim_by = RKT
					add_compliance = 20
				}
			}	

			hidden_effect = {
				set_country_flag = GER_decided_on_east_turkestan_status
			}
			
		}
	}

	GER_reichskommissariat_arabien = {

		icon = ger_reichskommissariats

		visible = {
			has_completed_focus = GER_create_asian_reichskommissariat
			RAR = {
				exists = no
			}
		}

		priority = 52

		fire_only_once = yes

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				291 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				676 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				675 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				656 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				455 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				454 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				553 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				554 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				680 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				677 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				799 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				453 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				854 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				855 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				679 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				857 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				859 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				292 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				856 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				858 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				678 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				765 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				658 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				659 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				293 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				294 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1010 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1011 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1013 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1014 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1015 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1016 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				992 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 291
				state = 676
				state = 675
				state = 656
				state = 455
				state = 454
				state = 553
				state = 554
				state = 680
				state = 677
				state = 799
				state = 453
				state = 854
				state = 855
				state = 679
				state = 857
				state = 859
				state = 292
				state = 856
				state = 858
				state = 678
				state = 765
				state = 658
				state = 659
				state = 293
				state = 294
				state = 1010
				state = 1011
				state = 1013
				state = 1014
				state = 1015
				state = 1016
				state = 992
			}
		}

		cost = 30

		ai_will_do = {
			base = 5
			modifier = {
				add = 10
				IRQ = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				SAU = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				SAU = { exists = no }
			}
			modifier = {
				add = 10
				IRQ = { exists = no }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			291 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RAR_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RAR
				set_state_flag = GER_RK_capital_state_trasferred_RAR_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_arabien_effect_tt

			set_autonomy = { 
				target = RAR 
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RAR_state = yes
						NOT = {
							state = 291
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RAR
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RAR_state = yes
						NOT = {
							state = 291
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RAR
					set_state_controller_to = RAR
					add_claim_by = RAR
					add_compliance = 25
				}
				RAR = {
					add_manpower = 60000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 7000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 8500
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.24
				hours = 0
			}	

		}
	}

	# What to do with the Turkish region
	GER_the_fate_of_turkey_area = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 50

		fire_only_once = yes

		visible = {
			has_completed_focus = GER_create_asian_reichskommissariat
			RAR = {
				exists = yes
			}
			NOT = {
				has_country_flag = GER_decided_on_turkish_status
			}
		}

		available = {
			is_subject = no
			has_completed_focus = GER_create_asian_reichskommissariat
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				344 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				350 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				352 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				348 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				353 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				800 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				354 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				349 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				355 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				798 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				356 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				345 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				346 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				49 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				347 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				343 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				339 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				342 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 344
				state = 350
				state = 352
				state = 348
				state = 353
				state = 800
				state = 354
				state = 349
				state = 355
				state = 798
				state = 356
				state = 345
				state = 346
				state = 49
				state = 347
				state = 343
				state = 339
				state = 342
			}
		}

		cost = 20

		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				TUR = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				TUR = { exists = no }
			}
			modifier = {
				add = 15
				RAR = { exists = yes }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_turkey_rar_effect_tt
				
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_additional_RAR_turkey_state = yes
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RAR
					add_compliance = 15
				}
				every_state = {	
					limit = {
						GER_is_additional_RAR_turkey_state = yes
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RAR
					set_state_controller_to = RAR
					add_claim_by = RAR
					add_compliance = 15
				}
			}	

			hidden_effect = {
				set_country_flag = GER_decided_on_turkish_status
			}
			
		}
	}

	# What to do with the Iranian region
	GER_the_fate_of_iran_area = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 49

		fire_only_once = yes

		visible = {
			has_completed_focus = GER_create_asian_reichskommissariat
			RAR = {
				exists = yes
			}
			NOT = {
				has_country_flag = GER_decided_on_iranian_status
			}
		}

		available = {
			is_subject = no
			has_completed_focus = GER_create_asian_reichskommissariat
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				419 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				421 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				420 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				417 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				413 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				266 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				411 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				412 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				418 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				416 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				414 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				410 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				1000 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1001 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1004 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1002 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1003 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 419
				state = 421
				state = 420
				state = 417
				state = 413
				state = 266
				state = 411
				state = 412
				state = 418
				state = 416
				state = 414
				state = 410
				state = 1000
				state = 1001
				state = 1004
				state = 1002
				state = 1003
			}
		}

		cost = 20

		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				PER = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				PER = { exists = no }
			}
			modifier = {
				add = 15
				RAR = { exists = yes }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_iran_rar_effect_tt
				
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_additional_RAR_iran_state = yes
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RAR
					add_compliance = 15
				}
				every_state = {	
					limit = {
						GER_is_additional_RAR_iran_state = yes
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RAR
					set_state_controller_to = RAR
					add_claim_by = RAR
					add_compliance = 15
				}
			}	

			hidden_effect = {
				set_country_flag = GER_decided_on_iranian_status
			}
			
		}
	}

	GER_reichskommissariat_hindustan = {

		icon = ger_reichskommissariats

		fire_only_once = yes

		visible = {
			has_completed_focus = GER_create_asian_reichskommissariat
			RHD = {
				exists = no
			}
		}

		priority = 47

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				439 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				440 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				441 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				787 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				442 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				445 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				444 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				415 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				267 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				443 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				433 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				428 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				438 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				437 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				427 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				429 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				436 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				425 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				424 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				423 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				320 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				321 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				422 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				426 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				435 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				431 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				430 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				432 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				434 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				640 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				288 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				323 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				324 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				733 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				758 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				322 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				757 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				601 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1009 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1007 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				988 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1008 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1012 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1005 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1006 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				987 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				989 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				986 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				991 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				983 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				982 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				984 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				985 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				990 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				998 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				999 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				997 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				996 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				994 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				993 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				995 = {
				 	is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 439
				state = 440
				state = 441
				state = 787
				state = 442
				state = 445
				state = 444
				state = 415
				state = 267
				state = 443
				state = 433
				state = 428
				state = 438
				state = 437
				state = 427
				state = 429
				state = 436
				state = 425
				state = 424
				state = 423
				state = 320
				state = 321
				state = 422
				state = 426
				state = 435
				state = 431
				state = 430
				state = 432
				state = 434
				state = 640
				state = 288
				state = 323
				state = 324
				state = 733
				state = 758
				state = 322
				state = 757
				state = 601
				state = 1009
				state = 1007
				state = 988
				state = 1008
				state = 1012
				state = 1005
				state = 1006
				state = 987
				state = 989
				state = 986
				state = 991
				state = 983
				state = 982
				state = 984
				state = 985
				state = 990
				state = 998
				state = 999
				state = 997
				state = 996
				state = 994
				state = 993
				state = 995
			}
		}

		cost = 35

		ai_will_do = {
			base = 5
			modifier = {
				add = 10
				RAJ = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				TIB = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				TIB = { exists = no }
			}
			modifier = {
				add = 10
				RAJ = { exists = no }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			439 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RHD_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RHD
				set_state_flag = GER_RK_capital_state_trasferred_RHD_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_hindustan_effect_tt

			set_autonomy = { 
				target = RHD 
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RHD_state = yes
						NOT = {
							state = 439
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RHD
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RHD_state = yes
						NOT = {
							state = 439
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RHD
					set_state_controller_to = RHD
					add_claim_by = RHD
					add_compliance = 25
				}
				RHD = {
					add_manpower = 90000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 9000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 900
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.25
				hours = 0
			}	

		}
	}

	GER_reichskommissariat_ostasien = {

		icon = ger_reichskommissariats

		fire_only_once = yes

		visible = {
			has_completed_focus = GER_create_asian_reichskommissariat
			ROA = {
				exists = no
			}
		}

		priority = 47

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				613 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				598 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				597 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				743 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				614 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				608 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				609 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				610 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				716 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				745 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				527 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				525 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				328 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				715 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				714 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				761 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				657 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				717 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				408 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				409 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				655 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				537 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				555 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				536 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				533 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				282 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				534 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				532 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				535 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				531 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				530 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				529 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				528 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				526 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				524 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				596 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				595 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				593 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				592 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				594 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				591 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				728 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				729 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				326 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				599 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				600 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				602 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				749 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				606 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				620 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				607 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				750 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				603 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				748 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				605 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				755 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				622 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				615 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				746 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				621 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				611 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				612 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				819 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				817 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				330 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				820 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				756 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				616 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				755 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				283 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				754 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				604 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				753 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				752 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				751 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				747 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				325 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				671 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				670 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				286 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				741 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				868 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				869 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				289 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				645 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				623 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				327 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				624 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				628 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				625 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				626 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				627 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				647 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				648 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				646 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				638 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				632 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				744 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1025 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1026 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1027 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1028 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1029 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1030 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1031 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1032 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1033 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1034 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1035 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1036 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1037 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1038 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1039 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1040 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1041 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1043 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1044 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1045 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1046 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1017 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1018 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1019 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1020 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 613
				state = 598
				state = 597
				state = 743
				state = 614
				state = 608
				state = 609
				state = 610
				state = 716
				state = 745
				state = 527
				state = 525
				state = 328
				state = 715
				state = 714
				state = 761
				state = 657
				state = 717
				state = 408
				state = 409
				state = 655
				state = 537
				state = 555
				state = 536
				state = 533
				state = 282
				state = 534
				state = 532
				state = 535
				state = 531
				state = 530
				state = 529
				state = 528
				state = 526
				state = 524
				state = 596
				state = 595
				state = 593
				state = 592
				state = 594
				state = 591
				state = 728
				state = 729
				state = 326
				state = 599
				state = 600
				state = 602
				state = 749
				state = 606
				state = 620
				state = 607
				state = 750
				state = 603
				state = 748
				state = 605
				state = 755
				state = 622
				state = 615
				state = 746
				state = 621
				state = 611
				state = 612
				state = 819
				state = 817
				state = 330
				state = 820
				state = 756
				state = 616
				state = 755
				state = 283
				state = 754
				state = 604
				state = 753
				state = 752
				state = 751
				state = 747
				state = 325
				state = 671
				state = 670
				state = 286
				state = 741
				state = 868
				state = 869
				state = 289
				state = 645
				state = 623
				state = 327
				state = 624
				state = 628
				state = 625
				state = 626
				state = 627
				state = 647
				state = 648
				state = 646
				state = 638
				state = 632 
				state = 744 
				state = 1025
				state = 1026
				state = 1027
				state = 1028
				state = 1029
				state = 1030
				state = 1031
				state = 1032
				state = 1033
				state = 1034
				state = 1035
				state = 1036
				state = 1037
				state = 1038
				state = 1039
				state = 1040
				state = 1041
				state = 1043
				state = 1044
				state = 1045
				state = 1046
				state = 1017
				state = 1018
				state = 1019
				state = 1020
			}
		}

		cost = 35

		ai_will_do = {
			base = 5
			modifier = {
				add = 10
				CHI = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				JAP = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				JAP = { exists = no }
			}
			modifier = {
				add = 10
				CHI = { exists = no }
			}
			modifier = {
				add = 10
				MON = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				MON = { exists = no }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			743 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_ROA_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = ROA
				set_state_flag = GER_RK_capital_state_trasferred_ROA_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_ostasien_effect_tt

			set_autonomy = { 
				target = ROA 
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_ROA_state = yes
						NOT = {
							state = 743
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = ROA
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_ROA_state = yes
						NOT = {
							state = 743
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = ROA
					set_state_controller_to = ROA
					add_claim_by = ROA
					add_compliance = 25
				}
				ROA = {
					add_manpower = 90000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 9000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 900
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 6 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.26
				hours = 0
			}	

		}
	}


	GER_reichskommissariat_australasien = {

		icon = ger_reichskommissariats

		fire_only_once = yes

		visible = {
			has_completed_focus = GER_create_asian_reichskommissariat
			RAA = {
				exists = no
			}
		}

		priority = 47

		available = {
			is_subject = no
			OR = {
				has_completed_focus = GER_heed_von_neuraths_concerns
				has_completed_focus = GER_reorganize_the_wehrmacht
			}
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				979 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1024 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1023 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1022 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				1021 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				523 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				737 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				634 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				669 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				668 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				738 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				721 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				667 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				673 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				334 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				333 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				335 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				672 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				336 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				724 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				711 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				712 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				684 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				725 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				639 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				643 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				633 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				642 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				734 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				635 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				636 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				726 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				641 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				284 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				723 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				872 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				520 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				870 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				522 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				871 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				519 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				517 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				518 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				285 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				521 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
				873 = {
				    is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 979
				state = 523
				state = 737
				state = 634
				state = 669
				state = 668
				state = 738
				state = 721
				state = 667
				state = 673
				state = 334
				state = 333
				state = 335
				state = 672
				state = 336
				state = 724
				state = 711
				state = 712
				state = 684
				state = 725
				state = 639
				state = 643
				state = 633
				state = 642
				state = 734
				state = 635
				state = 636
				state = 726
				state = 641
				state = 284
				state = 723
				state = 872
				state = 520
				state = 870
				state = 522
				state = 871
				state = 519
				state = 517
				state = 518
				state = 285
				state = 521
				state = 873
				state = 1023
				state = 1024
				state = 1021
				### IMPASSABLE, INCLUDED BUT NOT REQURED ###
				state = 674
				state = 1022
			}
		}

		cost = 30

		ai_will_do = {
			base = 5
			modifier = {
				add = 10
				AST = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				INS = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				INS = { exists = no }
			}
			modifier = {
				add = 10
				AST = { exists = no }
			}
			modifier = {
				add = 10
				NZL = { has_capitulated = yes }
			}
			modifier = {
				add = 10
				NZL = { exists = no }
			}
		}

		complete_effect = {

			GER_improve_rosenbergs_trait_effect = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			979 = {
				IF = {
					limit = {
						OWNER = {
							NOT = {
								original_tag = GER
							}
						}
					}
					OWNER = {
						set_country_flag = GER_RK_capital_state_trasferred_RAA_victim_flag
						set_country_flag = GER_reichskommissariats_puppet_flag
					}
				}
				transfer_state_to = RAA
				set_state_flag = GER_RK_capital_state_trasferred_RAA_flag
				add_compliance = 25
			}

			custom_effect_tooltip = GER_reichskommissariat_australasien_effect_tt

			set_autonomy = { 
				target = RAA 
				autonomy_state = autonomy_integrated_puppet 
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						GER_is_RAA_state = yes
						NOT = {
							state = 979
						}
						OR = {
							is_owned_by = ROOT
							owner = { is_subject_of = ROOT }
						}
					}
					transfer_state_to = RAA
					add_compliance = 25
				}
				every_state = {	
					limit = {
						GER_is_RAA_state = yes
						NOT = {
							state = 979
						}
						NOT = {
							OR = {
								is_owned_by = ROOT
								any_country = {
									is_subject_of = ROOT
									owns_state = PREV
								}
							}
						}
					}
					add_contested_owner = RAA
					set_state_controller_to = RAA
					add_claim_by = RAA
					add_compliance = 25
				}
				RAA = {
					add_manpower = 70000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 7000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 700
						producer = GER
					}	
					inherit_technology = GER
					add_offsite_building = { type = arms_factory level = 3 }
					load_oob = "RK_OOB"
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_reichskommissariats.27
				hours = 0
			}	

		}
	}

}

# The Generic Political Actions Menu/Category
political_actions = {

	# The Shield of Democracy 
	GER_democratic_shield_send_support = {
		priority = 100
		icon = ger_military_buildup

		allowed = {
			original_tag = GER
		}

		visible = {		
			has_completed_focus = GER_democratic_shield
			ROOT = { has_government = democratic }
		}

		fire_only_once = yes

		available = {
			has_completed_focus = GER_democratic_shield
			ROOT = { has_government = democratic }
		}

		target_trigger = {
			FROM = {
				has_government = democratic
				is_subject = no
				AND = {
					has_war = yes
					NOT = {
						has_war_with = ROOT
						ROOT = {
							any_allied_country = {
								has_war_with = FROM
							}
						}
						FROM = { is_justifying_wargoal_against = ROOT }
						ROOT = { is_justifying_wargoal_against = FROM }
						FROM = { has_wargoal_against = ROOT }
						ROOT = { has_wargoal_against = FROM }
					}
				}
			}
		}

		target_root_trigger = {
			original_tag = GER
			has_civil_war = no
			has_completed_focus = GER_democratic_shield
		}

		days_remove = 35

		days_re_enable = 365

		remove_effect = {
			effect_tooltip = {
				FROM = {
					add_equipment_to_stockpile = {
						type = infantry_equipment
						amount = 3000
						producer = ROOT
					}
					add_equipment_to_stockpile = {
						type = support_equipment
						amount = 300
						producer = ROOT
					}
					add_opinion_modifier = {
						target = ROOT
						modifier = SOV_sent_us_weapons
					}
				}
			}
			hidden_effect = {
				FROM = { country_event = { id = wuw_GER_realpolitik.4 } }
			}
		}

		ai_hint_pp_cost = 25
		custom_cost_trigger = {
			has_political_power > 24
			command_power > 24
		}
		custom_cost_text = decision_cost_CP_25_pp_25

		complete_effect = {
			hidden_effect = {
				add_political_power = -25
				add_command_power = -25
			}

		}

		ai_will_do = {
			base = 50
		}
	}

	# Reinstate Wilhelm IV into the line of succession
	reinstate_wilhelm_iv_succession_rights = {

		allowed = {
			original_tag = GER
		}

		available = {

		}

		cost = 100

		fire_only_once = yes

		ai_will_do = {
			factor = 0
		}

		visible = {
			has_war = no
			has_government = neutrality
			has_country_flag = backed_down_netherlands_kaiser
		}

		complete_effect = {
			add_stability = -0.10
			add_popularity = { 
				ideology = neutrality 
				popularity = -0.05 
			}
			custom_effect_tooltip = reinstate_wilhelm_iv_succession_rights_tt
			hidden_effect = {
				set_country_flag = reinstated_wilhelm_iv_succession_rights
			}
		}
	}

	# Agnatic-Cognatic Primogeniture
	modernize_the_succession_laws = {

		allowed = {
			original_tag = GER
		}

		available = {

		}

		cost = 150

		fire_only_once = yes

		ai_will_do = {
			factor = 0
		}

		visible = {
			has_war = no
			has_government = neutrality
			has_country_flag = reinstated_wilhelm_iv_succession_rights
		}

		complete_effect = {
			add_stability = 0.05
			custom_effect_tooltip = modernize_the_succession_laws_tt
			hidden_effect = {
				set_country_flag = modernized_succession_laws
			}
		}
	}

	# Recall von Lettow-Vorbeck to Active Service
	recall_von_lettow_vorbeck = {

		allowed = {
			original_tag = GER
		}

		visible = {
			OR = {
				has_country_leader = { ruling_only = yes character = GER_wilhelm_ii }
				has_country_leader = { ruling_only = yes character = GER_wilhelm_iii }
				has_country_leader = { ruling_only = yes character = GER_victoria }
				has_completed_focus = GER_monarchist_sentiment
			}
			NOT = { 
				has_global_flag = von_lettow_is_in_a_country 
			}
		}

		available = {
			has_civil_war = no
		}

		cost = 25

		fire_only_once = yes

		ai_will_do = {
			base = 15
		}

		complete_effect = {
			hidden_effect = {
				set_global_flag = von_lettow_is_in_a_country
			}
			custom_effect_tooltip = recall_von_lettow_vorbeck_tt
		}
	}

	# Safety regulations
	GER_sharpen_air_safety_regulations = {

		allowed = {
			original_tag = GER
		}

		available = {

		}

		cost = 50

		fire_only_once = yes

		ai_will_do = {
			base = 0
		}

		visible = {
			has_government = neutrality
		}

		complete_effect = {
			add_timed_idea = { idea = GER_air_safety_regulations days = 1095 }
			set_global_flag = GER_air_safety_regulations_flag
		}
	}
}

foreign_politics = {

	# Titles Deprivation Act 1917
	request_restoration_of_british_titles = {

		allowed = {
			original_tag = GER
		}

		available = {
			ENG = { 
				has_opinion = { 
					target = GER 
					value > 79 
				} 
			}
			custom_trigger_tooltip = {
				tooltip = hindenburg_destroyed_tt
				NOT = { has_global_flag = hindenburg_destroyed }
			}
		}

		cost = 150

		fire_only_once = yes

		ai_will_do = {
			factor = 0
		}

		visible = {
			has_war = no
			has_government = neutrality
			OR = {
				has_completed_focus = GER_ally_the_shade
				has_completed_focus = GER_anglo_germanic_defense_pact
			}
			has_global_flag = ENG_accepted_GER_diplomatic_overtures
			has_country_flag = modernized_succession_laws
		}

		complete_effect = {
			ENG = { 
				country_event = { 
					id = wtt_germany.999 
					days = 1 
				} 
			}
			custom_effect_tooltip = request_restoration_of_british_titles_tt
			hidden_effect = { set_global_flag = hindenburg_event_in_progress }
		}
	}

	# Demand Polish War Participation
	GER_request_polish_war_participation = {

		icon = generic_prepare_civil_war

		allowed = {
			original_tag = GER
		}

		available = {
			has_war_with = SOV
			NOT = { is_in_faction_with = POL }
		}

		cost = 50

		fire_only_once = yes

		ai_will_do = {
			factor = 200
		}

		visible = {
			has_country_flag = poland_traded_danzig
			has_completed_focus = GER_tackle_the_communist_threat
		}

		complete_effect = {
			POL = { country_event = { id = wtt_germany.65 hours = 6 } }
		}

	}

	# Install a Loyal Puppet Government in Hungary
	GER_install_franz_anton_bach_in_hungary = {

		icon = GFX_decision_oppression

		allowed = {
			original_tag = GER
		}

		visible = {
			has_subject = HUN
			HUN = {
				has_character = HUN_franz_anton_bach
			}
			has_government = fascism
			NOT = { 
				has_global_flag = GER_installed_bach_as_leader_of_hun_flag 
			}
		}

		available = {
			has_civil_war = no
			has_subject = HUN
		}

		cost = 25

		fire_only_once = yes

		ai_will_do = {
			base = 5
		}

		complete_effect = {
			hidden_effect = {
				set_global_flag = GER_installed_bach_as_leader_of_hun_flag
				HUN = {
					set_party_name = {
						ideology = fascism
						long_name = HUN_volksbund_party_long
						name = HUN_volksbund_party
					}	
					add_country_leader_role = {
					    character = HUN_franz_anton_bach
					    promote_leader = yes
					    country_leader = {
					        ideology = nazism
					        expire = "1965.1.1.1"
					        traits = { nazi_sympathizer volksgruppenfurher_der_volksbund }
					    }
					}
				}
			}
			custom_effect_tooltip = GER_install_franz_anton_bach_in_hungary_tt
			every_country = {
				limit = {
					original_tag = HUN
					is_subject_of = ROOT
				}
				add_stability = -0.05
				add_political_power = 50
				add_manpower = 10000
				add_autonomy_score = { 
					value = -100
					localization = GER_enforced_german_leadership
				}	
			}
		}
	}

}

#Category only allowed for GER
GER_military_buildup = {

	GER_plan_z = {

		icon = generic_naval

		available = {
			has_navy_size = {
				unit = battleship
				size > 9
			}
			has_navy_size = {
				unit = battle_cruiser
				size > 2
			}
			has_navy_size = {
				unit = carrier
				size > 3
			}
			has_navy_size = {
				unit = heavy_cruiser
				size > 19
			}
			has_navy_size = {
				unit = light_cruiser
				size > 19
			}
			has_navy_size = {
				unit = destroyer
				size > 99
			}
		}

		fire_only_once = yes
		days_mission_timeout = 1800
		is_good = no
		activation = {
			has_completed_focus = GER_plan_z
		}


		visible = {
			has_completed_focus = GER_plan_z
		}

		complete_effect = {
			add_war_support = 0.05
			navy_experience = 150
		}


	}

	GER_jaegernotprogramm = {

		icon = generic_air

		available = {
			has_war = yes
			AND = {
				has_deployed_air_force_size = {
					type = fighter
					size < 750
				}
				has_equipment = {
					small_plane_airframe < 250
				}
			}
			NOT = {
				has_idea = GER_jaegernotprogramm
			}
		}

		cost = 50

		fire_only_once = yes

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0
				OR = {
					has_country_flag = GER_AI_RANDOM_COMMUNIST_STALINIST
					has_game_rule = {
						rule = GER_ai_behavior
						option = GER_COMMUNIST_STALINIST
					}
					has_country_flag = GER_AI_RANDOM_COMMUNIST_SPARTACUS
					has_game_rule = {
						rule = GER_ai_behavior
						option = GER_COMMUNIST_SPARTACUS
					}
				}
			}
		}

		visible = {
			has_war = yes
			AND = {
				has_deployed_air_force_size = {
					type = fighter
					size < 750
				}
				has_equipment = {
					small_plane_airframe < 250
				}
			}
			NOT = {
				has_idea = GER_jaegernotprogramm
			}
		}

		complete_effect = {
			add_stability = -0.05
			add_war_support = -0.05
			add_timed_idea = { idea = GER_jaegernotprogramm days = 90 }
		}
	}
}

special_projects = {
	GER_begin_heavy_water_production = {
		allowed = {
			original_tag = GER
			has_dlc = "La Resistance"
		}
		available = {
			921 = {
				CONTROLLER = {
					OR = {
						tag = ROOT
						is_subject_of = ROOT
					}
				}
			}
		}
		visible = { has_tech = atomic_research }
		cost = 0
		ai_will_do = {
			factor = 5
			modifier = {
				factor = 2
				NOT = { has_government = fascism } 
			}
		}
		cancel_trigger = { NOT = { has_global_flag = GER_heavy_water_production_underway } } #can be removed via intelligence ops
		days_remove = 365
		remove_effect = {
			add_breakthrough_progress = {
				specialization = specialization_nuclear
				value = 0.5
			}
		}
		complete_effect = { set_global_flag = GER_heavy_water_production_underway }
	}

	GER_dismantle_maginot = {

		icon = generic_construction

		available = {
			#has_war = yes
			controls_state = 28
			if = {
				limit = {
					FRA = { has_completed_focus = FRA_extend_the_maginot_line }
				}
				controls_state = 18
				controls_state = 29
			}
		}

		cost = 50
		fire_only_once = yes

		ai_will_do = {
			factor = 0
		}
		visible = {
			#has_war = yes
			controls_state = 28
			if = {
				limit = {
					FRA = { has_completed_focus = FRA_extend_the_maginot_line }
				}
				controls_state = 18
				controls_state = 29
			}
		}
		days_remove = 180
		modifier = {
			civilian_factory_use = 5
		}
		remove_effect = {
			28 = {
				set_building_level = {
					type = bunker
					level = 2
					province = {
						all_provinces = yes
						limit_to_border = no
						level > 2
					}
				}
			}
			if = {
				limit = {
					FRA = { has_completed_focus = FRA_extend_the_maginot_line }
				}
				18 = {
					set_building_level = {
						type = bunker
						level = 2
						province = {
							all_provinces = yes
							limit_to_border = no
							level > 2
						}
					}
				}
				29 = {
					set_building_level = {
						type = bunker
						level = 2
						province = {
							all_provinces = yes
							limit_to_border = no
							level > 2
						}
					}
				}
			}
			if = {
				limit = {
					has_idea = FRA_protected_by_the_maginot_line
				}
				remove_ideas = FRA_protected_by_the_maginot_line
			}
		}
		complete_effect = {
			if = {
				limit = { FRA = { has_completed_focus = FRA_extend_the_maginot_line } }
				add_timed_idea = { idea = GER_dismantle_maginot days = 270 }
				else = {
					add_timed_idea = { idea = GER_dismantle_maginot days = 180 }
				}
			}
		}
	}

	GER_dismantle_czechoslovakian_forts = {

		icon = generic_construction

		available = {
			#has_war = yes
			controls_state = 69 # Sudetenland
			controls_state = 972 # Southern Sudetenland
			controls_state = 74 # Eastern Sudetenland
			controls_state = 9 # Bohemia
			controls_state = 75 # Moravia
		}

		cost = 50
		fire_only_once = yes

		ai_will_do = {
			factor = 0
		}
		visible = {
			#has_war = yes
			controls_state = 69 # Sudetenland
			controls_state = 972 # Southern Sudetenland
			controls_state = 74 # Eastern Sudetenland
			controls_state = 9 # Bohemia
			controls_state = 75 # Moravia
		}
		days_remove = 180
		modifier = {
			civilian_factory_use = 3
		}
		remove_effect = {
			69 = {
				set_building_level = {
					type = bunker
					level = 1
					province = {
						all_provinces = yes
						limit_to_border = no
						level > 1
					}
				}
			}
			74 = {
				set_building_level = {
					type = bunker
					level = 1
					province = {
						all_provinces = yes
						limit_to_border = no
						level > 1
					}
				}
			}
			9 = {
				set_building_level = {
					type = bunker
					level = 1
					province = {
						all_provinces = yes
						limit_to_border = no
						level > 1
					}
				}
			}
			75 = {
				set_building_level = {
					type = bunker
					level = 1
					province = {
						all_provinces = yes
						limit_to_border = no
						level > 1
					}
				}
			}
			if = {
				limit = {
					72 = {
						controller = {
							OR = {
								tag = ROOT
								is_subject_of = ROOT
							}
						}
					}
					71 = {
						controller = {
							OR = {
								tag = ROOT
								is_subject_of = ROOT
							}
						}
					}
				}
				72 = {
					set_building_level = {
						type = bunker
						level = 1
						province = {
							all_provinces = yes
							limit_to_border = no
							level > 1
						}
					}
				}
				71 = {
					set_building_level = {
						type = bunker
						level = 1
						province = {
							all_provinces = yes
							limit_to_border = no
							level > 1
						}
					}
				}
			}
			if = {
				limit = {
					70 = {
						controller = {
							OR = {
								tag = ROOT
								is_subject_of = ROOT
							}
						}
					}
				}
				70 = {
					set_building_level = {
						type = bunker
						level = 1
						province = {
							all_provinces = yes
							limit_to_border = no
							level > 1
						}
					}
				}
			}
			if = {
				limit = {
					73 = {
						controller = {
							OR = {
								tag = ROOT
								is_subject_of = ROOT
							}
						}
					}
					664 = {
						controller = {
							OR = {
								tag = ROOT
								is_subject_of = ROOT
							}
						}
					}
				}
				73 = {
					set_building_level = {
						type = bunker
						level = 1
						province = {
							all_provinces = yes
							limit_to_border = no
							level > 1
						}
					}
				}
				664 = {
					set_building_level = {
						type = bunker
						level = 1
						province = {
							all_provinces = yes
							limit_to_border = no
							level > 1
						}
					}
				}
			}
		}
		complete_effect = {
			add_timed_idea = { idea = GER_dismantle_czechoslovakian_forts days = 180 }
		}
	}
}

GER_aid_hun_rom_democratic_civil_war = {

	GER_aid_hun_democratic_civil_war = {

		icon = generic_prepare_civil_war

		available = {
			HUN = {
				NOT = { has_government = democratic }
				NOT = { has_war_with = GER }
				has_civil_war = yes
				exists = yes
				any_enemy_country = {
					original_tag = HUN
					has_government = democratic
				}
			}
		}

		cost = 0

		ai_will_do = {
			factor = 200
		}

		#Available if democratic civil war
		visible = {
			#has_completed_focus = GER_align_hungary #TODO_Danne: MM: Old focuses in the industrial branch, probable needs a different one if we are reusing these decisions
			HUN = {
				has_civil_war = yes
			}
			GER = { has_government = democratic }
		}

		complete_effect = {
			if = {
				limit = {
					HUN = { is_in_faction_with = GER }
				}
				remove_from_faction = HUN
				random_country = {
					limit = {
						original_tag = HUN
						has_government = democratic
						has_war_with = HUN
					}
					GER = { add_to_faction = PREV }
				}
			}
			random_country = {
				limit = {
					original_tag = HUN
					has_government = democratic
					has_war_with = HUN
				}
				GER = { add_to_war = { targeted_alliance = PREV enemy = HUN hostility_reason = asked_to_join } }
			}
		}
	}

	GER_aid_rom_democratic_civil_war = {

		icon = generic_prepare_civil_war

		available = {
			ROM = {
				NOT = { has_government = democratic }
				NOT = { has_war_with = GER }
				has_civil_war = yes
				exists = yes
				any_enemy_country = {
					original_tag = ROM
					has_government = democratic
				}
			}
		}

		cost = 0

		ai_will_do = {
			factor = 200
		}

		#Available if democratic civil war
		visible = {
			#has_completed_focus = GER_align_romania #TODO_Danne: MM: Old focuses in the industrial branch, probable needs a different one if we are reusing these decisions
			ROM = {
				has_civil_war = yes
			}
			GER = { has_government = democratic }
		}

		complete_effect = {
			if = {
				limit = {
					ROM = { is_in_faction_with = GER }
				}
				remove_from_faction = ROM
				random_country = {
					limit = {
						original_tag = ROM
						has_government = democratic
						has_war_with = ROM
					}
					GER = { add_to_faction = PREV }
				}
			}
			random_country = {
				limit = {
					original_tag = ROM
					has_government = democratic
					has_war_with = ROM
				}
				GER = { add_to_war = { targeted_alliance = PREV enemy = ROM hostility_reason = asked_to_join } }
			}
		}
	}

}

GER_austro_hungarian_empire = {

	GER_reform_austro_hungarian_empire = {

		allowed = {
			OR = {
				original_tag = AUS
				original_tag = HUN
				original_tag = CZE
			}
		}

		available = {
			AUS = {
				OR = {
					has_government = neutrality
					neutrality > 0.4
				}
			}
			HUN = {
				OR = {
					has_government = neutrality
					neutrality > 0.4
				}
			}
			CZE = {
				OR = {
					has_government = neutrality
					neutrality > 0.4
					exists = no
				}
			}
		}

		visible = {
			OR = {
				GER = {
					OR = {
						has_completed_focus = GER_rekindle_imperial_sentiment_ww
						has_completed_focus = GER_rekindle_imperial_sentiment
					}
					has_government = neutrality
				}
				TUR = {
					has_government = neutrality
					has_completed_focus = TUR_press_the_austro_hungarian_claim
				}
			}
			AUS = {
				exists = yes
			}
			HUN = {
				exists = yes
			}
			NOT = { has_global_flag = GER_reformed_austro_hungarian_empire }
		}

		cost = 10
		fire_only_once = yes

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				original_tag = HUN
			}
			modifier = {
				factor = 0
				original_tag = CZE
			}
		}

		complete_effect = {
			custom_effect_tooltip = GER_reform_austro_hungarian_empire_tt
			hidden_effect = { set_global_flag = GER_reformed_austro_hungarian_empire }
			if = {
				limit = {
					original_tag = AUS
				}
				HUN = { country_event = { id = wtt_germany.68 hours = 1 } }
				IF = {
					limit = {
						CZE = {
							exists = yes
						}
					}
					CZE = { country_event = { id = wtt_germany.68 hours = 3 } }
				}
			}
			if = {
				limit = {
					original_tag = HUN
				}
				AUS = { country_event = { id = wtt_germany.68 hours = 1 } }
				IF = {
					limit = {
						CZE = {
							exists = yes
						}
					}
					CZE = { country_event = { id = wtt_germany.68 hours = 3 } }
				}
			}
			if = {
				limit = {
					original_tag = CZE
				}
				HUN = { country_event = { id = wtt_germany.68 hours = 1 } }
				AUS = { country_event = { id = wtt_germany.68 hours = 3 } }
			}
		}
	}
}

GER_reich_labor_service_cat = {
	GER_western_state_development = {
		priority = 1
		icon = GFX_decision_generic_construction

		ai_will_do = { 
			base = 10
			modifier = {
				factor = 2
				has_political_power > 100
			}
		}

		available = {
			56 = { is_fully_controlled_by = ROOT }
			59 = { is_fully_controlled_by = ROOT }
			57 = { is_fully_controlled_by = ROOT }
			55 = { is_fully_controlled_by = ROOT }
			51 = { is_fully_controlled_by = ROOT }
			51 = { is_fully_controlled_by = ROOT }
			42 = { is_fully_controlled_by = ROOT }
		}

		cancel_trigger = { 
			NOT = { 
				56 = { is_controlled_by = ROOT }
				59 = { is_controlled_by = ROOT }
				57 = { is_controlled_by = ROOT }
				55 = { is_controlled_by = ROOT }
				51 = { is_controlled_by = ROOT }
				51 = { is_controlled_by = ROOT }
				42 = { is_controlled_by = ROOT }
			} 
		}

		highlight_states = {
			highlight_state_targets = {
				state = 56 #Weser-Ems
				state = 59 #Hannover
				state = 57 #Westfalen
				state = 55 #Hessen
				state = 51 #Rhineland
				state = 42 #Moselland
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 56 #Weser-Ems
				state = 59 #Hannover
				state = 57 #Westfalen
				state = 55 #Hessen
				state = 51 #Rhineland
				state = 42 #Moselland
			}
		}

		cost = 50

		fire_only_once = yes

		days_remove = 30

		modifier = {
			civilian_factory_use = 3
		}
		
		remove_effect = {
			every_core_state = {
				limit = {
					OR = {
						state = 56 #Weser-Ems
						state = 59 #Hannover
						state = 57 #Westfalen
						state = 55 #Hessen
						state = 51 #Rhineland
						state = 42 #Moselland
					}
				}
				add_extra_state_shared_building_slots = 1
				add_dynamic_modifier = { 
					modifier = GER_reichs_labor_initiative_modifier
					days = 545
					scope = GER
				}
			}
		}
	}
	GER_northern_state_development = {
		priority = 1
		icon = GFX_decision_generic_construction

		ai_will_do = { 
			base = 10
			modifier = {
				factor = 2
				has_political_power > 100
			}
		}

		available = {
			909 = { is_fully_controlled_by = ROOT }
			58 = { is_fully_controlled_by = ROOT }
			61 = { is_fully_controlled_by = ROOT }
			62 = { is_fully_controlled_by = ROOT }
			63 = { is_fully_controlled_by = ROOT }
		}

		cancel_trigger = { 
			NOT = { 
				909 = { is_controlled_by = ROOT }
				58 = { is_controlled_by = ROOT }
				61 = { is_controlled_by = ROOT }
				62 = { is_controlled_by = ROOT }
				63 = { is_controlled_by = ROOT }
			} 
		}

		highlight_states = {
			highlight_state_targets = {
				state = 909 #Schleswig
				state = 58 #Holstein
				state = 61 #Mecklenburg
				state = 62 #Vorpommern
				state = 63 #Hinterpommern
			}
		}

		cost = 50

		fire_only_once = yes

		days_remove = 30

		modifier = {
			civilian_factory_use = 3
		}
		
		remove_effect = {
			every_core_state = {
				limit = {
					OR = {
						state = 909 #Schleswig
						state = 58 #Holstein
						state = 61 #Mecklenburg
						state = 62 #Vorpommern
						state = 63 #Hinterpommern
					}
				}
				add_extra_state_shared_building_slots = 1
				add_dynamic_modifier = { 
					modifier = GER_reichs_labor_initiative_modifier
					days = 545
					scope = GER
				}
			}
		}
	}
	GER_eastern_state_development = {
		priority = 1
		icon = GFX_decision_generic_construction

		ai_will_do = { 
			base = 10
			modifier = {
				factor = 2
				has_political_power > 100
			}
		}

		available = {
			763 = { is_fully_controlled_by = ROOT }
			5 = { is_fully_controlled_by = ROOT }
			66 = { is_fully_controlled_by = ROOT }
			67 = { is_fully_controlled_by = ROOT }
		}

		cancel_trigger = { 
			NOT = { 
				763 = { is_controlled_by = ROOT }
				5 = { is_controlled_by = ROOT }
				66 = { is_controlled_by = ROOT }
				67 = { is_controlled_by = ROOT }
			}
			if = {
				limit = {
					85 = { is_core_of = ROOT }
				}
				NOT = {
					85 = { is_controlled_by = ROOT }
				}
			}
			if = {
				limit = {
					807 = { is_core_of = ROOT }
				}
				NOT = {
					807 = { is_controlled_by = ROOT }
				}
			}
			if = {
				limit = {
					86 = { is_core_of = ROOT }
				}
				NOT = {
					86 = { is_controlled_by = ROOT }
				}
			}
			if = {
				limit = {
					762 = { is_core_of = ROOT }
				}
				NOT = {
					762 = { is_controlled_by = ROOT }
				}
			}
			if = {
				limit = {
					188 = { is_core_of = ROOT }
				}
				NOT = {
					188 = { is_controlled_by = ROOT }
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 763 #Königsberg
				state = 5 #Ermland-Masuren
				state = 66 #Niederschlesien
				state = 67 #Oberschlesien
				state = 85 #Danzig, hinting to the player they can develop this state too
				state = 807 #Gdynia, hinting to the player they can develop this state too
				state = 86 #Poznan, hinting to the player they can develop this state too
				state = 762 #Katowice, hinting to the player they can develop this state too
				state = 188 #Memel, hinting to the player they can develop this state too
			}
		}

		cost = 50

		fire_only_once = yes

		days_remove = 30

		modifier = {
			civilian_factory_use = 3
		}
		
		remove_effect = {
			every_core_state = {
				limit = {
					OR = {
						state = 763 #Königsberg
						state = 5 #Ermland-Masuren
						state = 66 #Niederschlesien
						state = 67 #Oberschlesien
						state = 85 #Danzig - in case Germany has cored it
						state = 807 #Gdynia - in case Germany has cored it
						state = 86 #Poznan - in case Germany has cored it
						state = 762 #Katowice- in case Germany has cored it
						state = 188 #Memel - in case Germany has cored it
					}
				}
				add_extra_state_shared_building_slots = 1
				add_dynamic_modifier = { 
					modifier = GER_reichs_labor_initiative_modifier
					days = 545
					scope = GER
				}
			}
		}
	}
	GER_central_state_development = {
		priority = 1
		icon = GFX_decision_generic_construction

		ai_will_do = { 
			base = 10
			modifier = {
				factor = 2
				has_political_power > 100
			}
		}

		available = {
			64 = { is_fully_controlled_by = ROOT }
			65 = { is_fully_controlled_by = ROOT }
			60 = { is_fully_controlled_by = ROOT }
			68 = { is_fully_controlled_by = ROOT }
		}

		cancel_trigger = { 
			NOT = { 
				64 = { is_controlled_by = ROOT }
				65 = { is_controlled_by = ROOT }
				60 = { is_controlled_by = ROOT }
				68 = { is_controlled_by = ROOT }
			} 
		}

		highlight_states = {
			highlight_state_targets = {
				state = 64 #Brandenburg
				state = 65 #Sachsen
				state = 60 #Thüringen
				state = 68 #Ostmark
			}
		}

		cost = 50

		fire_only_once = yes

		days_remove = 30

		modifier = {
			civilian_factory_use = 3
		}
		
		remove_effect = {
			every_core_state = {
				limit = {
					OR = {
						state = 64 #Brandenburg
						state = 65 #Sachsen
						state = 60 #Thüringen
						state = 68 #Ostmark
					}
				}
				add_extra_state_shared_building_slots = 1
				add_dynamic_modifier = { 
					modifier = GER_reichs_labor_initiative_modifier
					days = 545
					scope = GER
				}
			}
		}
	}
	GER_southern_state_development = {
		priority = 1
		icon = GFX_decision_generic_construction

		ai_will_do = { 
			base = 10
			modifier = {
				factor = 2
				has_political_power > 100
			}
		}

		available = {
			52 = { is_fully_controlled_by = ROOT }
			978 = { is_fully_controlled_by = ROOT }
			50 = { is_fully_controlled_by = ROOT }
			53 = { is_fully_controlled_by = ROOT }
			54 = { is_fully_controlled_by = ROOT }
		}

		cancel_trigger = { 
			NOT = { 
				52 = { is_controlled_by = ROOT }
				978 = { is_fully_controlled_by = ROOT }
				50 = { is_controlled_by = ROOT }
				53 = { is_controlled_by = ROOT }
				54 = { is_controlled_by = ROOT }
			} 
		}

		highlight_states = {
			highlight_state_targets = {
				state = 50 #Württemberg
				state = 978 #Baden
				state = 52 #Oberbayern
				state = 53 #Niederbayern
				state = 54 #Franken
			}
		}

		cost = 50

		fire_only_once = yes

		days_remove = 30

		modifier = {
			civilian_factory_use = 3
		}
		
		remove_effect = {
			every_core_state = {
				limit = {
					OR = {
						state = 50 #Württemberg
						state = 978 #Baden
						state = 52 #Oberbayern
						state = 53 #Niederbayern
						state = 54 #Franken
					}
				}
				add_extra_state_shared_building_slots = 1
				add_dynamic_modifier = { 
					modifier = GER_reichs_labor_initiative_modifier
					days = 545
					scope = GER
				}
			}
		}
	}
}

GER_integration_of_puppet_economies_dec_cat = {
	GER_develop_puppet = {
		priority = 2
		icon = GFX_decision_generic_construction

		ai_will_do = { 
			base = 10
			modifier = {
				factor = 2
				has_political_power > 160
			}
		}

		target_array = ROOT.subjects

		target_root_trigger = {
			has_civil_war = no
		}

		available = { #This needs to be checked immediately to prevent activating more decisions than allowed while the game is paused
			custom_trigger_tooltip = {
				tooltip = GER_num_of_puppet_economies_integrated_tt
				NOT = { check_variable = { GER_puppet_economies_integrated = GER_puppet_economies_integration_cap compare = greater_than_or_equals } }
			}
			NOT = {
				FROM = {
					has_country_flag = GER_puppet_exploited_flag
				}
			}
		}
		
		cancel_trigger = {
			OR = {
				NOT = { has_subject = FROM }
				FROM = {
					OR = {
						has_capitulated = yes
						exists = no
					}
				}
			}
		}

		cost = 120

		days_remove = GER_puppet_economies_integration_days #365

		modifier = {
			consumer_goods_factor = 0.1
			industrial_capacity_factory = 0.02
		}

		cancel_effect = {
			FROM = {
				if = {
					limit = {
						has_idea = GER_german_development_aid
					}
					remove_ideas = GER_german_development_aid
				}
				clr_country_flag = GER_puppet_development_flag
			}
			subtract_from_variable = { GER_puppet_economies_integrated = 1 }
		}
		
		complete_effect = {
			FROM = {
				country_event = GOT_GER_integrated_puppet_economies.01
				add_ideas = GER_german_development_aid
				set_country_flag = GER_puppet_development_flag
			}
			add_to_variable = { GER_puppet_economies_integrated = 1 }

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = {
				localization_key = GER_idea_added_for_limited_time
				IDEA = idea_desc|GER_german_development_aid
				TIME = [?ROOT.GER_puppet_economies_integration_days]
			}
		}

		remove_effect = {
			FROM = {
				clr_country_flag = GER_puppet_development_flag
			}
			subtract_from_variable = { GER_puppet_economies_integrated = 1 }
		}
	}

	GER_exploit_puppet = {
		priority = 1
		icon = GFX_decision_generic_construction

		ai_will_do = { 
			base = 10
			modifier = {
				factor = 2
				has_political_power > 160
			}
		}

		target_array = ROOT.subjects

		target_root_trigger = {
			has_civil_war = no
		}

		available = { #This needs to be checked immediately to prevent activating more decisions than allowed while the game is paused
			custom_trigger_tooltip = {
				tooltip = GER_num_of_puppet_economies_integrated_tt
				NOT = { check_variable = { GER_puppet_economies_integrated = GER_puppet_economies_integration_cap compare = greater_than_or_equals } }
			}
			NOT = {
				FROM = {
					has_country_flag = GER_puppet_development_flag
				}
			}
		}
		
		cancel_trigger = { 
			NOT = { has_subject = FROM }
			FROM = {
				OR = {
					has_capitulated = yes
					exists = no
				}
			}
		}

		cost = 120

		days_remove = GER_puppet_economies_integration_days #365

		modifier = {
			consumer_goods_factor = -0.1
		}

		cancel_effect = {
			FROM = {
				if = {
					limit = {
						has_idea = GER_german_exploitation
					}
					remove_ideas = GER_german_exploitation
				}
				clr_country_flag = GER_puppet_exploited_flag
			}
			subtract_from_variable = { GER_puppet_economies_integrated = 1 }
		}
		
		complete_effect = {
			FROM = {
				country_event = GOT_GER_integrated_puppet_economies.02
				add_ideas = GER_german_exploitation
				set_country_flag = GER_puppet_exploited_flag
			}
			add_to_variable = { GER_puppet_economies_integrated = 1 }
		}

		remove_effect = {
			FROM = {
				clr_country_flag = GER_puppet_exploited_flag
			}
			subtract_from_variable = { GER_puppet_economies_integrated = 1 }
		}
	}
}

GER_rebuild_the_nation_cat = {
	GER_state_development_west = {
		priority = 1
		icon = GFX_decision_generic_construction

		ai_will_do = { 
			base = 10
			modifier = {
				factor = 2
				has_political_power > 100
			}
		}

		available = {
			56 = { is_fully_controlled_by = ROOT }
			59 = { is_fully_controlled_by = ROOT }
			57 = { is_fully_controlled_by = ROOT }
			55 = { is_fully_controlled_by = ROOT }
			51 = { is_fully_controlled_by = ROOT }
			51 = { is_fully_controlled_by = ROOT }
			42 = { is_fully_controlled_by = ROOT }
		}

		cancel_trigger = { 
			NOT = { 
				56 = { is_controlled_by = ROOT }
				59 = { is_controlled_by = ROOT }
				57 = { is_controlled_by = ROOT }
				55 = { is_controlled_by = ROOT }
				51 = { is_controlled_by = ROOT }
				51 = { is_controlled_by = ROOT }
				42 = { is_controlled_by = ROOT }
			} 
		}

		highlight_states = {
			highlight_state_targets = {
				state = 56 #Weser-Ems
				state = 59 #Hannover
				state = 57 #Westfalen
				state = 55 #Hessen
				state = 51 #Rhineland
				state = 42 #Moselland
			}
		}

		cost = 50

		fire_only_once = yes

		days_remove = 30

		modifier = {
			civilian_factory_use = 3
		}
		
		remove_effect = {
			every_core_state = {
				limit = {
					OR = {
						state = 56 #Weser-Ems
						state = 59 #Hannover
						state = 57 #Westfalen
						state = 55 #Hessen
						state = 51 #Rhineland
						state = 42 #Moselland
					}
				}
				add_extra_state_shared_building_slots = 1
				add_dynamic_modifier = { 
					modifier = GER_public_works_modifier
					days = 545
					scope = GER
				}
			}
		}
	}

	GER_state_development_north = {
		priority = 1
		icon = GFX_decision_generic_construction

		ai_will_do = { 
			base = 10
			modifier = {
				factor = 2
				has_political_power > 100
			}
		}

		available = {
			909 = { is_fully_controlled_by = ROOT }
			58 = { is_fully_controlled_by = ROOT }
			61 = { is_fully_controlled_by = ROOT }
			62 = { is_fully_controlled_by = ROOT }
			63 = { is_fully_controlled_by = ROOT }
		}

		cancel_trigger = { 
			NOT = { 
				909 = { is_controlled_by = ROOT }
				58 = { is_controlled_by = ROOT }
				61 = { is_controlled_by = ROOT }
				62 = { is_controlled_by = ROOT }
				63 = { is_controlled_by = ROOT }
			} 
			if = {
				limit = {
					912 = { is_core_of = ROOT }
				}
				NOT = {
					912 = { is_controlled_by = ROOT }
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 909 #Schleswig
				state = 58 #Holstein
				state = 61 #Mecklenburg
				state = 62 #Vorpommern
				state = 63 #Hinterpommern
				state = 912 #Sonderjylland, hinting to the player they can develop this state too
			}
		}

		cost = 50

		fire_only_once = yes

		days_remove = 30

		modifier = {
			civilian_factory_use = 3
		}
		
		remove_effect = {
			every_core_state = {
				limit = {
					OR = {
						state = 909 #Schleswig
						state = 58 #Holstein
						state = 61 #Mecklenburg
						state = 62 #Vorpommern
						state = 63 #Hinterpommern
						state = 912 #Sonderjylland
					}
				}
				add_extra_state_shared_building_slots = 1
				add_dynamic_modifier = { 
					modifier = GER_public_works_modifier
					days = 545
					scope = GER
				}
			}
		}
	}

	GER_state_development_east = {
		priority = 1
		icon = GFX_decision_generic_construction

		ai_will_do = { 
			base = 10
			modifier = {
				factor = 2
				has_political_power > 100
			}
		}

		available = {
			763 = { is_fully_controlled_by = ROOT }
			5 = { is_fully_controlled_by = ROOT }
			66 = { is_fully_controlled_by = ROOT }
			67 = { is_fully_controlled_by = ROOT }
		}

		cancel_trigger = { 
			NOT = { 
				763 = { is_controlled_by = ROOT }
				5 = { is_controlled_by = ROOT }
				66 = { is_controlled_by = ROOT }
				67 = { is_controlled_by = ROOT }
			}
			if = {
				limit = {
					85 = { is_core_of = ROOT }
				}
				NOT = {
					85 = { is_controlled_by = ROOT }
				}
			}
			if = {
				limit = {
					807 = { is_core_of = ROOT }
				}
				NOT = {
					807 = { is_controlled_by = ROOT }
				}
			}
			if = {
				limit = {
					86 = { is_core_of = ROOT }
				}
				NOT = {
					86 = { is_controlled_by = ROOT }
				}
			}
			if = {
				limit = {
					762 = { is_core_of = ROOT }
				}
				NOT = {
					762 = { is_controlled_by = ROOT }
				}
			}
			if = {
				limit = {
					188 = { is_core_of = ROOT }
				}
				NOT = {
					188 = { is_controlled_by = ROOT }
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 763 #Königsberg
				state = 5 #Ermland-Masuren
				state = 66 #Niederschlesien
				state = 67 #Oberschlesien
				state = 85 #Danzig, hinting to the player they can develop this state too
				state = 807 #Gdynia, hinting to the player they can develop this state too
				state = 86 #Poznan, hinting to the player they can develop this state too
				state = 762 #Katowice, hinting to the player they can develop this state too
				state = 188 #Memel, hinting to the player they can develop this state too
			}
		}

		cost = 50

		fire_only_once = yes

		days_remove = 30

		modifier = {
			civilian_factory_use = 3
		}
		
		remove_effect = {
			every_core_state = {
				limit = {
					OR = {
						state = 763 #Königsberg
						state = 5 #Ermland-Masuren
						state = 66 #Niederschlesien
						state = 67 #Oberschlesien
						state = 85 #Danzig - in case Germany has cored it
						state = 807 #Gdynia - in case Germany has cored it
						state = 86 #Poznan - in case Germany has cored it
						state = 762 #Katowice- in case Germany has cored it
						state = 188 #Memel - in case Germany has cored it
					}
				}
				add_extra_state_shared_building_slots = 1
				add_dynamic_modifier = { 
					modifier = GER_public_works_modifier
					days = 545
					scope = GER
				}
			}
		}
	}

	GER_state_development_central = {
		priority = 1
		icon = GFX_decision_generic_construction

		ai_will_do = { 
			base = 10
			modifier = {
				factor = 2
				has_political_power > 100
			}
		}

		available = {
			64 = { is_fully_controlled_by = ROOT }
			65 = { is_fully_controlled_by = ROOT }
			60 = { is_fully_controlled_by = ROOT }
			68 = { is_fully_controlled_by = ROOT }
		}

		cancel_trigger = { 
			NOT = { 
				64 = { is_controlled_by = ROOT }
				65 = { is_controlled_by = ROOT }
				60 = { is_controlled_by = ROOT }
				68 = { is_controlled_by = ROOT }
			} 
		}

		highlight_states = {
			highlight_state_targets = {
				state = 64 #Brandenburg
				state = 65 #Sachsen
				state = 60 #Thüringen
				state = 68 #Ostmark
			}
		}

		cost = 50

		fire_only_once = yes

		days_remove = 30

		modifier = {
			civilian_factory_use = 3
		}
		
		remove_effect = {
			every_core_state = {
				limit = {
					OR = {
						state = 64 #Brandenburg
						state = 65 #Sachsen
						state = 60 #Thüringen
						state = 68 #Ostmark
					}
				}
				add_extra_state_shared_building_slots = 1
				add_dynamic_modifier = { 
					modifier = GER_public_works_modifier
					days = 545
					scope = GER
				}
			}
		}
	}

	GER_state_development_south = {
		priority = 1
		icon = GFX_decision_generic_construction

		ai_will_do = { 
			base = 10
			modifier = {
				factor = 2
				has_political_power > 100
			}
		}

		available = {
			52 = { is_fully_controlled_by = ROOT }
			978 = { is_fully_controlled_by = ROOT }
			50 = { is_fully_controlled_by = ROOT }
			53 = { is_fully_controlled_by = ROOT }
			54 = { is_fully_controlled_by = ROOT }
		}

		cancel_trigger = { 
			NOT = { 
				52 = { is_controlled_by = ROOT }
				978 = { is_fully_controlled_by = ROOT }
				50 = { is_controlled_by = ROOT }
				53 = { is_controlled_by = ROOT }
				54 = { is_controlled_by = ROOT }
			} 
		}

		highlight_states = {
			highlight_state_targets = {
				state = 50 #Württemberg
				state = 978 #Baden
				state = 52 #Oberbayern
				state = 53 #Niederbayern
				state = 54 #Franken
			}
		}

		cost = 50

		fire_only_once = yes

		days_remove = 30

		modifier = {
			civilian_factory_use = 3
		}
		
		remove_effect = {
			every_core_state = {
				limit = {
					OR = {
						state = 50 #Württemberg
						state = 978 #Baden
						state = 52 #Oberbayern
						state = 53 #Niederbayern
						state = 54 #Franken
					}
				}
				add_extra_state_shared_building_slots = 1
				add_dynamic_modifier = { 
					modifier = GER_public_works_modifier
					days = 545
					scope = GER
				}
			}
		}
	}

}

GER_influence_countries_cat = {

	GER_influence_baltics_decision = {
		priority = 1
		icon = GFX_decision_SWI_expand_covert_operations 

		ai_will_do = {
			base = 25
			modifier = {
				factor = 0.5
				FROM = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.25
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.5
				}
			}
		}

		targets = { EST LAT LIT }

		target_trigger = {
			FROM = {
				NOT = { has_war_with = ROOT }
				is_subject = no
				OR = {
					is_in_faction = no
					is_in_faction_with = ROOT
				}
				NOT = { has_government = fascism }
				fascism < 50
			}
		}

		target_root_trigger =  {
			has_completed_focus = GER_influence_the_baltics
			has_government = fascism
		}

		fire_only_once = no

		cost = 25

		days_re_enable = 732 #Match the Timed NS below + couple of days to make sure NS is gone when the decision comes back

		complete_effect = {
			hidden_effect = {
				FROM = {
					country_event = { id = wuw_GER_diplomacy.10 days = 1 } 
				}
			}

			effect_tooltip = {
				FROM = {
					add_timed_idea = {
						idea = GER_fascism_influence
						days = 730 #Match the days_re_enable above
					}
					add_opinion_modifier = { 
						target = GER 
						modifier = GER_german_influence
					}
				}
			}
		}
	}

	GER_influence_nordics_decision = {
		priority = 1
		icon = GFX_decision_SWI_expand_covert_operations 

		ai_will_do = {
			base = 25
			modifier = {
				factor = 0.5
				FROM = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.25
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.5
				}
			}
		}

		targets = { SWE NOR FIN DEN SMI ICE KAR }

		target_trigger = {
			FROM = {
				NOT = { has_war_with = ROOT }
				is_subject = no
				OR = {
					is_in_faction = no
					is_in_faction_with = ROOT
				}
				NOT = { has_government = fascism }
				fascism < 50
			}
		}

		target_root_trigger =  {
			has_completed_focus = GER_utilize_the_nordliche_gesellschaft
			has_government = fascism
		}

		fire_only_once = no

		cost = 25

		days_re_enable = 732 #Match the Timed NS below + couple of days to make sure NS is gone when the decision comes back

		complete_effect = {
			hidden_effect = {
				FROM = {
					country_event = { id = wuw_GER_diplomacy.10 days = 1 } 
				}
			}

			effect_tooltip = {
				FROM = {
					add_timed_idea = {
						idea = GER_fascism_influence
						days = 730 #Match the days_re_enable above
					}
					add_opinion_modifier = { 
						target = GER 
						modifier = GER_german_influence
					}
				}
			}
		}
	}

	GER_influence_benelux_decision = {
		priority = 1
		icon = GFX_decision_SWI_expand_covert_operations 

		ai_will_do = {
			base = 25
			modifier = {
				factor = 0.5
				FROM = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.25
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.5
				}
			}
		}

		targets = { HOL BEL LUX }

		target_trigger = {
			FROM = {
				NOT = { has_war_with = ROOT }
				is_subject = no
				OR = {
					is_in_faction = no
					is_in_faction_with = ROOT
				}
				NOT = { has_government = fascism }
				fascism < 50
			}
		}

		target_root_trigger =  {
			has_completed_focus = GER_influence_the_benelux
			has_government = fascism
		}

		fire_only_once = no

		cost = 25

		days_re_enable = 732 #Match the Timed NS below + couple of days to make sure NS is gone when the decision comes back

		complete_effect = {
			hidden_effect = {
				FROM = {
					country_event = { id = wuw_GER_diplomacy.10 days = 1 } 
				}
			}

			effect_tooltip = {
				FROM = {
					add_timed_idea = {
						idea = GER_fascism_influence
						days = 730 #Match the days_re_enable above
					}
					add_opinion_modifier = { 
						target = GER 
						modifier = GER_german_influence
					}
				}
			}
		}
	}

	GER_influence_middle_east_decision = {
		priority = 1
		icon = GFX_decision_SWI_expand_covert_operations 

		ai_will_do = {
			base = 25
			modifier = {
				factor = 0.5
				FROM = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.25
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.5
				}
			}
		}

		targets = { PER IRQ SYR SAU EGY JOR LEB OMA YEM PAL KUW QAT UAE KUR }

		target_trigger = {
			FROM = {
				NOT = { has_war_with = ROOT }
				is_subject = no
				OR = {
					is_in_faction = no
					is_in_faction_with = ROOT
				}
				NOT = { has_government = fascism }
				fascism < 50
			}
		}

		target_root_trigger =  {
			OR = {
				has_completed_focus = GER_influence_the_middle_east
				has_completed_focus = GER_german_hegemony_in_the_middle_east
			}
			has_government = fascism
		}

		fire_only_once = no

		cost = 25

		days_re_enable = 732 #Match the Timed NS below + couple of days to make sure NS is gone when the decision comes back

		complete_effect = {
			hidden_effect = {
				FROM = {
					country_event = { id = wuw_GER_diplomacy.10 days = 1 } 
				}
			}

			effect_tooltip = {
				FROM = {
					add_timed_idea = {
						idea = GER_fascism_influence
						days = 730 #Match the days_re_enable above
					}
					add_opinion_modifier = { 
						target = GER 
						modifier = GER_german_influence
					}
				}
			}
		}
	}

	GER_influence_middle_east_democratic_decision = {
		priority = 1
		icon = GFX_decision_SWI_expand_covert_operations 

		ai_will_do = {
			base = 25
			modifier = {
				factor = 0.5
				FROM = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.25
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.5
				}
			}
		}

		targets = { PER IRQ SYR SAU EGY JOR LEB OMA YEM PAL KUW QAT UAE KUR }

		target_trigger = {
			FROM = {
				NOT = { has_war_with = ROOT }
				is_subject = no
				OR = {
					is_in_faction = no
					is_in_faction_with = ROOT
				}
				NOT = { has_government = democratic }
				democratic < 50
			}
		}

		target_root_trigger =  {
			has_completed_focus = GER_german_hegemony_in_the_middle_east
			has_government = democratic
		}

		fire_only_once = no

		cost = 25

		days_re_enable = 732 #Match the Timed NS below + couple of days to make sure NS is gone when the decision comes back

		complete_effect = {
			hidden_effect = {
				FROM = {
					country_event = { id = wuw_GER_diplomacy.10 days = 1 } 
				}
			}

			effect_tooltip = {
				FROM = {
					add_timed_idea = {
						idea = GER_democratic_influence
						days = 730 #Match the days_re_enable above
					}
					add_opinion_modifier = { 
						target = GER 
						modifier = GER_german_influence
					}
				}
			}
		}
	}

	GER_influence_middle_east_neutrality_decision = {
		priority = 1
		icon = GFX_decision_SWI_expand_covert_operations 

		ai_will_do = {
			base = 25
			modifier = {
				factor = 0.5
				FROM = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.25
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.5
				}
			}
		}

		targets = { PER IRQ SYR SAU EGY JOR LEB OMA YEM PAL KUW QAT UAE KUR }

		target_trigger = {
			FROM = {
				NOT = { has_war_with = ROOT }
				is_subject = no
				OR = {
					is_in_faction = no
					is_in_faction_with = ROOT
				}
				NOT = { has_government = neutrality }
				neutrality < 50
			}
		}

		target_root_trigger =  {
			has_completed_focus = GER_german_hegemony_in_the_middle_east
			has_government = neutrality
		}

		fire_only_once = no

		cost = 25

		days_re_enable = 732 #Match the Timed NS below + couple of days to make sure NS is gone when the decision comes back

		complete_effect = {
			hidden_effect = {
				FROM = {
					country_event = { id = wuw_GER_diplomacy.10 days = 1 } 
				}
			}

			effect_tooltip = {
				FROM = {
					add_timed_idea = {
						idea = GER_neutrality_influence
						days = 730 #Match the days_re_enable above
					}
					add_opinion_modifier = { 
						target = GER 
						modifier = GER_german_influence
					}
				}
			}
		}
	}

	GER_influence_balkans_neutrality_decision = {
		priority = 1
		icon = GFX_decision_SWI_expand_covert_operations 

		ai_will_do = {
			base = 25
			modifier = {
				factor = 0.5
				FROM = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.25
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.5
				}
			}
		}

		targets = { SLV CRO MAC MNT BOS HRZ SER ALB YUG GRE ROM MLD BUL KOS TRA }

		target_trigger = {
			FROM = {
				NOT = { has_war_with = ROOT }
				is_subject = no
				OR = {
					is_in_faction = no
					is_in_faction_with = ROOT
				}
				NOT = { has_government = neutrality }
				neutrality < 50
			}
		}

		target_root_trigger =  {
			has_completed_focus = GER_sway_the_balkans
			has_government = neutrality
		}

		fire_only_once = no

		cost = 25

		days_re_enable = 732 #Match the Timed NS below + couple of days to make sure NS is gone when the decision comes back

		complete_effect = {
			hidden_effect = {
				FROM = {
					country_event = { id = wuw_GER_diplomacy.10 days = 1 } 
				}
			}

			effect_tooltip = {
				FROM = {
					add_timed_idea = {
						idea = GER_neutrality_influence
						days = 730 #Match the days_re_enable above
					}
					add_opinion_modifier = { 
						target = GER 
						modifier = GER_german_influence
					}
				}
			}
		}
	}

	GER_influence_balkans_democratic_decision = {
		priority = 1
		icon = GFX_decision_SWI_expand_covert_operations 

		ai_will_do = {
			base = 25
			modifier = {
				factor = 0.5
				FROM = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.25
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.5
				}
			}
		}

		targets = { SLV CRO MAC MNT BOS HRZ SER ALB YUG GRE ROM MLD BUL KOS TRA }

		target_trigger = {
			FROM = {
				NOT = { has_war_with = ROOT }
				is_subject = no
				OR = {
					is_in_faction = no
					is_in_faction_with = ROOT
				}
				NOT = { has_government = democratic }
				democratic < 50
			}
		}

		target_root_trigger =  {
			has_completed_focus = GER_sway_the_balkans
			has_government = democratic
		}

		fire_only_once = no

		cost = 25

		days_remove = 365

		days_re_enable = 732 #Match the Timed NS below + couple of days to make sure NS is gone when the decision comes back

		complete_effect = {
			hidden_effect = {
				FROM = {
					country_event = { id = wuw_GER_diplomacy.10 days = 1 } 
				}
			}

			effect_tooltip = {
				FROM = {
					add_timed_idea = {
						idea = GER_democratic_influence
						days = 730 #Match the days_re_enable above
					}
					add_opinion_modifier = { 
						target = GER 
						modifier = GER_german_influence
					}
				}
			}
		}
	}

	GER_influence_balkans_fascism_decision = {
		priority = 1
		icon = GFX_decision_SWI_expand_covert_operations 

		ai_will_do = {
			base = 25
			modifier = {
				factor = 0.5
				FROM = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.25
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.5
				}
			}
		}

		targets = { SLV CRO MAC MNT BOS HRZ SER ALB YUG GRE ROM MLD BUL KOS TRA }

		target_trigger = {
			FROM = {
				NOT = { has_war_with = ROOT }
				is_subject = no
				OR = {
					is_in_faction = no
					is_in_faction_with = ROOT
				}
				NOT = { has_government = fascism }
				fascism < 50
			}
		}

		target_root_trigger =  {
			has_completed_focus = GER_sway_the_balkans
			has_government = fascism
		}

		fire_only_once = no

		cost = 25

		days_remove = 365

		days_re_enable = 732 #Match the Timed NS below + couple of days to make sure NS is gone when the decision comes back

		complete_effect = {
			hidden_effect = {
				FROM = {
					country_event = { id = wuw_GER_diplomacy.10 days = 1 } 
				}
			}

			effect_tooltip = {
				FROM = {
					add_timed_idea = {
						idea = GER_fascism_influence
						days = 730 #Match the days_re_enable above
					}
					add_opinion_modifier = { 
						target = GER 
						modifier = GER_german_influence
					}
				}
			}
		}
	}
}


GER_invite_to_faction_cat = {

	GER_invite_to_faction_decision = {
		priority = 1
		icon = GFX_decision_generic_protection

		ai_will_do = {
			base = 25
			modifier = {
				factor = 0.5
				FROM = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.25
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = FROM 
					ratio > 1.5
				}
			}
		}

		targets = { SWE NOR FIN DEN EST LAT LIT SMI ICE KAR PER IRQ SYR SAU EGY JOR LEB OMA YEM PAL KUW QAT UAE KUR SLV CRO MAC MNT BOS HRZ SER ALB YUG GRE ROM MLD BUL KOS TRA }

		target_trigger = {
			if = {
				limit = {
					FROM = {
						OR = {
							original_tag = SWE
							original_tag = NOR
							original_tag = FIN
							original_tag = DEN
							original_tag = SMI
							original_tag = ICE
							original_tag = KAR
						}
					}
				}
				ROOT = {
					has_completed_focus = GER_utilize_the_nordliche_gesellschaft
				}
			}
			if = {
				limit = {
					FROM = {
						OR = {
							original_tag = EST
							original_tag = LIT
							original_tag = LAT
						}
					}
				}
				ROOT = {
					has_completed_focus = GER_influence_the_baltics
				}
			}
			if = {
				limit = {
					FROM = {
						OR = {
							original_tag = HOL
							original_tag = BEL
							original_tag = LUX
						}
					}
				}
				ROOT = {
					has_completed_focus = GER_influence_the_benelux
				}
			}
			if = {
				limit = {
					FROM = {
						OR = {
							original_tag = PER
							original_tag = IRQ
							original_tag = SYR
							original_tag = SAU
							original_tag = EGY
							original_tag = JOR
							original_tag = LEB
							original_tag = OMA
							original_tag = YEM
							original_tag = PAL
							original_tag = KUW 
							original_tag = QAT 
							original_tag = UAE
							original_tag = KUR
						}
					}
				}
				ROOT = {
					OR = {
						has_completed_focus = GER_influence_the_middle_east
						has_completed_focus = GER_german_hegemony_in_the_middle_east
					}
				}
			}
			if = {
				limit = {
					FROM = {
						OR = {
							original_tag = SLV
							original_tag = CRO
							original_tag = MAC
							original_tag = MNT
							original_tag = BOS
							original_tag = HRZ
							original_tag = SER
							original_tag = ALB
							original_tag = YUG
							original_tag = GRE
							original_tag = ROM
							original_tag = MLD
							original_tag = BUL
							original_tag = KOS
							original_tag = TRA
						}
					}
				}
				ROOT = {
					has_completed_focus = GER_sway_the_balkans
				}
			}
			FROM = {
				is_subject = no
				is_major = no
				is_in_faction = no
				has_government = ROOT
			}
		}

		available = {
			FROM = {
				has_opinion = {
					target = ROOT
					value > 49
				}
			}
		}

		visible = {	
			
		}

		fire_only_once = yes

		cost = 25

		complete_effect = {
			FROM = {
				country_event = { id = wuw_GER_realpolitik.30 hours = 6 } 
			}

			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				ROOT = {
					add_to_faction = FROM
				}
			}
		}
	}	
}
	
GER_middle_eastern_trade_cat = {

	GER_middle_eastern_trade_decision = {
		priority = 1
		icon = GFX_decision_eng_trade_unions_support 

		ai_will_do = {
			base = 1
			modifier = {
				factor = 2
				any_enemy_country = {
					has_war_with = FROM
				}
			}
			modifier = {
				factor = 2
				FROM = {
					is_in_faction = no
				}
			}
			modifier = {
				factor = 3
				FROM = {
					any_core_state = {
						is_fully_controlled_by = FROM
						OR = {
							has_resources_amount = {
								resource = oil
								amount > 14
							}
							has_resources_amount = {
								resource = aluminium
								amount > 14
							}
							has_resources_amount = {
								resource = rubber
								amount > 14
							}
							has_resources_amount = {
								resource = tungsten
								amount > 14
							}
							has_resources_amount = {
								resource = steel
								amount > 14
							}
							has_resources_amount = {
								resource = chromium
								amount > 14
							}
						}
					}
				}
			}
			modifier = {
				factor = 3
				FROM = {
					any_core_state = {
						is_fully_controlled_by = FROM
						OR = {
							has_resources_amount = {
								resource = oil
								amount > 24
							}
							has_resources_amount = {
								resource = aluminium
								amount > 24
							}
							has_resources_amount = {
								resource = rubber
								amount > 24
							}
							has_resources_amount = {
								resource = tungsten
								amount > 24
							}
							has_resources_amount = {
								resource = steel
								amount > 24
							}
							has_resources_amount = {
								resource = chromium
								amount > 24
							}
						}
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					is_enemy_ideology = yes
				}
			}
			modifier = {
				factor = 2
				FROM = {
					has_government = ROOT
				}
			}
		}

		targets = { PER IRQ SYR SAU EGY JOR LEB OMA YEM KUW QAT UAE }

		target_trigger = {
			FROM = {
				is_subject = no
				NOT = {
					has_war_with = ROOT
				}
				any_core_state = {
					is_fully_controlled_by = FROM
					OR = {
						has_resources_amount = {
							resource = oil
							amount > 9
							delivered = yes

						}
						has_resources_amount = {
							resource = aluminium
							amount > 9
							delivered = yes
						}
						has_resources_amount = {
							resource = rubber
							amount > 9
							delivered = yes
						}
						has_resources_amount = {
							resource = tungsten
							amount > 9
							delivered = yes
						}
						has_resources_amount = {
							resource = steel
							amount > 9
							delivered = yes
						}
						has_resources_amount = {
							resource = chromium
							amount > 9
							delivered = yes
						}
					}
				}
			}
		}

		available = {
		}

		visible = {	
			has_completed_focus = GER_influence_the_middle_east
		}

		fire_only_once = yes

		cost = 25

		days_remove = 365

		complete_effect = {
			FROM = {
				country_event = { id = wuw_GER_diplomacy.1 days = 1 } 
			}

			custom_effect_tooltip = if_they_accept_tt

			effect_tooltip = {
				FROM = {

					add_ideas = GER_german_trade_ns
					add_opinion_modifier = {
						target = PREV
						modifier = GER_trading_partners
					}
					custom_effect_tooltip = war_will_cancel_deal_tt
				}
			}
		}
	}
}

GER_mitteleuropa_allied_trade_cat = {

	GER_mitteleuropa_trade_decision = {
		priority = 1
		icon = GFX_decision_eng_trade_unions_support 

		ai_will_do = {
			base = 1
			modifier = {
				factor = 2
				any_enemy_country = {
					has_war_with = FROM
				}
			}
			modifier = {
				factor = 2
				FROM = {
					is_in_faction = no
				}
			}
			modifier = {
				factor = 3
				FROM = {
					any_core_state = {
						is_fully_controlled_by = FROM
						OR = {
							has_resources_amount = {
								resource = oil
								amount > 14
							}
							has_resources_amount = {
								resource = aluminium
								amount > 14
							}
							has_resources_amount = {
								resource = rubber
								amount > 14
							}
							has_resources_amount = {
								resource = tungsten
								amount > 14
							}
							has_resources_amount = {
								resource = steel
								amount > 14
							}
							has_resources_amount = {
								resource = chromium
								amount > 14
							}
						}
					}
				}
			}
			modifier = {
				factor = 3
				FROM = {
					any_core_state = {
						is_fully_controlled_by = FROM
						OR = {
							has_resources_amount = {
								resource = oil
								amount > 24
							}
							has_resources_amount = {
								resource = aluminium
								amount > 24
							}
							has_resources_amount = {
								resource = rubber
								amount > 24
							}
							has_resources_amount = {
								resource = tungsten
								amount > 24
							}
							has_resources_amount = {
								resource = steel
								amount > 24
							}
							has_resources_amount = {
								resource = chromium
								amount > 24
							}
						}
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					is_enemy_ideology = yes
				}
			}
			modifier = {
				factor = 2
				FROM = {
					has_government = ROOT
				}
			}
		}

		target_array = ROOT.allies

		target_trigger = {
			FROM = {
				is_subject = no
				NOT = {
					has_war_with = ROOT
				}
				NOT = { has_country_flag = GER_trade_agreement_event_flag }
				is_in_faction_with = ROOT
				NOT = {
					OR = {
						has_idea = GER_german_trade_ns
						has_idea = GER_german_trade_subject_ns
					}
				}
				any_core_state = {
					is_fully_controlled_by = FROM
					OR = {
						has_resources_amount = {
							resource = oil
							amount > 9
							delivered = yes

						}
						has_resources_amount = {
							resource = aluminium
							amount > 9
							delivered = yes
						}
						has_resources_amount = {
							resource = rubber
							amount > 9
							delivered = yes
						}
						has_resources_amount = {
							resource = tungsten
							amount > 9
							delivered = yes
						}
						has_resources_amount = {
							resource = steel
							amount > 9
							delivered = yes
						}
						has_resources_amount = {
							resource = chromium
							amount > 9
							delivered = yes
						}
					}
				}
			}
		}

		available = {
		}

		visible = {	
			has_completed_focus = GER_trade_agreements
		}

		fire_only_once = yes

		cost = 25

		complete_effect = {

			FROM = {
				country_event = {
					id = wuw_GER_realpolitik.26
					hours = 6
					random_hours = 12
				}
				set_country_flag = GER_trade_agreement_event_flag
			}

			custom_effect_tooltip = if_they_accept_tt

			effect_tooltip = {
				FROM = {
					add_ideas = GER_german_trade_ns
					add_opinion_modifier = {
						target = PREV
						modifier = GER_trading_partners
					}
					custom_effect_tooltip = war_will_cancel_deal_tt
				}
			}
		}
	}
}

GER_south_east_asian_natural_wealth_cat = {
	GER_south_east_asian_construction_push_decision = {
		icon = GFX_decision_generic_construction

		allowed = {
			original_tag = GER
		}

		visible = {
			is_subject = no
		}

		available = {
			FROM = {
				is_fully_controlled_by = ROOT
			}
			num_of_civilian_factories_available_for_projects > 0
			NOT = {
				FROM = {
					has_state_flag = GER_south_east_asian_resources_boosted_flag
				}
			}
			
		}

		state_target = yes

		on_map_mode = map_only

		target_trigger = {
			FROM = {
				is_fully_controlled_by = ROOT
				OR = {
					state = 333
					state = 334
					state = 335
					state = 336
					state = 667
					state = 668
					state = 672
					state = 673
					state = 721
					state = 738
					state = 684
					state = 647
					state = 646
					state = 633
					state = 743
					state = 979
					state = 737
				}

				NOT = {
					has_dynamic_modifier = {
						modifier = GER_south_east_asian_resources_modifier
					}
				}
			}
		}

		cost = 75

		days_remove = 50

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 1
		}

		complete_effect = {
			FROM = {
				set_state_flag = GER_south_east_asian_construction_boosted_flag
			}
		}

		remove_effect = {
			FROM = {
				add_dynamic_modifier = {
					modifier = GER_south_east_asian_construction_modifier
				}

				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}

	GER_south_east_asian_resources_push_decision = {
		icon = GFX_decision_generic_construction

		allowed = {
			original_tag = GER
		}

		visible = {
			is_subject = no
		}

		available = {
			FROM = {
				is_fully_controlled_by = ROOT
			}
			NOT = {
				FROM = {
					has_state_flag = GER_south_east_asian_construction_boosted_flag
				}
			}
		}

		state_target = yes

		on_map_mode = map_only

		target_trigger = {
			FROM = {
				is_fully_controlled_by = ROOT
				OR = {
					state = 333
					state = 334
					state = 335
					state = 336
					state = 667
					state = 668
					state = 672
					state = 673
					state = 721
					state = 738
					state = 684
					state = 647
					state = 646
					state = 633
					state = 743
					state = 979
					state = 737
				}

				NOT = {
					has_dynamic_modifier = {
						modifier = GER_south_east_asian_construction_modifier
					}
				}
			}
		}

		cost = 100

		days_remove = 30

		fire_only_once = yes

		complete_effect = {
			FROM = {
				set_state_flag = GER_south_east_asian_resources_boosted_flag
			}
		}

		remove_effect = {
			FROM = {
				add_dynamic_modifier = {
					modifier = GER_south_east_asian_resources_modifier
				}
			}
		}
	}
}

GER_monroe_doctrine_cat = {
	GER_destabilize_the_monroe_doctrine_decision = {
		priority = 100

		allowed = {
			original_tag = GER
		}

		icon = GFX_decision_generic_break_treaty

		visible = {
			has_completed_focus = GER_challenge_the_monroe_doctrine
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = GER_destabilize_the_monroe_doctrine_decision_tt
				check_variable = { global.monroe_countries_not_in_support^num > 4} 
			}
		}

		days_remove = 7 #short to prevent funkyness in decision system

		cost = 100

		fire_only_once = yes

		ai_will_do = {
			base = 100 #If you can do this, do this
		}

		complete_effect = {
			set_country_flag = GER_has_completed_destabilization_flag
		}

		remove_effect = {
			for_each_scope_loop = {
				array = global.monroe_doctrine_countries_to_destabilize

				country_event = {
					id = wuw_GER_monroe.7
					hours = 6
				}
			}

			custom_effect_tooltip = GER_destabilize_the_monroe_doctrine_decision_effect_tt

			hidden_effect = {
				IF = {
					limit = {
						USA = {
							has_country_flag = USA_save_monroe_flag
						}
					}
					USA = {
						country_event = {
							id = wuw_GER_monroe.2
							days = 15
						}
					}
				}

				ELSE = {
					USA = {
						news_event = {
							id = wuw_GER_monroe_news.1
							hours = 12
						}
					}

					for_each_scope_loop = {
						array = global.monroe_doctrine_countries_to_destabilize
					
						news_event = {
							id = wuw_GER_monroe_news.1
							hours = 12
						}
					}
					
					for_each_scope_loop = {
						array = global.monroe_countries_in_support
					
						news_event = {
							id = wuw_GER_monroe_news.1
							hours = 12
						}
					}

					for_each_scope_loop = {
						array = global.monroe_countries_not_in_support
					
						news_event = {
							id = wuw_GER_monroe_news.1
							hours = 12
						}
					}

					ROOT = {
						news_event = {
							id = wuw_GER_monroe_news.1
							hours = 12
						}
					}
				}

				
			}
		}
	}

	GER_demand_abandon_of_doctrine_decision = {
		priority = 90

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = GER
		}

		visible = {

		}

		available = {
			NOT = { has_country_flag = GER_currently_demanding_abandonment_of_monroe_flag}
		}

		fire_only_once = yes 

		cost = 50

		ai_will_do = {
			base = 20 #prioritise this over swaying
		}

		days_remove = 14

		state_target = yes

		on_map_mode = map_only

		target_array = global.monroe_doctrine_capitals_to_destabilize

		target_trigger = {
			FROM = {
				OWNER = {
					NOT = {
						has_war_with = ROOT
					}
					has_idea = USA_monroe_doctrine_idea
					is_subject = no
				}
			}
		}

		cancel_trigger = {
			FROM = {
				OWNER = {
					has_war_with = ROOT
					NOT = { has_idea = USA_monroe_doctrine_idea }
					is_subject = yes
				}
			}
		}

		cancel_effect = {
			clr_country_flag = GER_currently_demanding_abandonment_of_monroe_flag
		}

		complete_effect = {
			set_country_flag = GER_currently_demanding_abandonment_of_monroe_flag
			FROM = {
				OWNER = {
					set_country_flag = GER_has_sent_demand_monroe_flag
				}
			}
		}

		remove_effect = {
			FROM = {
				OWNER = {
					country_event = {
						id = wuw_GER_monroe.4
						hours = 6
					}
				}
			}

			clr_country_flag = GER_currently_demanding_abandonment_of_monroe_flag

			hidden_effect = {

				IF = {
					limit = {
						NOT = {
							has_country_flag = GER_monroe_conflict_started_flag
						}
					}

					for_each_scope_loop = { 
						array = global.monroe_doctrine_countries_to_destabilize

						country_event = {
							id = wuw_GER_monroe.13
							hours = 3
						}
					}

					set_country_flag = GER_monroe_conflict_started_flag
				}

				
			}
		}
	}

	GER_doctrine_abandoned_dummy_decision = {
		priority = 10

		icon = GFX_decision_generic_GER_flag

		allowed = {
			
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = monroe_country_in_opposition_flag
				always = no
			}
			
		}

		state_target = yes

		on_map_mode = map_only

		target_array = global.monroe_captials_not_in_support

		target_trigger = {
			FROM = {
				OWNER = {
					NOT = {
						has_idea = USA_monroe_doctrine_idea
					}
					is_subject = no
				}
			}
		}

		complete_effect = {

		}

		remove_effect = {

		}
	}

	GER_reinforce_the_monroe_doctrine_decision = {
		priority = 100

		allowed = {
			original_tag = USA
		}

		icon = GFX_decision_eng_trade_unions_demand

		visible = {
			
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = GER_reinforce_the_monroe_doctrine_decision_tt
				check_variable = { global.monroe_countries_in_support^num > 4}
			}
			NOT ={
				GER = {
					has_country_flag = GER_has_completed_destabilization_flag
				}
			}
		}

		days_remove = 7 #short to prevent funkyness in decision system

		cost = 100

		fire_only_once = yes

		ai_will_do = {
			base = 100 #If you can do this, do this
		}

		complete_effect = {
			set_country_flag = USA_has_completed_reinforcement_flag
		}

		remove_effect = {

			for_each_scope_loop = {
				array = global.monroe_doctrine_countries_to_destabilize

				IF = {
					limit = { #this should never happen but just to be sure
						NOT = {
							is_in_faction_with = GER
						}
					}

					country_event = {
						id = wuw_GER_monroe.8
						hours = 6
					}
				}
			}

			GER = {
				country_event = {
					id = wuw_GER_monroe.3
					days = 15
				}
			}
		}
	}

	GER_demand_adherance_to_doctrine_decision = {
		priority = 90

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = USA
		}

		visible = {
			
		}

		available = {
			NOT = { has_country_flag = USA_currently_demanding_monroe_adherence_flag}
		}

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0.5
				OR = {
					has_idea = USA_neutrality_act
					has_idea = USA_neutrality_act
				}
			}
		}

		days_remove = 14

		state_target = yes 

		on_map_mode = map_only

		target_array = global.monroe_doctrine_capitals_to_destabilize

		target_trigger = {
			FROM = {
				OWNER = {
					NOT = {
						has_war_with = ROOT
					}
					has_idea = USA_monroe_doctrine_idea
					is_subject = no
				}
			}
		}

		cancel_trigger = {
			FROM = {
				OWNER = {
					has_war_with = ROOT
					NOT = { has_idea = USA_monroe_doctrine_idea }
					is_subject = yes
				}
			}
		}

		cancel_effect = {
			clr_country_flag = GER_currently_demanding_abandonment_of_monroe_flag
		}

		complete_effect = {
			set_country_flag = USA_currently_demanding_monroe_adherence_flag
			FROM = {
				OWNER = {
					set_country_flag = USA_has_sent_demand_monroe_flag
				}
			}
		}

		remove_effect = {
			FROM = {
				OWNER = {
					country_event = {
						id = wuw_GER_monroe.6
						hours = 12
					}
				}
			}
			clr_country_flag = USA_currently_demanding_monroe_adherence_flag
		}

	}

	GER_doctrine_reinforced_dummy_decision = {
		priority = 10

		icon = GFX_decision_generic_USA_flag

		allowed = {
		
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = monroe_country_in_support_flag
				always = no
			}
		}

		ai_will_do = {
			base = 0.1 #Do not do this
		}

		state_target = yes

		on_map_mode = map_only

		target_array = global.monroe_captials_in_support

		target_trigger = {
			FROM = {
				OWNER = {
					has_idea = USA_monroe_doctrine_idea
					has_country_flag = monroe_country_in_support_flag
				}
			}
		}

		complete_effect = {

		}

		remove_effect = {

		}
	}

	GER_monroe_doctrine_USA_sway_ideology = {
		priority = 50

		icon = {
			key = GFX_decision_eng_puppet_usa
			trigger = {
				original_tag = USA
			}
		}

		icon = {
			key = GFX_decision_ger_reichskommissariats
			trigger = {
				original_tag = GER
			}
		}

		allowed = {
			
		}

		visible = {
		
		}

		available = {
			NOT = { has_country_flag = monroe_currently_swaying_ideology_flag }
		}

		cost = 50

		fire_only_once = yes

		ai_will_do = {
			base = 5
			modifier = {
				factor = 0.5
				OR = {
					has_idea = USA_neutrality_act
					has_idea = USA_neutrality_act
				}
			}
		}

		days_remove = 14

		state_target = yes 

		on_map_mode = map_only

		target_array = global.monroe_doctrine_capitals_to_destabilize

		target_trigger = {
			FROM = {
				OWNER = {
					NOT = {
						has_war_with = ROOT
						has_country_flag = monroe_country_in_support_flag #since arrays don't hot update, using flag insted to check if they have already joined our side
					}
					is_subject = no
					has_idea = USA_monroe_doctrine_idea
				}
			}
		}

		cancel_trigger = {
			FROM = {
				OWNER = {
					OR = {
						has_country_flag = GER_has_sent_demand_monroe_flag
						has_country_flag = USA_has_sent_demand_monroe_flag
					}
					
				}
			}
			
		}

		cancel_effect = {
			clr_country_flag = monroe_currently_swaying_ideology_flag
		}

		complete_effect = {
			set_country_flag = monroe_currently_swaying_ideology_flag
		}

		remove_effect = {
			clr_country_flag = monroe_currently_swaying_ideology_flag

			FROM = {
				OWNER = {
					country_event = {
						id = wuw_GER_monroe.5
						hours = 6
					}
				}	
			}
		}
	}
}


#### THE GERMAN CIVIL WAR ####

# A Fourth Silesian Uprising
GER_a_fourth_silesian_uprising_cat = {
	
	GER_fourth_silesian_uprising_mission = {

		priority = 100

		allowed = { always = no }

		icon = GFX_decision_generic_ignite_civil_war

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 210
		is_good = no
		fire_only_once = yes

		cancel_trigger = {
			OR = {
				has_completed_focus = GER_tend_to_the_future_of_germany
				SIL = {
					exists = yes
				}
			}
		}

		remove_effect = {
		}

		complete_effect = {
		}

		timeout_effect = {

			add_political_power = -50
			add_stability = -0.05

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = { 
				id = wuw_GER_civil_war.5
			}

		}

		ai_will_do = {
			base = 250
		}
	}

	GER_reestablish_the_black_reichswehr = {

		priority = 90

		icon = GFX_decision_generic_army_support

		ai_will_do = {
			base = 200
		}

		visible = {
			has_active_mission = GER_fourth_silesian_uprising_mission
		}

		available = {
			SIL = {
				any_core_state = {
					is_controlled_by = ROOT
				}
			}
		}

		days_remove = 14

		cost = 25

		fire_only_once = yes

		complete_effect = {
			
			add_stability = -0.04

		}

		remove_effect = {

			GER_fedor_von_bock = {
				add_logistics = 1 
				add_planning = 1
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_days_mission_timeout = {
				mission = GER_fourth_silesian_uprising_mission
				days = 35
			}

		}
	}

	GER_mobilize_the_selbschutz = {

		priority = 80

		icon = GFX_decision_oppression

		ai_will_do = {
			base = 200
		}

		visible = {
			has_active_mission = GER_fourth_silesian_uprising_mission
		}

		available = {
			SIL = {
				any_core_state = {
					is_controlled_by = ROOT
				}
			}
		}

		cost = 15

		fire_only_once = yes

		complete_effect = {

			add_manpower = 150

			custom_effect_tooltip = generic_skip_one_line_tt
			
			add_days_mission_timeout = {
				mission = GER_fourth_silesian_uprising_mission
				days = 14
			}

		}
	}
}

# Waning Patience within the Kriegsmarine
GER_waning_patience_within_the_kriegsmarine_cat = {

	GER_kreigsmarine_revolt_mission = {

		priority = 100

		allowed = { always = no }

		icon = GFX_decision_generic_political_discourse

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 730
		is_good = no
		fire_only_once = yes

		cancel_trigger = {
			OR = {
				has_completed_focus = GER_rebuild_the_high_seas_fleet_ww
				AND = {
					has_completed_focus = GER_high_seas_fleet
					has_completed_focus = GER_re_establish_the_seekriegsleitung
				}
			}
		}

		remove_effect = {
		}

		complete_effect = {
		}

		timeout_effect = {

			country_event = { 
				id = wuw_GER_civil_war.8
			}
			custom_effect_tooltip = this_will_happen_tt
			effect_tooltip = {
				navy_experience = -100
				add_timed_idea = {
					idea = GER_purges_in_the_kriegsmarine
					days = 430
				}	
				custom_effect_tooltip = generic_skip_one_line_tt
				GER_karl_donitz = {
					remove_unit_leader_role = yes
					remove_advisor_role = {
						slot = navy_chief 
					}	
				}
				GER_erich_raeder = {
					remove_unit_leader_role = yes
					remove_advisor_role = {
						slot = navy_chief 
					}	
				}
				GER_gunther_lutjens = {
					remove_unit_leader_role = yes
					remove_advisor_role = {
						slot = high_command 
					}	
				}
			}

		}

		ai_will_do = {
			base = 250
		}
	}
}

GER_uncertain_future_cat = {
	GER_growing_public_dissent_mission = {

		priority = 1

		icon = GFX_decision_revolt

		allowed = { always = no }

		visible = {
			has_civil_war = no 
			has_country_leader = { 
				ruling_only = yes
				character = GER_august_von_mackensen
			}
		}

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 100

		fire_only_once = yes

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			country_event = {
				id = wuw_GER_uncertain_future.02
				hours = 12
			}
			effect_tooltip = {
				add_ideas = GER_uncertain_future
			}
		}
	}
}



### WELTPOLITIK ###

GER_weltpolitik_cat = {
	
	#Disband the Schutztruppen
	GER_disband_the_schutztruppen = {

		icon = GFX_decision_eng_blackshirt_march

		priority = 100

		allowed = {
			original_tag = GER
		}

		available = {
			any_country_division = {
				division_has_majority_template = militia
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_mittelafrika
				has_completed_focus = GER_negotiate_old_colonies_in_the_east
				has_completed_focus = GER_ally_chiang_kai_shek
			}
			any_state = {
				OR = {
					is_on_continent = africa
					is_on_continent = asia
				}
				OR = {
					is_claimed_by = ROOT
					is_controlled_by = ROOT
				}
			}
		}

		cost = 5

		complete_effect = {
			custom_effect_tooltip = GER_disband_the_schutztruppen_tt

			hidden_effect = {
				delete_units = {
					division_template = "Afrikanische Schutztruppe"
					disband = no #MP or weapons are not ours to take
				}
				delete_units = {
					division_template = "Askari Schutztruppe"
					disband = no #MP or weapons are not ours to take
				}
				delete_units = {
					division_template = "Asiatische Schutztruppe"
					disband = no #MP or weapons are not ours to take
				}
			}
		}

		ai_will_do = {
			base = 0 # NEVER do this!
		}
	}

	# Reorganize the African Schutztruppe
	GER_reorganize_african_schutztruppe = {

		icon = GFX_decision_generic_military

		priority = 99

		allowed = {
			original_tag = GER
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_mittelafrika
			}
			NOT = { has_country_flag = GER_improved_african_schutztruppe_flag }
		}

		available = {
			any_controlled_state = {
				is_on_continent = africa
			}
		}

		custom_cost_trigger = {
			command_power > 19
			has_army_experience > 14
		}
		custom_cost_text = decision_cost_CP_20_ArmXP_15

		days_remove = 35

		complete_effect = {
			hidden_effect = {
				add_command_power = -20
				army_experience = -15
			}
		}

		remove_effect = {
			set_country_flag = GER_improved_african_schutztruppe_flag

			custom_effect_tooltip = GER_reorganize_african_schutztruppe_tt

			hidden_effect = {
				add_units_to_division_template = {
					template_name = "Afrikanische Schutztruppe"
					regiments = {
						militia = 1
					} 
					support = {
						engineer = 0
						recon = 0
					}
				}
				add_units_to_division_template = {
					template_name = "Askari Schutztruppe"
					regiments = {
						militia = 0
					}
				}
			}
		}

		ai_will_do = {
			base = 1
		}
	}

	# Reorganize the Asian Schutztruppe
	GER_reorganize_asian_schutztruppe = {

		icon = GFX_decision_generic_military

		priority = 98

		allowed = {
			original_tag = GER
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_negotiate_old_colonies_in_the_east
				has_completed_focus = GER_ally_chiang_kai_shek
			}
			NOT = { has_country_flag = GER_improved_asian_schutztruppe_flag }
		}

		available = {
			any_controlled_state = {
				is_on_continent = asia
			}
		}

		custom_cost_trigger = {
			command_power > 14
			has_army_experience > 14
		}
		custom_cost_text = decision_cost_CP_15_ArmXP_15

		days_remove = 35

		complete_effect = {
			hidden_effect = {
				add_command_power = -15
				army_experience = -15
			}
		}

		remove_effect = {
			set_country_flag = GER_improved_asian_schutztruppe_flag

			custom_effect_tooltip = GER_reorganize_asian_schutztruppe_tt

			hidden_effect = {
				add_units_to_division_template = {
					template_name = "Asiatische Schutztruppe"
					regiments = {
						militia = 0
						militia = 1
					} 
					support = {
						recon = 0
						engineer = 0
						artillery = 0
					}
				}
			}
		}

		ai_will_do = {
			base = 1
		}
	}


	### AFRICAN SCHUTZTRUPPE RECRUITMENT ###


	# Recruit Schutztruppen in Togoland (African Schutztruppe)
	GER_train_schutztruppe_in_togoland = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 777
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_mittelafrika
			}
			777 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 15
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_15_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -15
				army_experience = -5
			}
		}

		cancel_trigger = {
			777 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_african_schutztruppe_tt
			hidden_effect = {
				777 = { 
					create_unit = {
					    division = "name = \"Afrikanische Schutztruppe 'Togoland'\" division_template = \"Afrikanische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 1"
					    owner = ROOT
					}
					create_unit = {
					    division = "name = \"Askari Schutztruppe 'Lomé'\" division_template = \"Askari Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
				}
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	# Recruit Schutztruppen in Kamerun (African Schutztruppe)
	GER_train_schutztruppe_in_kamerun = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 773
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_mittelafrika
			}
			773 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 15
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_15_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -15
				army_experience = -5
			}
		}

		cancel_trigger = {
			773 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_african_schutztruppe_tt
			hidden_effect = {
				773 = { 
					create_unit = {
					    division = "name = \"Afrikanische Schutztruppe 'Neukamerun'\" division_template = \"Afrikanische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 1"
					    owner = ROOT
					}
					create_unit = {
					    division = "name = \"Askari Schutztruppe 'Jaunde'\" division_template = \"Askari Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	# Recruit Schutztruppen in Tanganyika (African Schutztruppe)
	GER_train_schutztruppe_in_tanganyika = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 546
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_mittelafrika
			}
			546 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 15
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_15_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -15
				army_experience = -5
			}
		}

		cancel_trigger = {
			546 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_african_schutztruppe_tt
			hidden_effect = {
				546 = { 
					create_unit = {
					    division = "name = \"Afrikanische Schutztruppe 'Neu-Moschi'\" division_template = \"Afrikanische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 1"
					    owner = ROOT
					}
					create_unit = {
					    division = "name = \"Askari Schutztruppe 'Kilimandscharo'\" division_template = \"Askari Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	# Recruit Schutztruppen in Ruanda (African Schutztruppe)
	GER_train_schutztruppe_in_ruanda = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 768
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_mittelafrika
			}
			768 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 15
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_15_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -15
				army_experience = -5
			}
		}

		cancel_trigger = {
			768 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_african_schutztruppe_tt
			hidden_effect = {
				768 = { 
					create_unit = {
					    division = "name = \"Afrikanische Schutztruppe 'Kigali'\" division_template = \"Afrikanische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 1"
					    owner = ROOT
					}
					create_unit = {
					    division = "name = \"Askari Schutztruppe 'Nyanza'\" division_template = \"Askari Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	# Recruit Schutztruppen in Urundi (African Schutztruppe)
	GER_train_schutztruppe_in_urundi = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 769
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_mittelafrika
			}
			769 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 15
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_15_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -15
				army_experience = -5
			}
		}

		cancel_trigger = {
			769 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_african_schutztruppe_tt
			hidden_effect = {
				769 = { 
					create_unit = {
					    division = "name = \"Afrikanische Schutztruppe 'Usumbura'\" division_template = \"Afrikanische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 1"
					    owner = ROOT
					}
					create_unit = {
					    division = "name = \"Askari Schutztruppe 'Kitega'\" division_template = \"Askari Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	# Recruit Schutztruppen in Otjozondjupa (African Schutztruppe)
	GER_train_schutztruppe_in_otjozondjupa = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 895
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_mittelafrika
			}
			895 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 15
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_15_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -15
				army_experience = -5
			}
		}

		cancel_trigger = {
			895 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_african_schutztruppe_tt
			hidden_effect = {
				895 = { 
					create_unit = {
					    division = "name = \"Afrikanische Schutztruppe 'Grootfontein'\" division_template = \"Afrikanische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 1"
					    owner = ROOT
					}
					create_unit = {
					    division = "name = \"Askari Schutztruppe 'Caprivi'\" division_template = \"Askari Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	# Recruit Schutztruppen in Kunene (African Schutztruppe)
	GER_train_schutztruppe_in_kunene = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 894
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_mittelafrika
			}
			894 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 15
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_15_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -15
				army_experience = -5
			}
		}

		cancel_trigger = {
			894 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_african_schutztruppe_tt
			hidden_effect = {
				894 = { 
					create_unit = {
					    division = "name = \"Afrikanische Schutztruppe 'Swakopmund'\" division_template = \"Afrikanische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 1"
					    owner = ROOT
					}
					create_unit = {
					    division = "name = \"Askari Schutztruppe 'Outjo'\" division_template = \"Askari Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	# Recruit Schutztruppen in Khomas (African Schutztruppe)
	GER_train_schutztruppe_in_khomas = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 541
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_mittelafrika
			}
			541 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 15
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_15_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -15
				army_experience = -5
			}
		}

		cancel_trigger = {
			541 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_african_schutztruppe_tt
			hidden_effect = {
				541 = { 
					create_unit = {
					    division = "name = \"Afrikanische Schutztruppe 'Windhuk'\" division_template = \"Afrikanische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 1"
					    owner = ROOT
					}
					create_unit = {
					    division = "name = \"Askari Schutztruppe 'Seeis'\" division_template = \"Askari Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	# Recruit Schutztruppen in Karas (African Schutztruppe)
	GER_train_schutztruppe_in_karas = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 893
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_mittelafrika
			}
			893 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 15
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_15_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -15
				army_experience = -5
			}
		}

		cancel_trigger = {
			893 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_african_schutztruppe_tt
			hidden_effect = {
				893 = { 
					create_unit = {
					    division = "name = \"Afrikanische Schutztruppe 'Keetmanshoop'\" division_template = \"Afrikanische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 1"
					    owner = ROOT
					}
					create_unit = {
					    division = "name = \"Askari Schutztruppe 'Lüderitz'\" division_template = \"Askari Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}


	### ASIAN SCHUTZTRUPPE RECRUITMENT ###


	# Recruit Schutztruppen in Tsingtao (Asian Schutztruppe)
	GER_train_schutztruppe_in_tsingtao = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 743
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_negotiate_old_colonies_in_the_east
				has_completed_focus = GER_ally_chiang_kai_shek
			}
			743 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 15
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_15_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -15
				army_experience = -5
			}
		}

		cancel_trigger = {
			743 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_asian_schutztruppe_tt
			hidden_effect = {
				743 = { 
					create_unit = {
					    division = "name = \"Asiatische Schutztruppe 'Kiautschou'\" division_template = \"Asiatische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.9"
					    owner = ROOT
					}
					create_unit = {
					    division = "name = \"Asiatische Schutztruppe 'Tsingtau'\" division_template = \"Asiatische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	# Recruit Schutztruppen in Saipan (Asian Schutztruppe)
	GER_train_schutztruppe_in_saipan = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 646
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_negotiate_old_colonies_in_the_east
				has_completed_focus = GER_ally_chiang_kai_shek
			}
			646 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 10
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_10_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -10
				army_experience = -5
			}
		}

		cancel_trigger = {
			646 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_asian_schutztruppe_smaller_tt
			hidden_effect = {
				646 = { 
					create_unit = {
					    division = "name = \"Asiatische Schutztruppe 'Garapan'\" division_template = \"Asiatische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.6"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	# Recruit Schutztruppen in Palau (Asian Schutztruppe)
	GER_train_schutztruppe_in_palau = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 647
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_negotiate_old_colonies_in_the_east
				has_completed_focus = GER_ally_chiang_kai_shek
			}
			647 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 10
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_10_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -10
				army_experience = -5
			}
		}

		cancel_trigger = {
			647 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_asian_schutztruppe_smaller_tt
			hidden_effect = {
				647 = { 
					create_unit = {
					    division = "name = \"Asiatische Schutztruppe 'Koror'\" division_template = \"Asiatische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	# Recruit Schutztruppen in Karolinen (Asian Schutztruppe)
	GER_train_schutztruppe_in_karolinen = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 684
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_negotiate_old_colonies_in_the_east
				has_completed_focus = GER_ally_chiang_kai_shek
			}
			684 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 15
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_15_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -15
				army_experience = -5
			}
		}

		cancel_trigger = {
			684 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_asian_schutztruppe_tt
			hidden_effect = {
				684 = { 
					create_unit = {
					    division = "name = \"Asiatische Schutztruppe 'Palikir'\" division_template = \"Asiatische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.9"
					    owner = ROOT
					}
					create_unit = {
					    division = "name = \"Asiatische Schutztruppe 'Truk'\" division_template = \"Asiatische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	# Recruit Schutztruppen in Marshallinseln (Asian Schutztruppe)
	GER_train_schutztruppe_in_marshallinseln = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 633
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_negotiate_old_colonies_in_the_east
				has_completed_focus = GER_ally_chiang_kai_shek
			}
			633 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 15
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_15_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -15
				army_experience = -5
			}
		}

		cancel_trigger = {
			633 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_asian_schutztruppe_tt
			hidden_effect = {
				633 = { 
					create_unit = {
					    division = "name = \"Asiatische Schutztruppe 'Majuro'\" division_template = \"Asiatische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.9"
					    owner = ROOT
					}
					create_unit = {
					    division = "name = \"Asiatische Schutztruppe 'Jaluit'\" division_template = \"Asiatische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	# Recruit Schutztruppen in Nauru (Asian Schutztruppe)
	GER_train_schutztruppe_in_nauru = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 725
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_negotiate_old_colonies_in_the_east
				has_completed_focus = GER_ally_chiang_kai_shek
			}
			725 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 10
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_10_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -10
				army_experience = -5
			}
		}

		cancel_trigger = {
			725 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_asian_schutztruppe_smaller_tt
			hidden_effect = {
				725 = { 
					create_unit = {
					    division = "name = \"Asiatische Schutztruppe 'Denigomodu'\" division_template = \"Asiatische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	# Recruit Schutztruppen in Samoa (Asian Schutztruppe)
	GER_train_schutztruppe_in_samoa = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 726
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_negotiate_old_colonies_in_the_east
				has_completed_focus = GER_ally_chiang_kai_shek
			}
			726 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 10
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_10_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -10
				army_experience = -5
			}
		}

		cancel_trigger = {
			726 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_asian_schutztruppe_smaller_tt
			hidden_effect = {
				726 = { 
					create_unit = {
					    division = "name = \"Asiatische Schutztruppe 'Apia'\" division_template = \"Asiatische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	# Recruit Schutztruppen in Nördliche Salomonen (Asian Schutztruppe)
	GER_train_schutztruppe_in_nordlische_salomonen = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 634
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_negotiate_old_colonies_in_the_east
				has_completed_focus = GER_ally_chiang_kai_shek
			}
			634 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 15
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_15_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -15
				army_experience = -5
			}
		}

		cancel_trigger = {
			634 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_asian_schutztruppe_tt
			hidden_effect = {
				634 = { 
					create_unit = {
					    division = "name = \"Asiatische Schutztruppe 'Bougainville'\" division_template = \"Asiatische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
					create_unit = {
					    division = "name = \"Asiatische Schutztruppe 'Buka'\" division_template = \"Asiatische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.7"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	# Recruit Schutztruppen in Bismarck (Asian Schutztruppe)
	GER_train_schutztruppe_in_bismarck = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 737
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_negotiate_old_colonies_in_the_east
				has_completed_focus = GER_ally_chiang_kai_shek
			}
			737 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 15
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_15_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -15
				army_experience = -5
			}
		}

		cancel_trigger = {
			737 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_asian_schutztruppe_tt
			hidden_effect = {
				737 = { 
					create_unit = {
					    division = "name = \"Asiatische Schutztruppe 'Neuhannover'\" division_template = \"Asiatische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
					create_unit = {
					    division = "name = \"Asiatische Schutztruppe 'Ritter'\" division_template = \"Asiatische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.7"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	# Recruit Schutztruppen in Kaiser-Wilhelmsland (Asian Schutztruppe)
	GER_train_schutztruppe_in_kaiser_wilhelmsland = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = GER
		}

		on_map_mode = map_only

		available = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 979
			}
		}

		visible = {
			OR = {
				has_completed_focus = GER_weltpolitik
				has_completed_focus = GER_negotiate_old_colonies_in_the_east
				has_completed_focus = GER_ally_chiang_kai_shek
			}
			979 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			NOT = {
				has_country_flag = GER_unlocked_the_schutztruppe_division_templates
			}
		}

		custom_cost_trigger = {
			command_power > 15
			has_army_experience > 4
		}
		custom_cost_text = decision_cost_CP_15_ArmXP_5

		days_remove = 21

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				add_command_power = -15
				army_experience = -5
			}
		}

		cancel_trigger = {
			979 = {
				is_not_controlled_by_ROOT_or_subject = yes
			}
		}

		remove_effect = {
			
			custom_effect_tooltip = GER_recruit_asian_schutztruppe_tt
			hidden_effect = {
				979 = { 
					create_unit = {
					    division = "name = \"Asiatische Schutztruppe 'Finschhafen'\" division_template = \"Asiatische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.8"
					    owner = ROOT
					}
					create_unit = {
					    division = "name = \"Asiatische Schutztruppe 'Friedrich-Wilhelmshafen'\" division_template = \"Asiatische Schutztruppe\" start_experience_factor = 0.2 start_equipment_factor = 0.7"
					    owner = ROOT
					}
				} 
			}

		}

		ai_will_do = {
			base = 0.05
		}
	}

	GER_support_independence_africa_decision = {
		icon = GFX_decision_eng_propaganda_campaigns

		allowed = {
			original_tag = GER
		}

		target_trigger = {
			FROM = {
				capital_scope = { is_on_continent = africa }
				is_subject = yes 
				NOT = {
					is_subject_of = ROOT
				}
			}
			
		}
		target_root_trigger = {  } 
		
		fire_only_once = no 

		available = {
			NOT = {
				has_country_flag = {
					flag = GER_independence_support_progress_flag
					value > 0
				}
			}
			NOT = { is_in_faction_with = FROM }
		}

		remove_trigger = { FROM = { is_subject = no } }

		visible = {
			has_completed_focus = GER_african_allies
		}
		
		days_remove = 90
		days_re_enable = 30 

		cost = 15

		modifier = {
			political_power_factor = -0.25
		}

		complete_effect = {
			
			FROM = {
				add_timed_idea = {
					idea = GER_supporting_independence_idea
					days = 90
				}
			}	
			set_country_flag = {
				flag = GER_independence_support_progress_flag
				days = 90
				value = 1
			}	

		}

		remove_effect = {
		}

		ai_will_do = {
			base = 2
			modifier = {
				add = 200
				has_war = no 
				has_equipment = { infantry_equipment > 999 }
			}
			modifier = {
				factor = 2
				has_government = democratic
			}
		}
	}

	GER_support_independence_asia_decision = {
		icon = GFX_decision_eng_propaganda_campaigns

		allowed = {
			original_tag = GER
		}

		target_trigger = {
			FROM = {
				capital_scope = { is_on_continent = asia }
				is_subject = yes 
				NOT = {
					is_subject_of = ROOT
				}
			}
			
		}
		target_root_trigger = {  } 
		
		fire_only_once = no 

		available = {
			NOT = {
				has_country_flag = {
					flag = GER_independence_support_progress_flag
					value > 0
				}
			}
			NOT = { is_in_faction_with = FROM }
		}

		remove_trigger = { FROM = { is_subject = no } }

		visible = {
			has_completed_focus = GER_asian_allies
		}
		
		days_remove = 90
		days_re_enable = 30 

		cost = 15

		modifier = {
			political_power_factor = -0.25
		}

		complete_effect = {
			
			FROM = {
				add_timed_idea = {
					idea = GER_supporting_independence_idea
					days = 90
				}
			}	
			set_country_flag = {
				flag = GER_independence_support_progress_flag
				days = 90
				value = 1
			}	

		}

		remove_effect = {
		}

		ai_will_do = {
			base = 2
			modifier = {
				add = 200
				has_war = no 
				has_equipment = { infantry_equipment > 999 }
			}
			modifier = {
				factor = 2
				has_government = democratic
			}
		}
	}

}



### REALPOLITIK ###

GER_realpolitik_cat = {
	
	# Backdoor Negotiations with the Netherlands
	GER_invite_HOL_to_attack_BEL_decision = {

		icon = GFX_decision_generic_political_discourse

		targets = { HOL }

		target_trigger = {
			FROM = {
				tag = HOL
			}
		}

		priority = 25

		ai_will_do = {
			base = 15
		}

		fire_only_once = yes

		allowed = {
			has_dlc = "Gotterdammerung"
		}

		visible = {
			NOT = {
				has_country_flag = GER_currently_holding_backdoor_negitations_flag
				has_country_flag = GER_hol_responded_to_backdoor_negotiations_flag
				has_country_flag = GER_bel_accepted_backdoor_negotiations_flag
			}
			has_completed_focus = GER_backdoor_negotiations
		}

		available = {
			is_subject = no
			OR = {
				is_faction_leader = yes
				is_in_faction = no
			}
			NOT = {
				has_country_flag = GER_currently_holding_backdoor_negitations_flag
			}
			HOL = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
				is_in_faction = no
				is_subject = no
			}
			BEL = {
				exists = yes
				NOT = {
					OR = {
						is_subject_of = ROOT
						is_subject_of = HOL
						has_war_with = ROOT
						has_war_with = HOL
					}
				}
			}
		}

		cost = 50

		fire_only_once = yes

		complete_effect = {

			HOL = {
				country_event = {
					id = wuw_GER_diplomacy.67
					hours = 18
				}	
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				IF = {
					limit = {
						is_faction_leader = no
					}
					create_faction_from_template = faction_template_GER_mitteleuropa_alliance
				}
				HOL = {
					add_state_claim = 977
					add_state_claim = 6
				}

				custom_effect_tooltip = generic_skip_one_line_tt

				add_state_claim = 980
				add_state_claim = 34
				add_to_faction = HOL
				create_wargoal = {
					type = take_claimed_state
					target = BEL
					generator = { 980 34 }
				}	
			}

			hidden_effect = {
				set_country_flag = GER_currently_holding_backdoor_negitations_flag
			}
			
		}
	}

	# Backdoor Negotiations with Belgium
	GER_invite_BEL_to_attack_HOL_decision = {

		icon = GFX_decision_generic_political_discourse

		targets = { BEL }

		target_trigger = {
			FROM = {
				tag = BEL
			}
		}

		priority = 24

		ai_will_do = {
			base = 10
		}

		fire_only_once = yes

		allowed = {
			has_dlc = "Gotterdammerung"
		}

		visible = {
			NOT = {
				has_country_flag = GER_currently_holding_backdoor_negitations_flag
				has_country_flag = GER_bel_responded_to_backdoor_negotiations_flag
				has_country_flag = GER_hol_accepted_backdoor_negotiations_flag
			}
			has_completed_focus = GER_backdoor_negotiations
		}

		available = {
			is_subject = no
			OR = {
				is_faction_leader = yes
				is_in_faction = no
			}
			NOT = {
				has_country_flag = GER_currently_holding_backdoor_negitations_flag
			}
			BEL = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
				is_in_faction = no
				is_subject = no
			}
			HOL = {
				exists = yes
				NOT = {
					OR = {
						is_subject_of = ROOT
						is_subject_of = BEL
						has_war_with = ROOT
						has_war_with = BEL
					}
				}
			}
		}

		cost = 50

		fire_only_once = yes

		complete_effect = {

			BEL = {
				country_event = {
					id = wuw_GER_diplomacy.67
					hours = 18
				}	
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				IF = {
					limit = {
						is_faction_leader = no
					}
					create_faction_from_template = faction_template_GER_mitteleuropa_alliance
				}
				BEL = {
					add_state_claim = 35
				}

				custom_effect_tooltip = generic_skip_one_line_tt

				add_state_claim = 7
				add_state_claim = 36
				add_to_faction = BEL
				create_wargoal = {
					type = take_claimed_state
					target = HOL
					generator = { 7 36 }
				}	
			}

			hidden_effect = {
				set_country_flag = GER_currently_holding_backdoor_negitations_flag
			}
			
		}
	}

	# Sway the Austrians to our side
	GER_sway_the_austrians_decision = {

		icon = GFX_decision_eng_propaganda_campaigns

		targets = { AUS }

		target_trigger = {
			FROM = {
				tag = AUS
			}
		}

		priority = 20

		ai_will_do = {
			base = 150
		}

		fire_only_once = yes

		allowed = {
			has_dlc = "Gotterdammerung"
		}

		visible = {
			NOT = {
				has_country_flag = GER_has_attempted_to_sway_public_opinion_in_austria_flag
				is_in_faction_with = AUS
				has_subject = AUS
			}
			has_completed_focus = GER_mitteleuropa
		}

		available = {
			is_subject = no
			OR = {
				has_government = neutrality
				has_government = democratic
			}
			AUS = {
				NOT = {
					has_government = ROOT
				}
			}
		}

		cost = 50

		fire_only_once = yes

		complete_effect = {

			AUS = {
				country_event = {
					id = wuw_GER_diplomacy.70
					hours = 12
				}	
			}
			effect_tooltip = {
				AUS = {
					add_popularity = {
						ideology = ROOT
						popularity = 0.1
					}
					IF = {
						limit = {
							ROOT = {
								has_government = democratic
							}
						}
						add_timed_idea = {
							idea = GER_propagandists_swaying_public_opinion_dem
							days = 180
						}	
					}
					ELSE_IF = {
						limit = {
							ROOT = {
								has_government = neutrality
							}
						}
						add_timed_idea = {
							idea = GER_propagandists_swaying_public_opinion_neu
							days = 180
						}	
					}

					custom_effect_tooltip = generic_skip_one_line_tt

					add_opinion_modifier = {
						target = ROOT
						modifier = GER_public_opinion_in_favour_of_an_alliance_opm
					}
				}	
			}

			hidden_effect = {
				set_country_flag = GER_has_attempted_to_sway_public_opinion_in_austria_flag
			}
			
		}
	}

	# Found a Baltic-German State
	GER_found_a_baltic_german_state_decision = {

		icon = GFX_decision_generic_nationalism

		priority = 50

		visible = {
			has_completed_focus = GER_establish_eastern_grand_duchies
			UBD = {
				exists = no
			}
		}

		fire_only_once = yes

		available = {
			is_subject = no
			has_completed_focus = GER_establish_eastern_grand_duchies
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				810 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				12 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				808 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				809 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				190 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				13 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				191 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				813 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				812 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				811 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 810
				state = 12
				state = 808
				state = 809
				state = 190
				state = 13
				state = 191
				state = 813
				state = 812
				state = 811
			}
		}

		cost = 25

		ai_will_do = {
			base = 50
			modifier = {
				add = 150
				SOV = { 
					OR = {
						has_capitulated = yes 
						exists = no
					}
				}
			}
			modifier = {
				add = 25
				SOV = { has_war_with = ROOT }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_ubd_state_transfer_effect_tt

			IF = {
				limit = {
					has_government = neutrality
				}
				set_autonomy = { 
					target = UBD 
					autonomy_state = autonomy_personal_union
				}
			}
			ELSE_IF = {
				limit = {
					has_government = democratic
				}
				set_autonomy = { 
					target = UBD 
					autonomy_state = autonomy_colony
				}
			}
			ELSE = {
				set_autonomy = { 
					target = UBD 
					autonomy_state = autonomy_puppet 
				}
			}

			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 810
							state = 12
							state = 808
							state = 809
							state = 190
							state = 13
							state = 191
							state = 813
							state = 812
							state = 811
						}
					}
					add_core_of = UBD
					transfer_state_to = UBD
				}

				UBD = {
					add_manpower = 25000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 1000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 250
						producer = GER
					}	
				}
			}
		}
	}

	# Restore the Ukrainian State
	GER_restore_the_ukrainian_state_decision = {
	
		priority = 49
	
		icon = GFX_decision_generic_nationalism
	
		ai_will_do = {
			base = 50
			modifier = {
				add = 150
				SOV = { 
					OR = {
						has_capitulated = yes 
						exists = no
					}
				}
			}
			modifier = {
				add = 25
				SOV = { has_war_with = ROOT }
			}
		}

		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 202
				state = 201
				state = 93
				state = 199
				state = 198
				state = 834
				state = 192
				state = 203
				state = 193
				state = 225
				state = 259
				state = 226
				state = 197
				state = 196
				state = 200
				state = 221
				state = 227
				state = 228
				state = 137
				state = 218
				state = 234
			}
		}
	
		allowed = {  
			original_tag = GER
		}
	
		visible = { 
			has_completed_focus = GER_establish_eastern_grand_duchies
			UKR = {
				exists = no
			}
		} 
	
		available = {
			has_completed_focus = GER_establish_eastern_grand_duchies
			UKR = {
				exists = no
			}
			is_subject = no
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				202 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				201 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				93 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				199 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				198 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				834 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				192 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				203 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				193 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				225 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				259 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				226 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				197 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				196 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				200 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				221 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				227 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				228 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				137 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				218 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				234 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}
	
		cost = 50

		complete_effect = {

			custom_effect_tooltip = GER_ukr_state_transfer_effect_tt

			IF = {
				limit = {
					has_government = neutrality
				}
				set_autonomy = { 
					target = UKR 
					autonomy_state = autonomy_personal_union
				}
			}
			ELSE_IF = {
				limit = {
					has_government = democratic
				}
				set_autonomy = { 
					target = UKR 
					autonomy_state = autonomy_colony
				}
			}
			ELSE = {
				set_autonomy = { 
					target = UKR 
					autonomy_state = autonomy_puppet 
				}
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 202
							state = 201
							state = 93
							state = 199
							state = 198
							state = 834
							state = 192
							state = 203
							state = 193
							state = 225
							state = 259
							state = 226
							state = 197
							state = 196
							state = 200
							state = 221
							state = 227
							state = 228
							state = 137
							state = 218
							state = 234
						}
					}
					add_core_of = UKR
					transfer_state_to = UKR
				}

				UKR = {
					add_manpower = 25000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 1000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 250
						producer = GER
					}	
				}
			}

			UKR = {
				UKR_mykhailo_omelianovych_pavlenko = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = despotism
							expire = 1965.1.1
							traits = { POL_cossack_king } 
						}
					}
				}
			}
		}
	
	}

	# Found a Transcaucasian Satellite
	GER_found_a_transcacuasian_satellite_state_decision = {

		icon = GFX_decision_generic_nationalism

		priority = 48

		visible = {
			has_completed_focus = GER_establish_eastern_grand_duchies
			GEO = {
				exists = no
			}
		}

		fire_only_once = yes

		available = {
			is_subject = no
			has_completed_focus = GER_establish_eastern_grand_duchies
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				231 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				826 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				230 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				229 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 231
				state = 826
				state = 230
				state = 229
			}
		}

		cost = 25

		ai_will_do = {
			base = 50
			modifier = {
				add = 150
				SOV = { 
					OR = {
						has_capitulated = yes 
						exists = no
					}
				}
			}
			modifier = {
				add = 25
				SOV = { has_war_with = ROOT }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_geo_state_transfer_effect_tt

			IF = {
				limit = {
					has_government = neutrality
				}
				set_autonomy = { 
					target = GEO 
					autonomy_state = autonomy_personal_union
				}
			}
			ELSE_IF = {
				limit = {
					has_government = democratic
				}
				set_autonomy = { 
					target = GEO 
					autonomy_state = autonomy_colony
				}
			}
			ELSE = {
				set_autonomy = { 
					target = GEO 
					autonomy_state = autonomy_puppet 
				}
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 231
							state = 826
							state = 230
							state = 229
						}
					}
					add_core_of = GEO
					transfer_state_to = GEO
				}

				GEO = {
					set_cosmetic_tag = transcaucasia_unified
					add_manpower = 25000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 1000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 250
						producer = GER
					}	
				}
			}

			set_global_flag = form_transcaucasia_flag

		}
	}

	# Expand Transcaucasian Adminsitration to the Northern Caucasus
	GER_expand_transcacuasian_administrative_duties_decision = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 47

		visible = {
			has_completed_focus = GER_establish_eastern_grand_duchies
			has_global_flag = form_transcaucasia_flag
		}

		fire_only_once = yes

		available = {
			is_subject = no
			GEO = {
				exists = yes
				is_subject_of = ROOT
			}
			has_completed_focus = GER_establish_eastern_grand_duchies
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				827 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				828 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				821 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				232 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				233 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 827
				state = 828
				state = 821
				state = 232
				state = 233
			}
		}

		cost = 15

		ai_will_do = {
			base = 50
			modifier = {
				add = 150
				SOV = { 
					OR = {
						has_capitulated = yes 
						exists = no
					}
				}
			}
			modifier = {
				add = 25
				SOV = { has_war_with = ROOT }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_geo_state_transfer_effect_north_caucasus_tt

			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 827
							state = 828
							state = 821
							state = 232
							state = 233
						}
					}
					add_core_of = GEO
					transfer_state_to = GEO
				}
				set_global_flag = northern_caucasus_claimed_flag
			}

		}
	}

	# Establish a Belarusian State
	GER_establish_a_belarusian_state_decision = {
	
		priority = 46
	
		icon = GFX_decision_generic_nationalism
	
		ai_will_do = {
			base = 50
			modifier = {
				add = 150
				SOV = { 
					OR = {
						has_capitulated = yes 
						exists = no
					}
				}
			}
			modifier = {
				add = 25
				SOV = { has_war_with = ROOT }
			}
		}

		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 194 # Mozyr
				state = 204 # Bobryusk
				state = 206 # Minsk
				state = 207 # Vitebsk
				state = 241 # Gomel
				state = 96 # Wiljeka
			}
		}
	
		allowed = {  
			original_tag = GER
		}
	
		visible = { 
			has_completed_focus = GER_establish_eastern_grand_duchies
			BLR = {
				exists = no
			}
		} 
	
		available = {
			has_completed_focus = GER_establish_eastern_grand_duchies
			BLR = {
				exists = no
			}
			is_subject = no
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				194 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				204 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				206 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				207 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				241 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				96 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}
	
		cost = 35

		complete_effect = {

			custom_effect_tooltip = GER_blr_state_transfer_effect_tt

			IF = {
				limit = {
					has_government = neutrality
				}
				set_autonomy = { 
					target = BLR 
					autonomy_state = autonomy_personal_union
				}
			}
			ELSE_IF = {
				limit = {
					has_government = democratic
				}
				set_autonomy = { 
					target = BLR 
					autonomy_state = autonomy_colony
				}
			}
			ELSE = {
				set_autonomy = { 
					target = BLR 
					autonomy_state = autonomy_puppet 
				}
			}

			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 194 # Mozyr
							state = 204 # Bobryusk
							state = 206 # Minsk
							state = 207 # Vitebsk
							state = 241 # Gomel
							state = 96 # Wiljeka
						}
					}
					add_core_of = BLR
					transfer_state_to = BLR
				}

				BLR = {
					add_manpower = 25000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 1000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 250
						producer = GER
					}	
				}
			}
		}
	
	}

	# Establish Greater Flanders
	GER_establish_greater_flanders_decision = {

		icon = GFX_decision_generic_nationalism

		priority = 50

		visible = {
			has_completed_focus = GER_establish_western_grand_duchies
			BEL = {
				OR = {
					exists = no
					is_subject_of = ROOT
					has_capitulated = yes
				}
			}
		}

		fire_only_once = yes

		available = {
			is_subject = no
			has_completed_focus = GER_establish_western_grand_duchies
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				6 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				34 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				977 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				29 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 6
				state = 34
				state = 977
				state = 29
			}
		}

		cost = 25

		ai_will_do = {
			base = 50
			modifier = {
				add = 150
				BEL = { 
					OR = {
						has_capitulated = yes 
						exists = no
					}
				}
			}
			modifier = {
				add = 25
				ENG = { has_war_with = ROOT }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_flanders_state_transfer_effect_tt

			IF = {
				limit = {
					has_government = neutrality
					BEL = {
						NOT = {
							is_subject_of = ROOT
						}
					}
				}
				set_autonomy = { 
					target = BEL 
					autonomy_state = autonomy_personal_union
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			ELSE_IF = {
				limit = {
					has_government = democratic
					BEL = {
						NOT = {
							is_subject_of = ROOT
						}
					}
				}
				set_autonomy = { 
					target = BEL 
					autonomy_state = autonomy_colony
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			ELSE_IF = {
				limit = {
					BEL = {
						NOT = {
							is_subject_of = ROOT
						}
					}
				}
				set_autonomy = { 
					target = BEL 
					autonomy_state = autonomy_puppet 
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}

			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 6
							state = 34
							state = 977
							state = 29
						}
					}
					add_core_of = BEL
					transfer_state_to = BEL
				}
				980 = {
					remove_core_of = BEL
				}
			}

			BEL = {
				set_cosmetic_tag = BEL_flanders
				add_political_power = 150
				add_stability = 0.1
				add_war_support = 0.1
			}

		}
	}

	# Establish Greater Brittany
	GER_establish_greater_brittany_decision = {

		icon = GFX_decision_generic_nationalism

		priority = 50

		visible = {
			has_completed_focus = GER_establish_western_grand_duchies
			BRI = {
				OR = {
					exists = no
					is_subject_of = ROOT
				}
			}
		}

		fire_only_once = yes

		available = {
			is_subject = no
			has_completed_focus = GER_establish_western_grand_duchies
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				14 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				30 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 14
				state = 30
			}
		}

		cost = 25

		ai_will_do = {
			base = 50
			modifier = {
				add = 150
				BRI = { 
					OR = {
						has_capitulated = yes 
						exists = no
					}
				}
			}
			modifier = {
				add = 25
				FRA = { has_war_with = ROOT }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_bri_state_transfer_effect_tt

			IF = {
				limit = {
					has_government = neutrality
					BRI = {
						NOT = {
							is_subject_of = ROOT
						}
					}
				}
				set_autonomy = { 
					target = BRI 
					autonomy_state = autonomy_personal_union
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			ELSE_IF = {
				limit = {
					has_government = democratic
					BRI = {
						NOT = {
							is_subject_of = ROOT
						}
					}
				}
				set_autonomy = { 
					target = BRI 
					autonomy_state = autonomy_colony
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			ELSE_IF = {
				limit = {
					BRI = {
						NOT = {
							is_subject_of = ROOT
						}
					}
				}
				set_autonomy = { 
					target = BRI 
					autonomy_state = autonomy_puppet 
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}

			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 14
							state = 30
						}
					}
					add_core_of = BRI
					transfer_state_to = BRI
				}

				BRI = {
					add_manpower = 25000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 1000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 250
						producer = GER
					}	
				}
			}
		}
	}

	# Establish a Greater Welsh State
	GER_establish_wales_decision = {

		icon = GFX_decision_generic_nationalism

		priority = 50

		visible = {
			has_completed_focus = GER_establish_western_grand_duchies
			WLS = {
				OR = {
					exists = no
					is_subject_of = ROOT
				}
			}
		}

		fire_only_once = yes

		available = {
			is_subject = no
			has_completed_focus = GER_establish_western_grand_duchies
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				122 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				132 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				128 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				338 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				123 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 122
				state = 132
				state = 128
				state = 338
				state = 123
			}
		}

		cost = 25

		ai_will_do = {
			base = 50
			modifier = {
				add = 150
				WLS = { 
					OR = {
						has_capitulated = yes 
						exists = no
					}
				}
			}
			modifier = {
				add = 25
				ENG = { has_war_with = ROOT }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_wls_state_transfer_effect_tt

			IF = {
				limit = {
					has_government = neutrality
					WLS = {
						NOT = {
							is_subject_of = ROOT
						}
					}
				}
				set_autonomy = { 
					target = WLS 
					autonomy_state = autonomy_personal_union
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			ELSE_IF = {
				limit = {
					has_government = democratic
					WLS = {
						NOT = {
							is_subject_of = ROOT
						}
					}
				}
				set_autonomy = { 
					target = WLS 
					autonomy_state = autonomy_colony
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			ELSE_IF = {
				limit = {
					WLS = {
						NOT = {
							is_subject_of = ROOT
						}
					}
				}
				set_autonomy = { 
					target = WLS 
					autonomy_state = autonomy_puppet 
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 122
							state = 132
							state = 128
							state = 338
							state = 123
						}
					}
					add_core_of = WLS
					transfer_state_to = WLS
				}

				WLS = {
					add_manpower = 25000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 1000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 250
						producer = GER
					}	
				}
			}
		}
	}

	# Establish a Greater Scottish State
	GER_establish_scotland_decision = {

		icon = GFX_decision_generic_nationalism

		priority = 50

		visible = {
			has_completed_focus = GER_establish_western_grand_duchies
			SCO = {
				OR = {
					exists = no
					is_subject_of = ROOT
				}
			}
		}

		fire_only_once = yes

		available = {
			is_subject = no
			has_completed_focus = GER_establish_western_grand_duchies
			custom_trigger_tooltip = {
				tooltip = GER_reichskommissariat_highlighted_required_states
				121 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				133 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				136 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				120 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				933 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				131 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				931 = {
					is_controlled_by_ROOT_or_subject = yes
				}
				932 = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 121
				state = 133
				state = 136
				state = 120
				state = 933
				state = 131
				state = 931
				state = 932
			}
		}

		cost = 25

		ai_will_do = {
			base = 50
			modifier = {
				add = 150
				SCO = { 
					OR = {
						has_capitulated = yes 
						exists = no
					}
				}
			}
			modifier = {
				add = 25
				ENG = { has_war_with = ROOT }
			}
		}

		complete_effect = {

			custom_effect_tooltip = GER_sco_state_transfer_effect_tt

			IF = {
				limit = {
					has_government = neutrality
					SCO = {
						NOT = {
							is_subject_of = ROOT
						}
					}
				}
				set_autonomy = { 
					target = SCO 
					autonomy_state = autonomy_personal_union
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			ELSE_IF = {
				limit = {
					has_government = democratic
					SCO = {
						NOT = {
							is_subject_of = ROOT
						}
					}
				}
				set_autonomy = { 
					target = SCO 
					autonomy_state = autonomy_colony
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			ELSE_IF = {
				limit = {
					SCO = {
						NOT = {
							is_subject_of = ROOT
						}
					}
				}
				set_autonomy = { 
					target = SCO 
					autonomy_state = autonomy_puppet 
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}

			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 121
							state = 133
							state = 136
							state = 120
							state = 933
							state = 131
							state = 931
							state = 932
						}
					}
					add_core_of = SCO
					transfer_state_to = SCO
				}

				SCO = {
					add_manpower = 25000
					add_equipment_to_stockpile = { 
						type = infantry_equipment
						amount = 1000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 250
						producer = GER
					}	
				}
			}

		}
	}

}

GER_mitteleuropa_economic_integration_cat = {

	GER_mitteleuropa_customs_union_decision = {
		priority = 5
		icon = GFX_decision_gre_investment_decisions 

		ai_will_do = {
			base = 2
			modifier = {
				factor = 2
				any_enemy_country = {
					has_war_with = FROM
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					is_enemy_ideology = yes
				}
			}
			modifier = {
				factor = 2
				FROM = {
					has_government = ROOT
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.75
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.5
				}
			}
		}

		target_array = ROOT.allies

		target_trigger = {
			FROM = {
				capital_scope = { is_on_continent = europe }
				is_in_faction_with = ROOT
				NOT = {
					OR = {
						has_idea = GER_mitteleuropa_customs_union_member
						has_idea = GER_mitteleuropa_integrated_customs_union_member
					}
				}
			}
		}

		available = {
		}

		visible = {	
			has_completed_focus = GER_establish_a_customs_union
		}

		fire_only_once = yes

		cost = 15

		complete_effect = {

			FROM = {
				country_event = {
					id = wuw_GER_realpolitik.63
					hours = 6
					random_hours = 12
				}	
			}

			custom_effect_tooltip = if_they_accept_tt

			effect_tooltip = {
				FROM = {
					add_ideas = GER_mitteleuropa_customs_union_member
				}
			}
		}
	}
		
	GER_mitteleuropa_economic_integration_decision = {
		priority = 3
		icon = GFX_decision_eng_trade_unions_support 

		ai_will_do = {
			base = 5
			modifier = {
				factor = 2
				any_enemy_country = {
					has_war_with = FROM
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					is_enemy_ideology = yes
				}
			}
			modifier = {
				factor = 2
				FROM = {
					has_government = ROOT
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.75
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.5
				}
			}
		}

		target_array = ROOT.allies

		target_trigger = {
			FROM = {
				is_in_faction_with = ROOT
				capital_scope = { is_on_continent = europe }
				is_subject = no
				has_idea = GER_mitteleuropa_customs_union_member
				NOT = {
					OR = {
						has_country_flag = GER_has_sent_invitation_for_integration_once_already_flag
						has_country_flag = GER_country_that_rejected_economic_integration_flag
					}
				}
			}
		}

		available = {
		}

		visible = {	
			has_completed_focus = GER_integrated_economies
		}

		fire_only_once = yes

		cost = 15

		complete_effect = {
			FROM = {
				country_event = { id = wuw_GER_realpolitik.33 days = 1 } 
				set_country_flag = GER_has_sent_invitation_for_integration_once_already_flag
			}

			custom_effect_tooltip = if_they_accept_tt

			effect_tooltip = {
				FROM = {
					
					swap_ideas = {
						remove_idea = GER_mitteleuropa_customs_union_member
						add_idea = GER_mitteleuropa_integrated_customs_union_member
					}	
					
				}
			}
		}
	}

	GER_further_increase_froms_dependency_decision = {
		icon = GFX_decision_eng_trade_unions_demand
		priority = 2

		ai_will_do = {
			base = 50
		}
		
		fire_only_once = yes

		target_array = ROOT.allies

		target_trigger = {
			FROM = {
				is_in_faction_with = ROOT
				capital_scope = { is_on_continent = europe }
				is_subject = no
				has_idea = GER_mitteleuropa_integrated_customs_union_member
				NOT = { has_country_flag = GER_sent_puppet_proposal_flag }
			}
		}

		visible = {
			has_completed_focus = GER_european_confederation
		}

		available = {
			is_subject = no
			is_faction_leader = yes
		}

		days_remove = 35

		cost = 50

		complete_effect = {
		}

		remove_effect = {
			FROM = {
				country_event = {
					id = wuw_GER_realpolitik.57
					hours = 12
				}
				set_country_flag = GER_sent_puppet_proposal_flag
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				puppet = FROM
			}
			
		}
	}

	GER_annex_integrated_puppet_decision = {
		icon = GFX_decision_eng_trade_unions_demand
		priority = 1

		ai_will_do = {
			base = 50
		}
		
		fire_only_once = yes

		target_array = ROOT.subjects

		target_trigger = {
			FROM = {
				is_subject_of = ROOT
				capital_scope = { is_on_continent = europe }
				NOT = { has_country_flag = GER_sent_annex_proposal_flag }
				is_neighbor_of = ROOT 
			}
		}

		visible = {
			has_completed_focus = GER_european_confederation
		}

		available = {
			is_subject = no
			is_faction_leader = yes
		}

		days_remove = 35

		cost = 75

		complete_effect = {
		}

		remove_effect = {
			FROM = {
				country_event = {
					id = wuw_GER_realpolitik.60
					hours = 12
				}
				set_country_flag = GER_sent_annex_proposal_flag
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				annex_country = {
					target = FROM
					transfer_troops = yes
				}	
			}
			
		}
	}

}

GER_proletarian_revolution_cat = {
	GER_imminent_proletarian_revolution_mission = {

		priority = 1

		icon = GFX_decision_revolt

		available =  {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 120

		fire_only_once = yes

		activation = {
			has_country_flag = GER_the_proletarian_revolution_flag
			has_civil_war = no 
		}

		visible = {
			tag = GER
			has_country_flag = GER_the_proletarian_revolution_flag
			has_civil_war = no 
		}

		cancel_if_not_visible = yes

		is_good = yes

		timeout_effect = {
			country_event = {
				id = wuw_GER_civil_war.6
				hours = 12
			}
		}
	}

	GER_expand_the_proletarian_uprisings_decision = {

		icon = GFX_decision_generic_civil_support

		priority = 1

		allowed = {
			original_tag = GER
		}

		visible = {

		}

		available = {

		}

		state_target = yes

		on_map_mode = map_only

		target_array = ROOT.core_states

		target_trigger = {
			FROM = {
				NOT = {
					has_dynamic_modifier = {
						modifier = GER_proletariat_uprising_modifier
					}
				}
				is_capital = no
				OR = {
					industrial_complex > 0
					arms_factory > 0
					dockyard > 0
				}
			}
		}

		fire_only_once = yes

		cost = 25

		days_remove = 30

		ai_will_do = {
			base = 15
		}

		complete_effect = {
			set_country_flag = GER_encouraging_proletariat_uprisings_flag
		}

		remove_effect = {
			clr_country_flag = GER_encouraging_proletariat_uprisings_flag
			add_days_mission_timeout = {
				mission = GER_imminent_proletarian_revolution_mission
				days = 15
			}

			custom_effect_tooltip = generic_skip_one_line_tt


			FROM = { #Add Communist Support based on the amount of factories in the state
				set_temp_variable = { GER.increased_communist_support = industrial_complex_level }
				add_to_temp_variable = { GER.increased_communist_support = arms_factory_level }
				add_to_temp_variable = { GER.increased_communist_support = building_level@dockyard }
				add_to_temp_variable = { GER.increased_communist_support = building_level@synthetic_refinery }
			}
			multiply_temp_variable = {
				var = increased_communist_support
				value = 0.002
			}

			FROM = { #Decreased Stability based on the amount of factories in the state
				set_temp_variable = { GER.decreased_stability = industrial_complex_level }
				add_to_temp_variable = { GER.decreased_stability = arms_factory_level }
				add_to_temp_variable = { GER.decreased_stability = building_level@dockyard }
				add_to_temp_variable = { GER.decreased_stability = building_level@synthetic_refinery }
			}
			multiply_temp_variable = {
				var = decreased_stability
				value = -0.004
			}

			add_to_variable = { GER_communist_stability_influence = increased_communist_support }

			add_stability = decreased_stability
			add_popularity = {
				ideology = communism
				popularity = increased_communist_support
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			
			FROM = {
				add_dynamic_modifier = {
					modifier = GER_proletariat_uprising_modifier
				}
			}
		}
	}

	GER_organize_worker_rally_decision = {

		icon = GFX_decision_generic_political_discourse

		priority = 1

		allowed = {
			original_tag = GER
		}

		visible = {
		}

		available = {
			num_of_civilian_factories_available_for_projects > 0
		}

		fire_only_once = yes

		cost = 25

		days_remove = 30

		ai_will_do = {
			base = 50
		}

		modifier = {
			civilian_factory_use = 1
		}

		cancel_trigger = {
			has_civil_war = yes
		}

		complete_effect = {
		}

		remove_effect = {

			add_stability = -0.025

			add_to_variable = { GER_communist_stability_influence = 0.025 }

			add_days_mission_timeout = {
				mission = GER_imminent_proletarian_revolution_mission
				days = 15
			}
		}
	}
}

GER_volkskommissariats_cat = {
	GER_establish_volkskommissariat_decision = {

		icon = GFX_decision_eng_trade_unions_support

		priority = 10

		allowed = {
			original_tag = GER
		}

		visible = {

		}

		available = {

		}

		cost = 25

		days_remove = 20

		ai_will_do = {
			base = 3
		}

		fire_only_once = yes

		target_array = ROOT.subjects

		target_trigger = {
			FROM = {
				has_government = communism
				any_home_area_neighbor_country = {
					original_tag = GER
				}

			}
		}

		complete_effect = {

		}

		remove_effect = {

			FROM = {
				country_event = {
					id = wuw_GER_diplomacy.71
					hours = 3
				}
			}

			event_option_tooltip = wuw_GER_diplomacy.71.a
		}
	}

	GER_volkskommissariat_industrial_effort_decision = {
		icon = GFX_decision_generic_construction

		priority = 9

		allowed = {
			original_tag = GER
		}

		visible = {
			has_completed_focus = GER_industrialize_volkskommissariats
			NOT = { has_country_flag = GER_currently_improving_volkskommissariat_flag }
		}

		available = {
			num_of_civilian_factories_available_for_projects > 2
		}

		cost = 15

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 30

		fire_only_once = yes

		target_array = ROOT.subjects

		target_trigger = {
			FROM = {
				has_autonomy_state = autonomy_volkskommissariat
			}
		}

		complete_effect = {
			set_country_flag = GER_currently_improving_volkskommissariat_flag
		}

		remove_effect = {

			clr_country_flag = GER_currently_improving_volkskommissariat_flag

			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = yes
					}
					
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}

					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}

					add_extra_state_shared_building_slots = 2
				}

				country_event = {
					id = wuw_GER_diplomacy.80
					hours = 6
				}
			}
		}
	}

	GER_integrate_volkskommissariats_decision = {
		icon = GFX_decision_hol_draw_up_staff_plans

		priority = 11

		allowed = {
			original_tag = GER
		}

		visible = {
			has_completed_focus = GER_integrate_volkskommissariats
		}

		available = {
			NOT = { 
				has_country_flag = GER_currently_integrating_volkskommissariat_flag
			}
		}

		cost = 50

		days_remove = 15

		ai_will_do = {
			base = 5
		}

		fire_only_once = yes

		target_array = ROOT.subjects

		target_trigger = {
			FROM = {
				has_autonomy_state = autonomy_volkskommissariat
			}
		}

		complete_effect = {
			set_country_flag = GER_currently_integrating_volkskommissariat_flag
		}

		remove_effect = {

			IF = { #We're using a flag here instead so that you don't accidentally remove a potential cosmetic tag you gain AFTER taking this decision for the first time
				limit = {
					NOT = {
						has_country_flag = GER_integrate_volkskommissariats_cosmetic_tag_flag
					}
				}
				set_country_flag = GER_integrate_volkskommissariats_cosmetic_tag_flag

				set_cosmetic_tag = GER_german_socialist_union
			}
			set_country_flag = GER_integrate_volkskommissariats_cosmetic_tag_flag

			clr_country_flag = GER_currently_integrating_volkskommissariat_flag

			FROM = {
				country_event = {
					id = wuw_GER_diplomacy.81
					hours = 12
				}
			}
		}
	}
}

GER_spreading_the_red_flame_cat = {
	GER_communist_propaganda_decision = {

		icon = GFX_decision_eng_propaganda_campaigns

		priority = 8

		allowed = {
			original_tag = GER
		}

		visible = {
			#always = yes
			NOT = { has_completed_focus = GER_red_europe }
		}

		available = {
		}

		cost = 25

		ai_will_do = {
			base = 5
		}

		fire_only_once = yes

		target_array = ROOT.neighbors

		target_trigger = {
			NOT = {
				ROOT = { has_wargoal_against = FROM }
				ROOT = { has_war_with = FROM }
			}
			FROM = {
				is_subject = no
				is_major = no
				NOT = { has_government = communism }
				NOT = { has_government = fascism }
				has_civil_war = no
				NOT = {
					has_idea = GER_communist_influence
				}
			}
			if = {
				limit = {
					ROOT = {
						has_country_flag = GER_SOV_agreed_sphere_of_influence
					}
				}
				FROM = {
					NOT = {
						original_tag = FIN
						original_tag = EST
						original_tag = LAT
						original_tag = LIT
						original_tag = SLO
						original_tag = ROM
						original_tag = YUG
						original_tag = BUL
					}
				}
			}
		}

		complete_effect = {
			add_named_threat = { threat = 1 name = GER_communist_propaganda }

			FROM = {
				country_event = {
					id = wuw_GER_diplomacy.72
					hours = 12
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				FROM = {
					add_timed_idea = {
						idea = GER_communist_influence
						days = 730
					}
				}
			}
			custom_effect_tooltip = if_they_refuse_tt
			effect_tooltip = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = FROM
				}
			}
		}
	}

	GER_communist_propaganda_expanded_decision = {

		icon = GFX_decision_eng_propaganda_campaigns

		priority = 8

		allowed = {
			original_tag = GER
		}

		visible = {
			always = yes
			has_completed_focus = GER_red_europe
		}

		available = {
		}

		cost = 25

		ai_will_do = {
			base = 5
		}

		fire_only_once = yes

		target_array = ROOT.GER_european_targets_array

		target_trigger = {
			NOT = {
				ROOT = { has_wargoal_against = FROM }
				ROOT = { has_war_with = FROM }
			}
			FROM = {
				is_subject = no
				is_major = no
				NOT = { has_government = communism }
				NOT = { has_government = fascism }
				has_civil_war = no
				NOT = {
					has_idea = GER_communist_influence
				}
			}
			if = {
				limit = {
					ROOT = {
						has_country_flag = GER_SOV_agreed_sphere_of_influence
					}
				}
				FROM = {
					NOT = {
						original_tag = FIN
						original_tag = EST
						original_tag = LAT
						original_tag = LIT
						original_tag = SLO
						original_tag = ROM
						original_tag = YUG
						original_tag = BUL
					}
				}
			}
		}

		complete_effect = {
			add_named_threat = { threat = 1 name = GER_communist_propaganda }

			FROM = {
				country_event = {
					id = wuw_GER_diplomacy.72
					hours = 12
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				FROM = {
					add_timed_idea = {
						idea = GER_communist_influence
						days = 730
					}
				}
			}
			custom_effect_tooltip = if_they_refuse_tt
			effect_tooltip = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = FROM
				}
			}
		}
	}

	GER_communist_propaganda_south_america_decision = {

		icon = GFX_decision_eng_propaganda_campaigns

		priority = 8

		allowed = {
			original_tag = GER
		}

		visible = {
			has_completed_focus = GER_align_south_america
		}

		available = {
		}

		cost = 25

		ai_will_do = {
			base = 5
		}

		fire_only_once = yes

		targets = { ARG BOL BRA CHL COL COS CUB DOM ECU ELS GUA HAI HON MEX NIC PAN PAR PRU URG VEN }

		target_trigger = {
			NOT = {
				ROOT = { has_wargoal_against = FROM }
				ROOT = { has_war_with = FROM }
			}
			FROM = {
				is_subject = no
				is_major = no
				NOT = { has_government = communism }
				NOT = { has_government = fascism }
				has_civil_war = no
				NOT = {
					has_idea = GER_communist_influence
				}
			}
		}

		complete_effect = {
			add_named_threat = { threat = 1 name = GER_communist_propaganda }

			FROM = {
				country_event = {
					id = wuw_GER_diplomacy.72
					hours = 12
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				FROM = {
					add_timed_idea = {
						idea = GER_communist_influence
						days = 730
					}
				}
			}
			custom_effect_tooltip = if_they_refuse_tt
			effect_tooltip = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = FROM
				}
			}
		}
	}

	GER_communist_propaganda_middle_east_decision = {

		icon = GFX_decision_eng_propaganda_campaigns

		priority = 8

		allowed = {
			original_tag = GER
		}

		visible = {
			has_completed_focus = GER_instigate_middle_eastern_revolutions
		}

		available = {
		}

		cost = 25

		ai_will_do = {
			base = 5
		}

		fire_only_once = yes

		targets = { PER IRQ SYR SAU EGY JOR LEB OMA YEM PAL KUW QAT UAE TUR }

		target_trigger = {
			NOT = {
				ROOT = { has_wargoal_against = FROM }
				ROOT = { has_war_with = FROM }
			}
			FROM = {
				is_subject = no
				is_major = no
				NOT = { has_government = communism }
				NOT = { has_government = fascism }
				has_civil_war = no
				NOT = {
					has_idea = GER_communist_influence
				}
			}
		}

		complete_effect = {
			add_named_threat = { threat = 1 name = GER_communist_propaganda }

			FROM = {
				country_event = {
					id = wuw_GER_diplomacy.72
					hours = 12
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				FROM = {
					add_timed_idea = {
						idea = GER_communist_influence
						days = 730
					}
				}
			}
			custom_effect_tooltip = if_they_refuse_tt
			effect_tooltip = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = FROM
				}
			}
		}
	}

	GER_supporting_the_uprising_decision = {
		icon = GFX_decision_generic_prepare_civil_war

		priority = 8

		allowed = {
			original_tag = GER
		}

		visible = {
			has_completed_focus = GER_support_the_proletarian_uprising
		}

		available = {
			has_equipment = { infantry_equipment > 1999 }
		}

		fire_only_once = yes

		ai_will_do = {
			base = 5
		}

		days_remove = 15

		target_array = GER.started_communist_cw_here

		target_trigger = {
			FROM = {
				has_government = communism
				has_civil_war = yes
			}
		}

		custom_cost_trigger = {
			has_equipment = { infantry_equipment > 1999 }
		}
		custom_cost_text = decision_cost_ie_2000

		complete_effect = {
			hidden_effect = {
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = -2000
				}
			}
		}

		remove_effect = {
			FROM = {
				country_event = {
					id = wuw_GER_diplomacy.82
					hours = 12
				}
			}
		}
	}

	GER_demand_communist_subjugation_decision = {
		icon = GFX_decision_eng_trade_unions_demand

		priority = 9

		allowed = {
			original_tag = GER
		}

		visible = {
			has_completed_focus = GER_protect_the_revolution
		}

		available = {

		}

		cost = 50

		days_remove = 30

		ai_will_do = {
			base = 3
		}

		fire_only_once = yes

		target_array = ROOT.neighbors

		target_trigger = {
			FROM = {
				NOT = { has_war_with = ROOT }
				has_government = communism 
				is_subject = no
				has_civil_war = no
				has_country_flag = GER_spurred_communist_cw_flag
			}
		}

		complete_effect = {

		}

		remove_effect = {
			FROM = {
				country_event = {
					id = wuw_GER_diplomacy.76
					hours = 6
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				ROOT = {
					puppet = FROM 
				}
			}
		}
	}

	GER_proletarian_solidarity_decision = {
		icon = GFX_decision_SWI_support_humanitarian_efforts

		priority = 8

		allowed = {
			original_tag = GER
		}

		visible = {
			has_completed_focus = GER_proletarian_solidarity
		}

		cost = 25

		fire_only_once = yes

		target_array = GER.started_communist_cw_here

		target_trigger = {
			FROM = {
				has_government = communism
				has_civil_war = no
				any_core_state = {
					is_fully_controlled_by = FROM
					OR = {
						has_resources_amount = {
							resource = oil
							amount > 9
							delivered = yes

						}
						has_resources_amount = {
							resource = aluminium
							amount > 9
							delivered = yes
						}
						has_resources_amount = {
							resource = rubber
							amount > 9
							delivered = yes
						}
						has_resources_amount = {
							resource = tungsten
							amount > 9
							delivered = yes
						}
						has_resources_amount = {
							resource = steel
							amount > 9
							delivered = yes
						}
						has_resources_amount = {
							resource = chromium
							amount > 9
							delivered = yes
						}
					}
				}
			}
		}

		complete_effect = {

			FROM = {
				country_event = {
					id = wuw_GER_diplomacy.84
					hours = 12
				}
			}

			custom_effect_tooltip = if_they_accept_tt

			effect_tooltip = {
				IF = {
					limit = { 
						FROM = {
							is_subject_of = ROOT
						}
					}
					add_ideas = GER_proletarian_solidarity_subject_ns
				}
				ELSE = {
					add_ideas = GER_proletarian_solidarity_ns
				}
			}
			
		}
	}
}

GER_industrial_relocation_cat = {
	GER_industrial_relocation_oil_decision = {
		icon = GFX_decision_oil
		priority = 8

		allowed = {
			original_tag = GER
		}

		visible = {

		}

		available = {
			NOT = { has_country_flag = GER_currently_relocating_industry_flag } 
		}

		cost = 50

		fire_only_once = yes

		days_remove = 30

		state_target = yes

		target_trigger = {
			FROM = {
				is_fully_controlled_by = SOV
				OR = {
					state = 229 #Azerbaijan
					state = 234 #Krasnodar
				}
			}
			
		}

		cancel_trigger = {
			FROM = {
				NOT = {
					is_fully_controlled_by = SOV
				}
			}
		}

		complete_effect = {
			set_country_flag = GER_currently_relocating_industry_flag
		}

		remove_effect = {
			clr_country_flag = GER_currently_relocating_industry_flag

			set_country_flag = GER_requests_oil_flag

			SOV = {
				country_event = {
					id = wuw_GER_diplomacy.107
					hours = 6
				}
			}

			custom_effect_tooltip = if_they_accept_tt
			custom_effect_tooltip = GER_industrial_relocation_descision_tt
		}
	}
	GER_industrial_relocation_tungsten_decision = {
		icon = GFX_decision_tungsten
		priority = 8

		allowed = {
			original_tag = GER
		}

		visible = {

		}

		available = {
			NOT = { has_country_flag = GER_currently_relocating_industry_flag } 
		}

		cost = 50

		fire_only_once = yes

		days_remove = 30

		state_target = yes

		target_trigger = {
			FROM = {
				is_fully_controlled_by = SOV
				OR = {
					state = 564 #Buryatia
					state = 401 #Balakovo
				}
			}
		}

		cancel_trigger = {
			FROM = {
				NOT = {
					is_fully_controlled_by = SOV
				}
			}
		}

		complete_effect = {
			set_country_flag = GER_currently_relocating_industry_flag
		}

		remove_effect = {
			clr_country_flag = GER_currently_relocating_industry_flag

			set_country_flag = GER_requests_tungsten_flag

			SOV = {
				country_event = {
					id = wuw_GER_diplomacy.107
					hours = 6
				}
			}

			custom_effect_tooltip = if_they_accept_tt
			custom_effect_tooltip = GER_industrial_relocation_descision_tt
		}
	}
	GER_industrial_relocation_chromium_decision = {
		icon = GFX_decision_chromium
		priority = 8

		allowed = {
			original_tag = GER
		}

		visible = {

		}

		available = {
			NOT = { has_country_flag = GER_currently_relocating_industry_flag } 
		}

		cost = 50

		fire_only_once = yes

		days_remove = 30

		state_target = yes

		target_trigger = {
			FROM = {
				is_fully_controlled_by = SOV
				OR = {
					state = 402 #Akhtubinsk
					state = 573 #Zlatoust
				}
			}
		}

		cancel_trigger = {
			FROM = {
				NOT = {
					is_fully_controlled_by = SOV
				}
			}
		}

		complete_effect = {
			set_country_flag = GER_currently_relocating_industry_flag
		}

		remove_effect = {
			clr_country_flag = GER_currently_relocating_industry_flag

			set_country_flag = GER_requests_chromium_flag

			SOV = {
				country_event = {
					id = wuw_GER_diplomacy.107
					hours = 6
				}
			}

			custom_effect_tooltip = if_they_accept_tt
			custom_effect_tooltip = GER_industrial_relocation_descision_tt
		}
	}
}

GER_anti_colonialism_category = {
	GER_support_resistance_decision = {
		icon = GFX_decision_generic_nationalism
		#target_trigger = {
		#	FROM = { is_east_african_colony_state = yes }
		#}
		target_array = GER.african_colonial_states_array 
		target_root_trigger = { original_tag = GER } 
		state_target = yes
		on_map_mode = map_only
		fire_only_once = yes 
		available = {
			NOT = { has_country_flag = GER_independence_support_progress_flag }
			NOT = { FROM.owner = { is_in_faction_with = ROOT } }
		}

		visible = {
			FROM = {
				NOT = {
					has_dynamic_modifier = {
						modifier = GER_state_supporting_resistance_modifier
						scope = THIS.owner 
					}
				}
			} 
			FROM = { NOT = { is_core_of = THIS.owner } } # Hide it if no longer a colony 
			FROM = { NOT = { is_owned_by = ROOT } }# It gets kind of silly when you start supporting resistance against yourself, doesn't it
		}
		days_remove = 30
 
		custom_cost_trigger = {
			command_power > 24.9
		}
		custom_cost_text = ETH_support_resistance_decision_cost

		modifier = {
			industrial_capacity_factory = -0.1
		}

		complete_effect = {
			set_country_flag = GER_independence_support_progress_flag
		}

		remove_effect = {
			clr_country_flag = GER_independence_support_progress_flag
			add_command_power = -25
			FROM = {
				add_compliance = -35
				add_resistance = 15  
				add_dynamic_modifier = {
					modifier = GER_state_supporting_resistance_modifier
					scope = THIS.owner 
					days = 365
				}
			}
		}

		ai_will_do = {
			base = 2
			modifier = {
				factor = 10
				AND = {
					has_war = no 
					command_power > 50
				}
			}
		}
	}

	GER_arm_resistance_decision = {
		icon = GFX_decision_generic_prepare_civil_war
		target_array = GER.african_colonial_states_array 
		target_root_trigger = { original_tag = GER } 
		state_target = yes
		on_map_mode = map_only
		fire_only_once = yes 
		available = {
			NOT = { FROM.owner = { is_in_faction_with = ROOT } }
			NOT = { has_country_flag = GER_arm_resistance_flag }
		}
		visible = {
			FROM = {
				has_dynamic_modifier = {
					modifier = GER_state_supporting_resistance_modifier
					scope = THIS.owner 
				}
			} 
			FROM = { NOT = { is_core_of = THIS.owner } } # Hide it if no longer a colony 

		}
		days_remove = 7
		custom_cost_trigger = {
			has_equipment = { infantry_equipment > 999 }
		}
		custom_cost_text = decision_cost_ie_1000
		modifier = {
	
		}
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
			set_country_flag = GER_arm_resistance_flag	
		}
		remove_effect = {
			clr_country_flag = GER_arm_resistance_flag
			FROM = {
				add_resistance = 40
			}
		}
		ai_will_do = {
			base = 2
			modifier = {
				add = 15
				AND = {
					has_war = no 
					has_equipment = { infantry_equipment > 999 }
				}
			}
		}
	}

	GER_support_independence_decision = {
		icon = GFX_decision_generic_civil_support
		target_trigger = {
			FROM = {
				OR = {
					capital_scope = { is_on_continent = asia }
					capital_scope = { is_on_continent = africa }
				}
				is_subject = yes 
				NOT = {
					is_subject_of = ROOT
				}
			}
		}
		target_root_trigger = { original_tag = GER } 

		# on_map_mode = map_only

		fire_only_once = no 

		available = {
			#NOT = { has_country_flag = GER_independence_support_progress_flag }
			NOT = {
				has_country_flag = {
					flag = GER_independence_support_progress_flag
					value > 0
				}
			}
			NOT = {is_in_faction_with = FROM}
		}

		remove_trigger = { FROM = { is_subject = no } }

		visible = {
			
		}

		#cancel_trigger = {
		#	FROM = { is_subject = no }
		#}
		#cancel_effect = {
		#	clr_country_flag = GER_independence_support_progress_flag
		#}
		
		days_remove = 90
		days_re_enable = 30 

		cost = 15

		modifier = {
			political_power_factor = -0.25
		}

		complete_effect = {
			#set_country_flag = GER_independence_support_progress_flag
			FROM = {
				add_timed_idea = {
					idea = GER_supporting_colonial_independence_idea
					days = 90
				}
			}	
			set_country_flag = {
				flag = GER_independence_support_progress_flag
				days = 90
				value = 1
			}		
		}
		remove_effect = {
			#clr_country_flag = GER_independence_support_progress_flag
		}
		ai_will_do = {
			base = 0
			modifier = {
				add = 200
				AND = {
					has_war = no 
					has_equipment = { infantry_equipment > 999 }
				}
			}
			modifier = {
				factor = 2
				has_government = communism
			}
		}
	}

	GER_anti_colonialism_decision = {
		icon = GFX_decision_eng_propaganda_campaigns
		target_trigger = {
			FROM = {
				OR = {
					capital_scope = { is_on_continent = north_america }
					capital_scope = { is_on_continent = europe } 
					original_tag = JAP
				}
				any_owned_state = {
					OR = {
						is_on_continent = asia
						is_on_continent = africa
					}
					NOT = { is_core_of = PREV }
					is_in_array = {
						array = GER.african_colonial_states_array 
						value = THIS  
					}
					has_active_resistance = yes
				}
			}
			
		}

		target_array = global.colonial_powers
		
		target_root_trigger = { original_tag = GER } 
		# on_map_mode = map_only
		fire_only_once = yes  
		available = {
			NOT = { has_country_flag = GER_independence_support_progress_flag }
			NOT = { is_in_faction_with = FROM }
		}
		visible = {
			
		}
		days_remove = 30
		cost = 15
		modifier = {
			political_power_factor = -0.25
		}
		complete_effect = {
			set_country_flag = GER_independence_support_progress_flag
					
		}
		remove_effect = {
			clr_country_flag = GER_independence_support_progress_flag
			FROM = {
				every_owned_state = {
					limit = {
						OR = {
							is_on_continent = asia
							is_on_continent = africa
						}
						is_controlled_by = PREV
						has_active_resistance = yes
					}
					add_compliance = -20
					add_resistance = 5
				}
			}
		}
		ai_will_do = {
			base = 2
			modifier = {
				add = 20
				has_war = no
			}
		}
	}
}

# The Fading Eagle
GER_the_fading_eagle_category = {
	
	# Occupy Albania
	GER_occupy_albania_decision = {
	
		priority = 50
	
		icon = GFX_decision_generic_operation
	
		ai_will_do = {
			base = 100
		}
	
		allowed = {  
			original_tag = GER
		}
	
		visible = { 
			any_country_with_original_tag = {
				original_tag_to_check = ITA
				is_subject_of = ROOT
			}
			ALB = {
				is_in_faction_with = ROOT
				is_subject = no
			}
			NOT = { has_country_flag = GER_demanded_albanian_subjugation_flag }
		} 
	
		available = {
			has_government = fascism
			ALB = {
				is_in_faction_with = ROOT
				is_subject = no
				all_owned_state = {
					is_controlled_by = ALB
				}
			}
		}
	
		cost = 50

		complete_effect = {

			ALB = {
				country_event = {
					id = GOT_GER_fading_eagle.01
					hours = 6
				}		
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				puppet = ALB
			}

			hidden_effect = {
				set_country_flag = GER_demanded_albanian_subjugation_flag 
			}
		}
	
	}

	# Occupy Montenegro
	GER_occupy_montenegro_decision = {
	
		priority = 51
	
		icon = GFX_decision_generic_operation
	
		ai_will_do = {
			base = 100
		}
	
		allowed = {  
			original_tag = GER
		}
	
		visible = { 
			any_country_with_original_tag = {
				original_tag_to_check = ITA
				is_subject_of = ROOT
			}
			MNT = {
				is_in_faction_with = ROOT
				is_subject = no
			}
			NOT = { has_country_flag = GER_demanded_montenegrin_subjugation_flag }
		} 
	
		available = {
			has_government = fascism
			MNT = {
				is_in_faction_with = ROOT
				is_subject = no
				all_owned_state = {
					is_controlled_by = MNT
				}
			}
		}
	
		cost = 50

		complete_effect = {

			MNT = {
				country_event = {
					id = GOT_GER_fading_eagle.01
					hours = 6
				}		
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				puppet = MNT
			}

			hidden_effect = {
				set_country_flag = GER_demanded_montenegrin_subjugation_flag 
			}
		}
	
	}

	# Occupy Croatia
	GER_occupy_croatia_decision = {
	
		priority = 52
	
		icon = GFX_decision_generic_operation
	
		ai_will_do = {
			base = 100
		}
	
		allowed = {  
			original_tag = GER
		}
	
		visible = { 
			any_country_with_original_tag = {
				original_tag_to_check = ITA
				is_subject_of = ROOT
			}
			CRO = {
				is_in_faction_with = ROOT
				is_subject = no
			}
			NOT = { has_country_flag = GER_demanded_croatian_subjugation_flag }
		} 
	
		available = {
			has_government = fascism
			CRO = {
				is_in_faction_with = ROOT
				is_subject = no
				all_owned_state = {
					is_controlled_by = CRO
				}
			}
		}
	
		cost = 50

		complete_effect = {

			CRO = {
				country_event = {
					id = GOT_GER_fading_eagle.01
					hours = 6
				}		
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				puppet = CRO
			}

			hidden_effect = {
				set_country_flag = GER_demanded_croatian_subjugation_flag 
			}
		}
	
	}

	# Occupy Serbia
	GER_occupy_serbia_decision = {
	
		priority = 49
	
		icon = GFX_decision_generic_operation
	
		ai_will_do = {
			base = 100
		}
	
		allowed = {  
			original_tag = GER
		}
	
		visible = { 
			any_country_with_original_tag = {
				original_tag_to_check = ITA
				is_subject_of = ROOT
			}
			SER = {
				is_in_faction_with = ROOT
				is_subject = no
			}
			NOT = { has_country_flag = GER_demanded_serbian_subjugation_flag }
		} 
	
		available = {
			has_government = fascism
			SER = {
				is_in_faction_with = ROOT
				is_subject = no
				all_owned_state = {
					is_controlled_by = SER
				}
			}
		}
	
		cost = 50

		complete_effect = {

			SER = {
				country_event = {
					id = GOT_GER_fading_eagle.01
					hours = 6
				}		
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				puppet = SER
			}

			hidden_effect = {
				set_country_flag = GER_demanded_serbian_subjugation_flag 
			}
		}
	
	}

	# Occupy Bosnia
	GER_occupy_bosnia_decision = {
	
		priority = 48
	
		icon = GFX_decision_generic_operation
	
		ai_will_do = {
			base = 100
		}
	
		allowed = {  
			original_tag = GER
		}
	
		visible = { 
			any_country_with_original_tag = {
				original_tag_to_check = ITA
				is_subject_of = ROOT
			}
			BOS = {
				is_in_faction_with = ROOT
				is_subject = no
			}
			NOT = { has_country_flag = GER_demanded_bosnian_subjugation_flag }
		} 
	
		available = {
			has_government = fascism
			BOS = {
				is_in_faction_with = ROOT
				is_subject = no
				all_owned_state = {
					is_controlled_by = BOS
				}
			}
		}
	
		cost = 50

		complete_effect = {

			BOS = {
				country_event = {
					id = GOT_GER_fading_eagle.01
					hours = 6
				}		
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				puppet = BOS
			}

			hidden_effect = {
				set_country_flag = GER_demanded_bosnian_subjugation_flag 
			}
		}
	
	}

	# Occupy Herzegovina
	GER_occupy_herzegovina_decision = {
	
		priority = 47
	
		icon = GFX_decision_generic_operation
	
		ai_will_do = {
			base = 100
		}
	
		allowed = {  
			original_tag = GER
		}
	
		visible = { 
			any_country_with_original_tag = {
				original_tag_to_check = ITA
				is_subject_of = ROOT
			}
			HRZ = {
				is_in_faction_with = ROOT
				is_subject = no
			}
			NOT = { has_country_flag = GER_demanded_herzegovin_subjugation_flag }
		} 
	
		available = {
			has_government = fascism
			HRZ = {
				is_in_faction_with = ROOT
				is_subject = no
				all_owned_state = {
					is_controlled_by = HRZ
				}
			}
		}
	
		cost = 50

		complete_effect = {

			HRZ = {
				country_event = {
					id = GOT_GER_fading_eagle.01
					hours = 6
				}		
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				puppet = HRZ
			}

			hidden_effect = {
				set_country_flag = GER_demanded_herzegovin_subjugation_flag 
			}
		}
	
	}

	# Occupy Macedonian
	GER_occupy_macedonian_decision = {
	
		priority = 46
	
		icon = GFX_decision_generic_operation
	
		ai_will_do = {
			base = 100
		}
	
		allowed = {  
			original_tag = GER
		}
	
		visible = { 
			any_country_with_original_tag = {
				original_tag_to_check = ITA
				is_subject_of = ROOT
			}
			MAC = {
				is_in_faction_with = ROOT
				is_subject = no
			}
			NOT = { has_country_flag = GER_demanded_macedonian_subjugation_flag }
		} 
	
		available = {
			has_government = fascism
			MAC = {
				is_in_faction_with = ROOT
				is_subject = no
				all_owned_state = {
					is_controlled_by = MAC
				}
			}
		}
	
		cost = 50

		complete_effect = {

			MAC = {
				country_event = {
					id = GOT_GER_fading_eagle.01
					hours = 6
				}		
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				puppet = MAC
			}

			hidden_effect = {
				set_country_flag = GER_demanded_macedonian_subjugation_flag 
			}
		}
	
	}

	# Occupy Slovenia
	GER_occupy_slovenia_decision = {
	
		priority = 44
	
		icon = GFX_decision_generic_operation
	
		ai_will_do = {
			base = 100
		}
	
		allowed = {  
			original_tag = GER
		}
	
		visible = { 
			any_country_with_original_tag = {
				original_tag_to_check = ITA
				is_subject_of = ROOT
			}
			SLV = {
				is_in_faction_with = ROOT
				is_subject = no
			}
			NOT = { has_country_flag = GER_demanded_slovene_subjugation_flag }
		} 
	
		available = {
			has_government = fascism
			SLV = {
				is_in_faction_with = ROOT
				is_subject = no
				all_owned_state = {
					is_controlled_by = SLV
				}
			}
		}
	
		cost = 50

		complete_effect = {

			SLV = {
				country_event = {
					id = GOT_GER_fading_eagle.01
					hours = 6
				}		
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				puppet = SLV
			}

			hidden_effect = {
				set_country_flag = GER_demanded_slovene_subjugation_flag 
			}
		}
	
	}

	# Occupy Kosovo
	GER_occupy_kosovo_decision = {
	
		priority = 42
	
		icon = GFX_decision_generic_operation
	
		ai_will_do = {
			base = 100
		}
	
		allowed = {  
			original_tag = GER
		}
	
		visible = { 
			any_country_with_original_tag = {
				original_tag_to_check = ITA
				is_subject_of = ROOT
			}
			KOS = {
				is_in_faction_with = ROOT
				is_subject = no
			}
			NOT = { has_country_flag = GER_demanded_kosovar_subjugation_flag }
		} 
	
		available = {
			has_government = fascism
			KOS = {
				is_in_faction_with = ROOT
				is_subject = no
				all_owned_state = {
					is_controlled_by = KOS
				}
			}
		}
	
		cost = 50

		complete_effect = {

			KOS = {
				country_event = {
					id = GOT_GER_fading_eagle.01
					hours = 6
				}		
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				puppet = KOS
			}

			hidden_effect = {
				set_country_flag = GER_demanded_kosovar_subjugation_flag 
			}
		}
	
	}

}




