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

	allowed = {
		original_tag = GER
	}
	enable = {
		has_global_flag = vanilla_history
		NOT = { has_country_flag = mech_god }
		is_historical_focus_on = yes
		or = {
			AND = {
				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 = {
			has_global_flag = SOV_has_early_war
			FRA = { has_completed_focus = FRA_confirm_eastern_commitments }
			AND = {
				ITA = { is_in_faction_with = FRA }
				ITA = { is_in_faction_with = ENG }
			}
			NOT = { has_global_flag = vanilla_history }
			has_country_flag = mech_god
		}
	}

	ai_national_focuses = {
		# grab as fast as you can if available

		GER_rhineland
		GER_swedish_trade_agreement
		GER_four_year_plan
		GER_autarky
		GER_hermann_goring_werke
		GER_kdf_wagen
		GER_extra_tech_slot

		GER_autobahn

		GER_anschluss
		GER_grosraumwirtschaft
		GER_integrate_war_economies
		GER_army_innovation
		GER_soviet_treaty
		GER_demand_sudetenland
		GER_army_innovation_2
		GER_first_vienna_award

		#1939
		GER_end_of_czechoslovakia
		GER_demand_memel
		GER_mol_rib_pact
		GER_german_war_economy
		GER_danzig_or_war
		#1940
		GER_war_with_france
		GER_coal_liquidization
		GER_weserubung
		GER_synthetic_rubber
		GER_around_maginot
		GER_second_vienna_award	
		#1941
		GER_anti_comitern_pact
		GER_italy_ally
		GER_naval_air_effort
		GER_air_innovation
		#1942
		GER_ussr_war_goal
		GER_japan_friend
		GER_tactical_air_effort
		GER_air_innovation_2
		GER_naval_rearmament
		GER_naval_effort
		GER_west_wall
		GER_atlantikwall
		GER_wunderwaffe
	}

	research = {
		naval_equipment = -50.0 #we don't need ships
	}

	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_rhineland = 1.0
	}

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

	allowed = {
		original_tag = GER
	}
	enable = {
		is_historical_focus_on = yes
		NOT = { has_global_flag = vanilla_history }
		NOT = { has_country_flag = mech_god }
		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 = {
			has_global_flag = SOV_has_early_war
			FRA = { has_completed_focus = FRA_confirm_eastern_commitments }
			AND = {
				ITA = { is_in_faction_with = FRA }
				ITA = { is_in_faction_with = ENG }
			}
			has_global_flag = vanilla_history
			has_country_flag = mech_god
		}
	}

	ai_national_focuses = {
		# grab as fast as you can if available

		GER_rhineland
		GER_swedish_trade_agreement
		GER_four_year_plan
		GER_autarky
		GER_hermann_goring_werke

		GER_kdf_wagen
		GER_extra_tech_slot
		GER_autobahn
		GER_anschluss
		GER_grosraumwirtschaft

		GER_integrate_war_economies
		GER_army_innovation
		GER_soviet_treaty
		GER_demand_sudetenland
		GER_army_innovation_2

		GER_first_vienna_award
		#1939
		GER_end_of_czechoslovakia
		GER_demand_memel
		GER_mol_rib_pact
		GER_german_war_economy
		GER_danzig_or_war
		#1940
		GER_war_with_france
		GER_coal_liquidization
		GER_around_maginot
		GER_synthetic_rubber
		GER_weserubung
		GER_second_vienna_award
		#1941
		GER_anti_comitern_pact
		GER_italy_ally
		GER_japan_friend
		GER_air_innovation
		#1942
		GER_ussr_war_goal
		GER_naval_air_effort
		GER_tactical_air_effort
		GER_air_innovation_2
		GER_naval_rearmament
		GER_naval_effort
		GER_west_wall
		GER_atlantikwall
		GER_wunderwaffe
	}

	research = {
		naval_equipment = -50.0 #we don't need ships
	}

	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_rhineland = 1.0
	}

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

	allowed = {
		original_tag = GER
	}
	enable = {
		is_historical_focus_on = yes
		has_country_flag = mech_god
		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 = {
		NOT = { has_country_flag = mech_god }
		OR = {
			has_global_flag = SOV_has_early_war
			FRA = { has_completed_focus = FRA_confirm_eastern_commitments }
			AND = {
				ITA = { is_in_faction_with = FRA }
				ITA = { is_in_faction_with = ENG }
			}
		}
	}

	ai_national_focuses = {
		# grab as fast as you can if available

		GER_rhineland
		GER_army_innovation
		GER_soviet_treaty
		GER_army_innovation_2
		GER_four_year_plan

		GER_autarky
		GER_hermann_goring_werke
		GER_kdf_wagen
		GER_extra_tech_slot
		GER_anschluss

		GER_autobahn
		GER_german_war_economy
		GER_anti_comitern_pact	
		GER_demand_sudetenland
		GER_first_vienna_award

		GER_demand_memel
		GER_end_of_czechoslovakia
		GER_mol_rib_pact
		GER_danzig_or_war
		#1940
		GER_war_with_france

		GER_coal_liquidization
		GER_around_maginot
		GER_synthetic_rubber
		GER_weserubung
		GER_second_vienna_award
		GER_swedish_trade_agreement	
		#1941
		GER_rocketry_focus
		GER_italy_ally
		GER_japan_friend
		GER_naval_air_effort
		GER_air_innovation
		#1942
		GER_tactical_air_effort
		GER_ussr_war_goal
		GER_air_innovation_2
		GER_naval_rearmament
		GER_naval_effort
		GER_west_wall
		GER_atlantikwall
		GER_wunderwaffe
	}

	research = {
		naval_equipment = -50.0 #we don't need ships
	}

	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_rhineland = 1.0
	}

}

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
		}
	}
	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
		}
	}
	abort = {
		GER = {
			NOT = {
				has_government = fascism
			}
		}
	}

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

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

	allowed = {
		original_tag = GER
	}
	enable = {
		is_historical_focus_on = yes
		has_global_flag = SOV_has_early_war
		has_war_with = SOV
		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 = {
			is_subject = yes
		}
	}
	ai_national_focuses = {
		GER_anti_comitern_pact
		GER_anti_soviet_pact
	}

	research = {
		naval_equipment = -50.0 #we don't need ships
	}

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

	focus_factors = {
		GER_around_maginot = 0
		GER_war_with_france = 0
		GER_demand_slovenia = 0
	}

}

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

	allowed = {
		original_tag = GER
	}
	enable = {
		is_historical_focus_on = yes
		has_global_flag = SOV_has_early_war
		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 = {
			is_subject = yes
		}
	}

	ai_national_focuses = {
		GER_rhineland
		GER_anschluss
		GER_swedish_trade_agreement
		GER_four_year_plan
		GER_autarky

		GER_hermann_goring_werke
		GER_kdf_wagen		
		GER_extra_tech_slot
		GER_grosraumwirtschaft
		GER_align_romania
		GER_align_hungary

		GER_integrate_war_economies
		GER_anti_comitern_pact
		GER_anti_soviet_pact
		GER_demand_sudetenland
		GER_first_vienna_award

		GER_end_of_czechoslovakia
		GER_danzig_vs_slovakia
		GER_poland_friend
		GER_autobahn
		GER_german_war_economy
		GER_naval_rearmament

		GER_naval_effort
		GER_plan_z
		GER_denmark_friend
		GER_norway_friend
		GER_dutch_friend

		GER_sweden_friend
		GER_coal_liquidization
		GER_synthetic_rubber
		GER_ussr_war_goal
	}

	research = {
		naval_equipment = -50.0 #we don't need ships
	}

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

	focus_factors = {
		GER_rhineland = 1.0
		GER_soviet_ally = 0
		GER_around_maginot = 0.25
		GER_war_with_france = 0.25
		GER_demand_slovenia = 0.25
	}

}


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

	allowed = {
		original_tag = GER
	}
	enable = {
		is_historical_focus_on = yes
		OR = {
			FRA = { has_completed_focus = FRA_confirm_eastern_commitments }
			AND = {
				ITA = { is_in_faction_with = FRA }
				ITA = { is_in_faction_with = ENG }
			}
		}
		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 = {
			is_subject = yes
		}
	}
	ai_national_focuses = {
		GER_four_year_plan
		GER_autarky
		GER_hermann_goring_werke
		GER_kdf_wagen
		GER_extra_tech_slot

		GER_rhineland
		GER_anschluss
		GER_army_innovation
		GER_soviet_treaty
		GER_mol_rib_pact
		GER_soviet_ally
		GER_swedish_trade_agreement
		GER_autobahn
		GER_german_war_economy

		GER_naval_rearmament
		GER_naval_effort
		GER_coal_liquidization
		GER_synthetic_rubber
		GER_air_innovation
		GER_army_innovation_2

		GER_demand_memel
		GER_demand_sudetenland
		GER_demand_slovenia
		GER_danzig_or_war
		GER_weserubung
		GER_around_maginot
		GER_war_with_france
		GER_reintegrate_luxemburg_and_alsace_lorraine

	}

	research = {
		naval_equipment = -50.0 #we don't need ships
	}

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

	focus_factors = {
	}

}
