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 = {

		#Focus 									#Days 	#Historical Daye

		GER_the_triumphant_will					#35		Do this if it's ever possible  ### ---->>>   TODO_DANE: This was 70   <<<---- ###

		#1936 									Days 	Historical Dates
		GER_the_four_year_plan					#35 	AUG 36
		GER_remilitarize_the_rhineland			#35 	MAR 36
		GER_construct_the_reichsautobahn		#35
		GER_autarky_efforts						#35
		GER_institute_price_controls			#35
		GER_fuhrerprinzip						#35
		GER_party_chancellor_bormann			#14
		GER_accelerate_the_rearmament_program	#35		AUG 36
		GER_kdf_wagen_factories					#35 	construction started in 38, but GER needs dem Civs
		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_coal_liquefaction					#35
		GER_ascension_of_todt					#14		(whenever)
		GER_establish_buna_werke				#35 	(works in 36 or 37) #MOVE DOWN TO MID-LATE 38+
		GER_fortify_the_vaterland				#35 	started in 36, works almost whenever
		GER_expanding_the_luftwaffe				#35
		GER_establish_the_reichswerke			#35 	JUL 37
		GER_aeronautical_research_institute		#35		in 36
		GER_concentrated_armament_program		#35
		GER_ascension_of_goebbels				#14
		GER_panzer_troops_school				#35 	OCT 37 (works whenever)
		GER_legion_condor						#35		JUL 36-39

		#1938
		GER_reorganize_the_wehrmacht			#35 	JAN-FEB 38
		GER_anschluss							#70 	MAR 38
		GER_advanced_panzer_research			#70 	(needs to have  Panzer III and IV before Barbarossa)
		GER_bribe_senior_officers				#35
		GER_demand_sudetenland					#70 	SEP/OCT 38
		GER_first_vienna_award					#35 	NOV 38
		#At some point this year Speer will replace Todt via Industrailist Intrigue Event

		#1939
		GER_develop_heraeus_facilities			#70		(whenever)
		GER_fate_of_czechoslovakia				#70 	MAR 39
		GER_reassert_eastern_claims				#35 	MAR 39
		GER_dive_bombers						#35 
		GER_combined_arms						#35		(before Danzig or invasion of France)
		GER_form_the_jagdwaffe					#35 	(whenever)

		#### TEST #TODO_TA Remove one set of these 3
		GER_subsidize_hoesch_benzin				#35 	(whenever)
		GER_defense_of_the_reich 				#70		39-45
		GER_molotov_ribbentrop_pact				#35 	AUG 39
		GER_danzig_or_war						#70 	MAR 39 - Germany invaded in SEP 39 (complete on AUG 31st)
		GER_operation_weserubung 				#28 	APR 40 (mid APR)				# Remove these if uncommitting the "correct" placement
		GER_around_maginot 						#28 	MAY 40 (mid MAY					# Remove these if uncommitting the "correct" placement	 
		GER_war_with_france 					#70 	SEP 39 - is usually BYPASSED	# Remove these if uncommitting the "correct" placement

		#1940
		GER_subsidize_hoesch_benzin				#35 	(whenever)
		GER_defense_of_the_reich 				#70		39-45
		GER_strengthen_the_kriegsmarine			#35 	(whenever)
		GER_instill_auftragstaktik				#35 	(whenever)
		#GER_operation_weserubung				#28 	APR 40 (mid APR)
		#GER_around_maginot						#28 	MAY 40 (mid MAY)
		#GER_war_with_france					#70 	SEP 39 - is usually BYPASSED
		GER_panzergrenadier						#70 	(after Danzig before Barbarossa)
		#GER_second_vienna_award				#35 	AUG/SEP 40
		GER_subjugate_romanian_economy			#35 	(whenever in 40)
		GER_develop_the_knickebein				#35 	39-40
		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?

		#1941
		GER_uplift_the_rosenberg_office			#35 	
		GER_expand_kummersdorfs_capacity		#35 	
		GER_demands_to_sweden					#35		(whenever)
		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

		#1942
		GER_u_boat_efforts						#35 	in 42-43
		GER_establish_production_targets		#35
		GER_seize_foreign_industries			#35
		GER_nationalize_ford_factories			#35
		GER_zentrale_planung					#70 	in 42
		GER_armament_rationalization			#70 	in 42
		GER_rocketry_innovations				#70		in 44
		GER_re_establish_the_seekriegsleitung	#35		in 37
		GER_atlantic_naval_bases				#35
		GER_build_the_rur_dam					#70 	in 39 - can be skipped
		GER_war_with_the_ussr					#70 	JUN 41
		GER_autarky_achieved					#35		

		#1943
		GER_build_the_rur_dam					#70 	in 39 - can be skipped
		GER_army_indoctrination					#35
		GER_strafbataillon						#35
		GER_create_rustungsstab					#70 	AUG 44
		GER_totaler_krieg						#35		FEB 43 - but comes after Rüstingsstab in the focus tree
		GER_aerodynamic_research_institute		#35
		GER_ascension_of_himmler				#14 	(Replaces Bormann)


		
		############## Now do whatever really ################

	}

	research = {
		infantry_weapons = 20.0
		infantry_tech = 12.0
		artillery = 6.0
		support_tech = 6.5
	}

	ideas = {
		hjalmar_schacht = 5
	}

	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
	}
}
