AUS_dont_ally_germany = {
	allowed = { 
		original_tag = AUS 
		has_dlc = "Gotterdammerung" 
	}
	enable = {
		AUS_is_historical_ai = yes
	}

	abort = {
		GER = {
			OR = {
				NOT = {
					has_government = fascism
				}
				is_in_faction_with = AUS #If they somehow end up in the same faction, like the Central Powers, then STAY THERE and don't cause weirdness
			}
			
		}
	}

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

AUS_dont_ally_japan = {
	allowed = { 
		original_tag = AUS 
		has_dlc = "Gotterdammerung" 
	}
	enable = {
		AUS_is_historical_ai = yes
	}

	abort = {
		JAP = {
			is_in_faction_with = AUS #If they somehow end up in the same faction then STAY THERE and don't cause weirdness
		}
	}

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

AUS_no_historical_ai_austria_in_the_allies = { #aka don't ruin the German players fun
	allowed = {
		original_tag = AUS 
		has_dlc = "Gotterdammerung" 
	}
	enable = {
		AUS_is_historical_ai = yes
		has_government = fascism
	}

	abort = {
		has_government = democratic
	}

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

AUS_dont_panic_train_divisions = {
	allowed = {
		original_tag = AUS
		has_dlc = Gotterdammerung
	}
	enable = {
		AUS_is_historical_ai = yes
		has_completed_focus = AUS_disregard_the_treaties
		NOT = {
			has_country_flag = AUS_AI_RANDOM_ANTI_ANSCLUSS_STRESS
			has_game_rule = {
				rule = AUS_AI_BEHAVIOR
				option = AUS_ANTI_ANSCLUSS_STRESS
			}
		}
	}

	abort = {
		has_country_flag = {
			flag = AUS_dont_build_too_many_divs_flag
			days > 720
		}
	}

	ai_strategy = { 
		type = build_army
		id = mountaineers
		value = 3
	}

	ai_strategy = { 
		type = build_army
		id = infantry
		value = 7
	}
}

AUS_panic_train_divisions = {
	allowed = {
		original_tag = AUS
		has_dlc = Gotterdammerung
	}
	enable = {
		OR = {
			has_country_flag = AUS_AI_RANDOM_ANTI_ANSCLUSS_STRESS
			has_game_rule = {
				rule = AUS_AI_BEHAVIOR
				option = AUS_ANTI_ANSCLUSS_STRESS
			}
		}
	}

	abort = {
		always = no
	}

	ai_strategy = { 
		type = build_army
		id = mountaineers
		value = 12
	}

	ai_strategy = { 
		type = build_army
		id = infantry
		value = 24
	}
}

AUS_panic_befriend_guarantors_ITA = {
	allowed = {
		original_tag = AUS
		has_dlc = Gotterdammerung
	}
	enable = {
		OR = {
			has_country_flag = AUS_AI_RANDOM_ANTI_ANSCLUSS_STRESS
			has_game_rule = {
				rule = AUS_AI_BEHAVIOR
				option = AUS_ANTI_ANSCLUSS_STRESS
			}
		}
	}

	abort = {
		OR = {
			has_war_with = ITA
			is_guaranteed_by = ITA
			has_completed_focus = AUS_reach_out_to_italy
		}
		
	}

	ai_strategy = { 
		type = befriend
		id = ITA
		value = 250
	}
}

AUS_panic_befriend_guarantors_ENG = {
	allowed = {
		original_tag = AUS
		has_dlc = Gotterdammerung
	}
	enable = {
		OR = {
			has_country_flag = AUS_AI_RANDOM_ANTI_ANSCLUSS_STRESS
			has_game_rule = {
				rule = AUS_AI_BEHAVIOR
				option = AUS_ANTI_ANSCLUSS_STRESS
			}
		}
	}

	abort = {
		has_war_with = ENG
		is_guaranteed_by = ENG
		has_completed_focus = AUS_approach_democratic_guarantors
	}

	ai_strategy = { 
		type = befriend
		id = ENG
		value = 150
	}
}

AUS_panic_befriend_guarantors_FRA = {
	allowed = {
		original_tag = AUS
		has_dlc = Gotterdammerung
	}
	enable = {
		OR = {
			has_country_flag = AUS_AI_RANDOM_ANTI_ANSCLUSS_STRESS
			has_game_rule = {
				rule = AUS_AI_BEHAVIOR
				option = AUS_ANTI_ANSCLUSS_STRESS
			}
		}
	}

	abort = {
		has_war_with = FRA
		is_guaranteed_by = FRA
		has_completed_focus = AUS_approach_democratic_guarantors
	}

	ai_strategy = { 
		type = befriend
		id = FRA
		value = 150
	}
}

AUS_panic_befriend_guarantors_USA = {
	allowed = {
		original_tag = AUS
		has_dlc = Gotterdammerung
	}
	enable = {
		OR = {
			has_country_flag = AUS_AI_RANDOM_ANTI_ANSCLUSS_STRESS
			has_game_rule = {
				rule = AUS_AI_BEHAVIOR
				option = AUS_ANTI_ANSCLUSS_STRESS
			}
		}
	}

	abort = {
		has_war_with = USA
		is_guaranteed_by = USA
		has_completed_focus = AUS_approach_democratic_guarantors
	}

	ai_strategy = { 
		type = befriend
		id = USA
		value = 150
	}
}
