German_historical = {
	name = "German historical plan"
	desc = "Essentially historical behaviour for Germany"

	allowed = {
		original_tag = GER
	}
	enable = {
		OR = {
			AND = {
				is_historical_focus_on = yes
				OR = {
					NOT = { has_dlc = "Waking the Tiger" }
					has_game_rule = {
						rule = GER_ai_behavior
						option = DEFAULT
					}
				}	
			}
			has_country_flag = GER_AI_RANDOM_FASCIST
			has_game_rule = {
				rule = GER_ai_behavior
				option = FASCIST
			}
		}
	}
	abort = {
		OR = {
			SWE = {
				has_government = communism #prio 1, crush Sweden
			}
			SOV = {
				NOT = {
					has_government = communism
				}
			}
			ENG = {
				NOT = {
					has_government = democratic
				}
			}
			any_country_with_original_tag = {
				original_tag_to_check = HUN
				has_completed_focus = HUN_invite_the_habsburg_prince
			}
			any_country_with_original_tag = {
				original_tag_to_check = FRA
				OR = {
					has_completed_focus = FRA_utilize_the_leagues
					has_completed_focus = FRA_invite_communist_ministers
					has_completed_focus = FRA_leftist_rhetoric
					has_completed_focus = FRA_right_wing_rhetoric
				}
			}
			any_country_with_original_tag = {
				original_tag_to_check = USA
				OR = {
					has_completed_focus = USA_war_plan_red
					has_completed_focus = USA_war_plan_white
				}
			}
			is_subject = yes
			has_government = democratic
			has_government = communism
		}
	}

	ai_national_focuses = {
		GER_demand_chancelo2
		GER_enabling_act
		GER_nsdap
		GER_Versailles
		GER_send_SS_agents_to_ethnic_Germans
		GER_assassinate_dolfuss
		GER_third_reich
		GER_weimar 
		GER_clandestine_rearmament
		GER_auto_union
		GER_University_Hamburg
		#1931
		GER_porsche
		GER_clandestine_rearmament2
		GER_S_E_W
		GER_PTE
		GER_gleichschaltung
		GER_unser_deutchbahn
		GER_saarland
		GER_naval_effort		
		GER_messerschmitt_contract		
		GER_establish_luftwaffe		
		#1932
		#GER_rhineland
		GER_four_year_plan
		GER_autarky
		GER_hermann_goring_werke
		GER_kdf_wagen_ct
		GER_establish_luftwaffe		
		#1933
		GER_ss
		GER_reichstag_fire
		GER_long_knives
		GER_invoke_48
		GER_planned_mobilizaton2
		GER_hitler_oratory
		#1934
		GER_blame_jews
		GER_er_ev_ef
		GER_court_dnvp_support
		GER_court_zentrum_support
		GER_sa
		GER_political_destabilization
		#1935
		GER_axis
		GER_mefo
		GER_german_war_economy
		GER_systematic_propaganda
		#1936
		GER_massive_misinformation
		#GER_war_support
		GER_coal_liquidization
		GER_synthetic_rubber
		GER_currency_deflation
		#1937
		GER_clandestine_rearm2
		GER_autobahn

		GER_the_triumphant_will					#35		Do this if it's ever possible

		#1936 									Days 	Historical Dates
		GER_remilitarize_the_rhineland			#35 	MAR 36
		GER_construct_the_reichsautobahn		#35
		GER_fuhrerprinzip						#35
		GER_party_chancellor_bormann			#14
		GER_develop_modern_maneuver_warfare		#35
		GER_anti_comintern_pact					#35 	NOV 36 (works in 37 too)

		#1937
		GER_adopt_new_panzer_doctrine			#35 	panzerwaffe was formed in 36
		GER_ascension_of_todt					#14		(whenever)
		GER_fortify_the_vaterland				#35 	started in 36, works almost whenever
		GER_expanding_the_luftwaffe				#35
		GER_establish_the_reichswerke			#35 	JUL 37
		GER_ascension_of_goebbels				#14
		GER_advanced_panzer_research			#70 	(needs to have  Panzer III and IV before Barbarossa)
		GER_legion_condor						#35		JUL 36-39

		#1938
		GER_reorganize_the_wehrmacht			#35 	JAN-FEB 38
		GER_anschluss							#70 	MAR 38
		GER_panzer_troops_school				#35 	(works whenever)
		GER_aeronautical_research_institute		#35		Should be earlier, but we need to balance tank production
		GER_bribe_senior_officers				#35
		GER_demand_sudetenland					#70 	SEP/OCT 38
		GER_first_vienna_award					#35 	NOV 38

		#1939
		GER_fate_of_czechoslovakia				#70 	MAR 39
		GER_reassert_eastern_claims				#35 	MAR 39
		GER_molotov_ribbentrop_pact				#35 	AUG 39
		GER_danzig_or_war						#70 	MAR 39 - Germany invaded in SEP 39 (complete on AUG 31st)
		GER_dive_bombers						#35 
		GER_combined_arms						#35		(before Danzig or invasion of France)
		GER_form_the_jagdwaffe					#35 	(whenever)

		#1940
		GER_operation_weserubung 				#28 	APR 40 			
		GER_around_maginot 						#28 	MAY 40 		 
		GER_war_with_france 					#70 	SEP 39 - is usually BYPASSED	
		GER_develop_the_knickebein				#35 	39-40
		GER_strengthen_the_kriegsmarine			#35 	(whenever)
		GER_instill_auftragstaktik				#35 	(whenever)
		GER_panzergrenadier						#70 	(after Danzig before Barbarossa)
		GER_defense_of_the_reich 				#70		39-45
		GER_form_rome_berlin_axis				#35 	MAY 39 - is usually BYPASSED
		GER_befriend_japan						#35 	(alliance in SEP 40) #TODO_Danne is it possible to remove this?
		GER_subjugate_romanian_economy			#35 	(whenever in 40)
		GER_hitler_youth

		#1941
		GER_uplift_the_rosenberg_office			#35 	
		GER_expand_kummersdorfs_capacity		#35 	
		GER_war_with_the_ussr					#70 	JUN 41
		GER_construct_the_kammhuber_line		#35		JUL 40
		GER_establish_the_afrikakorps			#35 	MAR 41 - don't do this before Barbarossa because it will be skipped if no Axis nation fully controls a state in Africa or Asia
		GER_trade_interdiction					#35		(whenever)
		GER_wolfpack_tactics					#35 	JUL 40
		GER_u_boat_efforts						#35 	in 42-43

		#1942
		GER_demands_to_sweden					#35		(whenever)
		GER_nationalize_ford_factories			#35
		GER_rocketry_innovations				#70		in 44
		GER_re_establish_the_seekriegsleitung	#35		in 37
		GER_atlantic_naval_bases				#35

		#1943
		GER_ascension_of_himmler				#14 	(Replaces Bormann)
		GER_build_the_rur_dam					#70 	in 39 - can be skipped
		GER_army_indoctrination					#35
		GER_strafbataillon						#35
		GER_aerodynamic_research_institute		#35	
		
		############## Now do whatever really ################

	}

	research = {
		infantry_weapons = 50.0
		infantry_tech = 15.0
		artillery = 8.0
		support_tech = 6.5
	}

	ideas = {
		hjalmar_schacht = 10
	}

	traits = {
		captain_of_industry = 5
	}

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}

	ai_strategy = {
		type = template_prio
		id = medium_armor
		value = 111
	}

	focus_factors = {
		GER_remilitarize_the_rhineland = 1.0

		#Focuses never to take:
		GER_prioritize_economic_growth = 0
		GER_the_prussian_legacy = 0
		GER_heed_von_neuraths_concerns = 0
		GER_alliance_with_the_ussr = 0
		GER_befriend_china = 0
		GER_oppose_hitler_ww = 0
		GER_a_strong_successor = 0
		GER_befriend_turkey = 0 # Turkey should not be incentivized to join an AI Axis on historical
	}

}

