GGR_enable_disable_decisions = {
	mad_off = {
		ai_will_do = {
			factor = 0
		}
		cost = 0
		visible = {
			has_global_flag = german_civil_war_goeringvic
			NOT = {
				has_global_flag = nukes_disabled
			}
		}
		
		complete_effect = {
			set_global_flag = nukes_disabled
	    }
	}
	mad_on = {
		ai_will_do = {
			factor = 0
		}
		cost = 0
		visible = {
			has_global_flag = nukes_disabled
			has_global_flag = german_civil_war_goeringvic
		}
		
		complete_effect = {
			clr_global_flag = nukes_disabled
		}
	}

	fix_your_save = {
		cost = 0

		complete_effect = {
			every_possible_country = {
				if = {
					limit = {
						has_country_flag = Econ_Type_Capitalism
					}
					set_variable = { TNO_economy_type = token:Econ_Type_Capitalism }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_American_Capitalism
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_American_Capitalism }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Corporate_Oligopoly
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Corporate_Oligopoly }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Social_Market
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Social_Market }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Yagoda
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Yagoda }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Subsistence_Economy
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_American_Capitalism }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Colonial_Economy_Free_Market
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Corporate_Oligopoly }
				}

				if = {
					limit = {
						has_country_flag = Econ_Type_Corporatism
					}
					set_variable = { TNO_economy_type = token:Econ_Type_Corporatism }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Socialized_Economy
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Socialized_Economy }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Colonial_Economy_Corporatism
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Colonial_Economy_Corporatism }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Crown_Credit_Corporatism
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Crown_Credit_Corporatism }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Stabilizing_Development
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Stabilizing_Development }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_National_Syndicalism
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_National_Syndicalism }
				}


				if = {
					limit = {
						has_country_flag = Econ_Type_Planned
					}
					set_variable = { TNO_economy_type = token:Econ_Type_Planned }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Dirigisme
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Dirigisme }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Worker_Directed
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Worker_Directed }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Anarchic
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Anarchic }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Military_Directed
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Military_Directed }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Gelenkte_Wirtschaft
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Gelenkte_Wirtschaft }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Burgsys
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Burgsys }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Banditry
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Banditry }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Anarcho_Communism
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Anarcho_Communism }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_War_Communism
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_War_Communism }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Christian_Anarchism
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Christian_Anarchism }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Colonial_Economy_Planned
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Colonial_Economy_Planned }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_None
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_None }
				}
				if = {
					limit = {
						has_country_flag = Econ_Subtype_Extractivist
					}
					set_variable = { TNO_economy_subtype = token:Econ_Subtype_Extractivist }
				}
			}
			Global_Conflicts_Initalize = yes
			if = {
				limit = {
					country_exists = RUS
				}
				RUS = {
					resize_array = { TNO_BoP_Tabs = 1 }
					set_temp_variable = { TabName = token:BoP_Tab_GlobalConflicts }
					TNO_BoP_AddTab = yes
				}
			}
			every_country = {
				limit = {
					OR = {
						tag = MEX
						tag = ARG
						tag = BRA
						tag = IBR
					}
				}
				resize_array = { TNO_BoP_Tabs = 1 }
				clear_variable = TNO_BoP_Tabs^0
				set_temp_variable = { TabName = token:BoP_Tab_GlobalConflicts }
				TNO_BoP_AddTab = yes
			}
			JAP = {
				resize_array = { TNO_BoP_Tabs = 2 }
				clear_variable = TNO_BoP_Tabs^0
				clear_variable = TNO_BoP_Tabs^1
				set_temp_variable = { TabName = token:BoP_Tab_GlobalConflicts }
				TNO_BoP_AddTab = yes
			}
			USA = {
				resize_array = { TNO_BoP_Tabs = 2 }
				clear_variable = TNO_BoP_Tabs^0
				clear_variable = TNO_BoP_Tabs^1
				set_temp_variable = { TabName = token:BoP_Tab_GlobalConflicts }
				TNO_BoP_AddTab = yes
			}
			GER = {
				resize_array = { TNO_BoP_Tabs = 2 }
				clear_variable = TNO_BoP_Tabs^0
				clear_variable = TNO_BoP_Tabs^1
				set_temp_variable = { TabName = token:BoP_Tab_GlobalConflicts }
				TNO_BoP_AddTab = yes
			}
		}
	}
}

