ITA_befriend_major_for_focus = {
	reversed = yes
	allowed = {
		original_tag = ITA
	}

	enable = {
		OR = {
			original_tag = ENG
			original_tag = USA
			original_tag = FRA
			original_tag = SOV
		}
		OR = {
			AND = {
				has_government = democratic
				ITA = { has_government = democratic }
			}
			AND = {
				has_government = communism
				ITA = { has_government = communism }
			}
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "ITA"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "ITA"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "ITA"
		target = non_aggression_pact
		value = 2500
	}
}
ITA_befriend_major_for_focus_2 = {
	enable = {
		OR = {
			original_tag = ENG
			original_tag = USA
			original_tag = FRA
			original_tag = SOV
		}
		OR = {
			AND = {
				has_government = democratic
				ITA = { has_government = democratic }
			}
			AND = {
				has_government = communism
				ITA = { has_government = communism }
			}
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "ITA"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "ITA"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "ITA"
		target = non_aggression_pact
		value = 2500
	}
}
GRE_befriend_major_for_focus = {
	reversed = yes
	allowed = {
		original_tag = GRE
	}

	enable = {
		OR = {
			original_tag = ENG
			original_tag = GER
			original_tag = FRA
		}
		OR = {
			has_government = democratic
			has_government = neutrality
		}
		is_historical_focus_on = yes
		GRE = {
			AND = {
				is_ai = yes
				focus_progress = {
					focus = GRE_open_foreign_subsidized_factories
					progress > 0.1
				}
				NOT = { has_completed_focus = GRE_open_foreign_subsidized_factories}
			}
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "GRE"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "GRE"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "GRE"
		target = non_aggression_pact
		value = 2500
	}
	ai_strategy = {
		type = befriend
		id = "GRE"
		value = 1000
	}
}
GRE_befriend_major_for_focus2 = {
	allowed = {
		OR = {
			original_tag = ENG
			original_tag = GER
			original_tag = FRA
		}
	}

	enable = {
		is_historical_focus_on = yes
		OR = {
			has_government = democratic
			has_government = neutrality
		}
		GRE = {
			is_ai = yes
			AND = {
				focus_progress = {
					focus = GRE_open_foreign_subsidized_factories
					progress > 0.1
				}
				NOT = { has_completed_focus = GRE_open_foreign_subsidized_factories }
			}
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "GRE"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "GRE"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "GRE"
		target = non_aggression_pact
		value = 2500
	}
}
GRE_befriend_balkan_for_focus = {
	reversed = yes
	allowed = {
		original_tag = GRE
	}

	enable = {
		OR = {
			original_tag = TUR
			original_tag = AUS
			original_tag = HUN
			original_tag = CZE
			original_tag = ITA
			original_tag = YUG
			original_tag = ROM
			original_tag = BUL
			original_tag = ALB
		}
		is_historical_focus_on = yes
		GRE = {
			AND = {
				is_ai = yes
				focus_progress = {
					focus = GRE_bedrock_of_balkan_financial_stability
					progress > 0.1
				}
				NOT = { has_completed_focus = GRE_bedrock_of_balkan_financial_stability }
			}
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "GRE"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "GRE"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = befriend
		id = "GRE"
		value = 1000
	}
	ai_strategy = {
		type = befriend
		id = "GRE"
		value = 1000
	}
}
GRE_befriend_balkan_for_focus2 = {
	allowed = {
		OR = {
			original_tag = TUR
			original_tag = AUS
			original_tag = HUN
			original_tag = CZE
			original_tag = ITA
			original_tag = YUG
			original_tag = ROM
			original_tag = BUL
			original_tag = ALB
		}
	}

	enable = {
		is_historical_focus_on = yes
		GRE = {
			is_ai = yes
			AND = {
				focus_progress = {
					focus = GRE_bedrock_of_balkan_financial_stability
					progress > 0.1
				}
				NOT = { has_completed_focus = GRE_bedrock_of_balkan_financial_stability }
			}
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "GRE"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "GRE"
		target = military_access
		value = 1000
	}
}
SOV_befriend_south_america = {
	reversed = yes
	allowed = {
		original_tag = SOV
	}

	enable = {
		OR = {
			capital_scope = { is_on_continent = north_america }
			capital_scope = { is_on_continent = south_america }
		}
		has_government = communism
		SOV = { has_government = communism }
		NOT = { has_war_with = SOV }
		is_in_faction = no
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "SOV"
		target = military_access
		value = 2500
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "SOV"
		target = military_access
		value = 2500
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "SOV"
		target = non_aggression_pact
		value = 2500
	}
}
SOV_befriend_south_america2 = {
	enable = {
		OR = {
			capital_scope = { is_on_continent = north_america }
			capital_scope = { is_on_continent = south_america }
		}
		has_government = communism
		SOV = { has_government = communism }
		NOT = { has_war_with = SOV }
		is_in_faction = no
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "SOV"
		target = military_access
		value = 2500
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "SOV"
		target = military_access
		value = 2500
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "SOV"
		target = non_aggression_pact
		value = 2500
	}
}		
COG_befriend_major_for_focus = {
	reversed = yes
	allowed = {
		original_tag = COG
	}

	enable = {
		OR = {
			original_tag = ENG
			original_tag = USA
			original_tag = FRA
		}
		is_historical_focus_on = yes
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "COG"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "COG"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "COG"
		target = non_aggression_pact
		value = 2500
	}
}
COG_befriend_major_for_focus_2 = {
	enable = {
		OR = {
			original_tag = ENG
			original_tag = USA
			original_tag = FRA
		}
		is_historical_focus_on = yes
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "COG"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "COG"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "COG"
		target = non_aggression_pact
		value = 2500
	}
}		
HUN_befriend_GER_for_focus = {
	reversed = yes
	allowed = {
		original_tag = HUN
	}

	enable = {
		OR = {
			original_tag = GER
		}
		is_historical_focus_on = yes
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "HUN"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "HUN"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "HUN"
		target = non_aggression_pact
		value = 2500
	}
}
HUN_befriend_GER_for_focus_2 = {
	enable = {
		OR = {
			original_tag = GER
		}
		is_historical_focus_on = yes
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "HUN"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "HUN"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "HUN"
		target = non_aggression_pact
		value = 2500
	}
}
middle_east_befriend_SOV_historical = {
	reversed = yes
	allowed = {
		original_tag = SOV
	}

	enable = {
		is_historical_focus_on = yes
		OR = {
			original_tag = TUR
			original_tag = IRQ
			original_tag = PER
			original_tag = AFG
		}
		is_ai = yes
		SOV = { is_ai = yes }
		SOV = { has_government = communism }
		is_in_faction = no
		date < 1943.1.1
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "SOV"
		target = military_access
		value = 2500
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "SOV"
		target = military_access
		value = 2500
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "SOV"
		target = non_aggression_pact
		value = 2500
	}
}
middle_east_befriend_SOV_historical2 = {
	enable = {
		is_historical_focus_on = yes
		OR = {
			original_tag = TUR
			original_tag = IRQ
			original_tag = PER
			original_tag = AFG
		}
		is_ai = yes
		SOV = { is_ai = yes }
		SOV = { has_government = communism }
		is_in_faction = no
		date < 1943.1.1
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "SOV"
		target = military_access
		value = 2500
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "SOV"
		target = military_access
		value = 2500
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "SOV"
		target = non_aggression_pact
		value = 2500
	}
}		
POR_befriend_major_for_focus = {
	reversed = yes
	allowed = {
		original_tag = POR
	}

	enable = {
		OR = {
			original_tag = ENG
			original_tag = USA
			original_tag = FRA
		}
		is_historical_focus_on = yes
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "POR"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "POR"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "POR"
		target = non_aggression_pact
		value = 2500
	}
}
POR_befriend_major_for_focus_2 = {
	enable = {
		OR = {
			original_tag = ENG
			original_tag = USA
			original_tag = FRA
		}
		is_historical_focus_on = yes
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "POR"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "POR"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "POR"
		target = non_aggression_pact
		value = 2500
	}
}		
SAU_befriend_major_for_focus = {
	reversed = yes
	allowed = {
		original_tag = SAU
	}

	enable = {
		OR = {
			original_tag = ENG
			original_tag = USA
			original_tag = FRA
		}
		is_historical_focus_on = yes
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "SAU"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "SAU"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "SAU"
		target = non_aggression_pact
		value = 2500
	}
}
SAU_befriend_major_for_focus_2 = {
	enable = {
		OR = {
			original_tag = ENG
			original_tag = USA
			original_tag = FRA
		}
		is_historical_focus_on = yes
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "SAU"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "SAU"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "SAU"
		target = non_aggression_pact
		value = 2500
	}
}		
YEM_befriend_major_for_focus = {
	reversed = yes
	allowed = {
		original_tag = YEM
	}

	enable = {
		OR = {
			original_tag = ENG
			original_tag = USA
			original_tag = FRA
		}
		is_historical_focus_on = yes
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "YEM"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "YEM"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "YEM"
		target = non_aggression_pact
		value = 2500
	}
}
YEM_befriend_major_for_focus_2 = {
	enable = {
		OR = {
			original_tag = ENG
			original_tag = USA
			original_tag = FRA
		}
		is_historical_focus_on = yes
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = diplo_action_acceptance
		id = "YEM"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "YEM"
		target = military_access
		value = 1000
	}
	ai_strategy = {
		type = diplo_action_desire
		id = "YEM"
		target = non_aggression_pact
		value = 2500
	}
}
ENG_befriend_VIC_to_steal_navy = {
	reversed = yes
	allowed = {
		original_tag = ENG
	}

	enable = {
		original_tag = FRA
		has_government = fascism
		is_historical_focus_on = yes
		ENG = { has_country_flag = ENG_befriend_VIC_flag }
		NOT = { has_war_with = ENG }
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = befriend
		id = "ENG"
		value = 1000
	}
}