GER_minor_allies = { #used to make minor European nations like Axis more
	name = "Minor German Allies"

	allowed = {
		OR = {
			original_tag = ROM
			original_tag = HUN
			original_tag = BUL
			original_tag = YUG
			original_tag = ITA
			original_tag = CZE
			original_tag = DEN
			original_tag = NOR
			original_tag = SWE
			original_tag = FIN
			original_tag = SPR
			original_tag = POR
			original_tag = HOL
			original_tag = BEL
			original_tag = LUX
			original_tag = POL
			original_tag = LAT
			original_tag = LIT
			original_tag = EST
			original_tag = CRO
			original_tag = SLO
			original_tag = VIC
			original_tag = SER
			original_tag = SWI
			original_tag = UKR
			original_tag = BLR
			original_tag = UBD
			original_tag = ALB
			original_tag = MNT
			original_tag = GRE
			original_tag = IRE
			original_tag = BRI
			original_tag = OCC
			original_tag = WLS
			original_tag = SCO
			original_tag = ICE
			original_tag = GRN
			original_tag = SMI
			original_tag = KAR
			original_tag = GEO
			original_tag = ARM
			original_tag = CRI
			original_tag = MLD
			original_tag = VGE
		}
	}
	enable = {
		OR = {
			has_government = fascism
			fascism > 0.5
		}
		is_in_faction = no
		GER = {
			has_government = fascism
		}
		OR = {
			original_tag = ROM
			original_tag = HUN
			original_tag = BUL
			original_tag = YUG
			original_tag = ITA
			original_tag = CZE
			original_tag = DEN
			original_tag = NOR
			original_tag = SWE
			original_tag = FIN
			original_tag = SPR
			original_tag = POR
			original_tag = HOL
			original_tag = BEL
			original_tag = LUX
			original_tag = POL
			original_tag = LAT
			original_tag = LIT
			original_tag = EST
			original_tag = CRO
			original_tag = SLO
			original_tag = VIC
			original_tag = SER
			original_tag = SWI
			original_tag = UKR
			original_tag = BLR
			original_tag = UBD
			original_tag = ALB
			original_tag = MNT
			original_tag = GRE
			original_tag = IRE
			original_tag = BRI
			original_tag = OCC
			original_tag = WLS
			original_tag = SCO
			original_tag = ICE
			original_tag = GRN
			original_tag = SMI
			original_tag = KAR
			original_tag = GEO
			original_tag = ARM
			original_tag = CRI
			original_tag = MLD
			original_tag = VGE
		}
	}
	abort = {
		GER = {
			NOT = {
				has_government = fascism
			}
		}
	}

	ai_strategy = {
		type = alliance
		id = JAP
		value = -500
	}
}