GGR_hard_mode = {
	GGR_enable_hard_mode = { # buff other countries
		cost = 0
		icon = GFX_decision_generic_red_skull
		visible = {
			original_tag = GER
			NOT = {
				has_completed_focus = GER_GOR_war_plan_A
				has_country_flag = hide_hard_mode
			}
		}

		available = {
			NOT = {
				has_completed_focus = GER_GOR_war_plan_A
			}
		}

		fire_only_once = yes

		complete_effect = {
			custom_effect_tooltip = GGR_hard_mode_tooltip
			set_country_flag = GGR_hard_mode
			every_country = {
				limit = {
					has_variable = num_division_limit
				}
				multiply_variable = { num_division_limit = 2 }
			}
		}
	}

	ZZZ_enable_hard_mode = { # buff post-GCW Goering's Germany
		icon = GFX_decision_generic_red_skull
		visible = {
			NOT = {
				original_tag = GER
				has_country_flag = hide_hard_mode
			}
		}

		complete_effect = {
			hidden_effect = {
				set_global_flag = ZZZ_hard_mode
				set_global_flag = piss_off
				set_global_flag = i_dont_want_to_die
				GER = {
					add_ideas = GGR_GER_hard_mode
					GGR_spawn_divisions_hard_mode = yes
				}
			}
		}
	}

	ZZZ_hide_hard_mode = {
		icon = GFX_decision_generic_visibility_closed

		complete_effect = {
			set_country_flag = hide_hard_mode
		}
	}
}
GGR_debug_decisions = {
	GER_goering_debug_setup = {
		visible = { NOT = { has_global_flag = german_civil_war_goeringvic } }

		fire_only_once = yes

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_goering_debug_setup"
			set_global_flag = german_civil_war_goeringvic
			country_event = {
				id = goering.1000
			}
			country_event = {
				id = reich.31
			}
		}
	}

	GER_goering_reunify_arabia = { # you can always say thanks to https://www.youtube.com/watch?v=5GkmAwvIHtk&t=514s
		visible = { has_global_flag = german_civil_war_goeringvic }

		fire_only_once = yes

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_goering_final_tree"
			RKA = {
				every_country = {
					limit = {
						OR = {
							is_arab_nation = yes
							tag = IME
						}
					}
					RKA = {
						annex_country = {
							target = PREV
							transfer_troops = no
						}
					}
				}
				every_state = {
					limit = {
						OR = {
							is_core_of = SYR
							state = 1449
							state = 1991
							state = 350
							state = 352
							state = 353
							state = 1448
							state = 1990
							state = 1992
							state = 1989
							state = 354
							is_persian_region = yes
							AND = {
								is_core_of = EGY
								NOT = {
									is_core_of = SDS
									is_core_of = SDF
									is_core_of = RPS
								}
							}
						}
					}
					transfer_state_to = PREV
				}
				GGR_set_up_RK_ROOT = yes
				create_country_leader = {
					name = "RKA_Saule_Gutteman_von_Heiteroff"
					picture = "gfx/leaders/GE/saulie_goodieman.tga"
					expire = "1999.4.20"
					ideology = national_socialism_subtype
					traits = { }
				}
				every_country = {
					limit = {
						is_ai = no
					}
					set_temp_variable = { TNO_temp_super_event = token:SE_ARAB_UNIFICATION_MEME }
					TNO_fire_super_event = yes
				}
				set_global_flag = saulie_goodieman
			}
		}
	}
	GER_goering_debug_science_tree = {
		visible = { has_global_flag = german_civil_war_goeringvic }

		fire_only_once = yes

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_goering_debug_science_tree"
			set_country_flag = GER_science_tree
			mark_focus_tree_layout_dirty = yes
		}
	}

	GER_goering_debug_econ_tree = {
		visible = { has_global_flag = german_civil_war_goeringvic }

		fire_only_once = yes

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_goering_debug_econ_tree"
			set_country_flag = GGR_economy_tree
			mark_focus_tree_layout_dirty = yes
		}
	}

	GER_goering_debug_military_tree = {
		visible = { has_global_flag = german_civil_war_goeringvic }

		fire_only_once = yes

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_goering_debug_military_tree"
			set_country_flag = GGR_military_tree
			mark_focus_tree_layout_dirty = yes
		}
	}

	GER_goering_debug_SAW = {
		visible = { has_global_flag = german_civil_war_goeringvic }

		fire_only_once = yes

		cost = 0

		complete_effect = {
			set_global_flag = south_african_war
			mark_focus_tree_layout_dirty = yes
		}
	}

	GER_goering_debug_post_SAW_stalemate = {
		visible = { has_global_flag = german_civil_war_goeringvic }

		fire_only_once = yes

		cost = 0

		complete_effect = {
			set_country_flag = GGR_stalemate_SAW
			set_global_flag = SAF_WAR_OVER
		}
	}

	GER_goering_debug_post_SAW_total_victory = {
		visible = { has_global_flag = german_civil_war_goeringvic }

		fire_only_once = yes

		cost = 0

		complete_effect = {
			set_country_flag = GGR_stalemate_SAW
			set_global_flag = SAF_WAR_OVER
		}
	}
	
	GER_goering_debug_post_SAW_total_loss = {
		visible = { has_global_flag = german_civil_war_goeringvic }

		fire_only_once = yes

		cost = 0

		complete_effect = {
			set_country_flag = GGR_total_loss_SAW
			set_global_flag = SAF_WAR_OVER
		}
	}

	GER_goering_debug_load_WP0_tree = {
		visible = { has_global_flag = german_civil_war_goeringvic }

		fire_only_once = yes

		cost = 0

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_goering_debug_load_WP0_tree"
			GER = {
				clr_country_flag = GER_war_plan_A
				clr_country_flag = GER_war_plan_B
				clr_country_flag = GER_war_plan_C
				set_country_flag = GER_war_plan_zero
				GGR_Reload_main = yes
			}
		}
	}

	GER_goering_debug_load_WPA_tree = {
		visible = { has_global_flag = german_civil_war_goeringvic }

		fire_only_once = yes

		cost = 0

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_goering_debug_load_WPA_tree"
			GER = {
				clr_country_flag = GER_war_plan_zero
				clr_country_flag = GER_war_plan_B
				clr_country_flag = GER_war_plan_C
				set_country_flag = GER_war_plan_A
				GGR_Reload_main = yes
			}
		}
	}
	GER_goering_debug_load_WPB_tree = {
		visible = { has_global_flag = german_civil_war_goeringvic }

		fire_only_once = yes

		cost = 0

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_goering_debug_load_WPB_tree"
			GER = {
				clr_country_flag = GER_war_plan_zero
				clr_country_flag = GER_war_plan_A
				clr_country_flag = GER_war_plan_C
				set_country_flag = GER_war_plan_B
				GGR_Reload_main = yes
			}
		}
	}

	GER_goering_debug_load_WPC_tree = {
		visible = { has_global_flag = german_civil_war_goeringvic }

		fire_only_once = yes

		cost = 0

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_goering_debug_load_WPC_tree"
			GER = {
				clr_country_flag = GER_war_plan_zero
				clr_country_flag = GER_war_plan_B
				clr_country_flag = GER_war_plan_A
				set_country_flag = GER_war_plan_C
				GGR_Reload_main = yes
			}
		}
	}
}