eeu_country_has_join_spirit = {
	custom_trigger_tooltip = {
		tooltip = eeu_country_has_join_spirit_tt
		OR = {
			has_idea = eeu_join_spirit_1
			has_idea = eeu_join_spirit_2
			has_idea = eeu_join_spirit_3
			has_idea = eeu_torch_spirit
		}
	}
}

eeu_country_has_join_spirit_2 = {
	custom_trigger_tooltip = {
		tooltip = eeu_country_has_join_spirit_2_tt
		OR = {
			has_idea = eeu_join_spirit_2
			has_idea = eeu_join_spirit_3
			has_idea = eeu_torch_spirit
		}
	}
}

eeu_country_has_join_spirit_3 = {
	custom_trigger_tooltip = {
		tooltip = eeu_country_has_join_spirit_3_tt
		OR = {
			has_idea = eeu_join_spirit_3
			has_idea = eeu_torch_spirit
		}
	}
}

eeu_major_ally_has_spirit = {
	custom_trigger_tooltip = {
		tooltip = eeu_major_ally_has_spirit_tt
		any_of_scopes = {
			array = faction_members
			is_in_array = { global.eeu_active_country_array = THIS }
			NOT = { tag = ROOT }
			eeu_country_has_join_spirit = yes
			is_major = yes
		}
	}
}

eeu_country_has_join_spirit_any = {
	OR = {
		has_idea = eeu_join_spirit_1
		has_idea = eeu_join_spirit_2
		has_idea = eeu_join_spirit_3
		has_idea = eeu_torch_spirit
	}
}

eeu_non_hostiles_have_spirit_1 = {
	custom_trigger_tooltip = {
		tooltip = eeu_non_hostiles_have_spirit_1_tt
		check_variable = { global.eeu_spirit_array^num > 3 }
	}
}

eeu_non_hostiles_have_spirit_2 = {
	custom_trigger_tooltip = {
		tooltip = eeu_non_hostiles_have_spirit_2_tt
		check_variable = { global.eeu_spirit_array^num > 6 }
	}
}

eeu_not_enemy_ideology = {
	custom_trigger_tooltip = {
		tooltip = eeu_not_enemy_ideology_tt
		is_enemy_ideology = no
	}
}

eeu_trigger_this_prev_acceptable_ideology = {
	OR = {
		has_government = PREV
		PREV = {
			has_government = neutrality
		}
		has_government = neutrality
	}
}

eeu_is_anarchist = {
	custom_trigger_tooltip = {
		tooltip = eeu_is_anarchist_tt
		# log = "[THIS.GetName] lead by [?THIS.country_leader.GetName]"
		var:country_leader = {
			PREV = {
				has_character = PREV
			}
			OR = { 
				has_ideology = anarchism
				has_ideology = anarchist_communism
			}
		}
	}
}

eeu_is_not_anarchist = {
	custom_trigger_tooltip = {
		tooltip = eeu_is_not_anarchist_tt
		var:country_leader = {
			NOT = {
				has_ideology = anarchism
				has_ideology = anarchist_communism
			}
		}
	}
}

eeu_high_eu_ideology = {
	custom_trigger_tooltip = {
		tooltip = eeu_high_eu_ideology_tt
		if = {
			limit = { var:global.eeu_tag = { has_government = communism } }
			communism > 0.6
		}
		else_if = {
			limit = { var:global.eeu_tag = { has_government = fascism } }
			fascism > 0.6

		}
		else_if = {
			limit = { var:global.eeu_tag = { has_government = democratic } }
			democratic > 0.6
		}
	}
}


eeu_nobody_denied_formation = {
	custom_trigger_tooltip = {
		tooltip = eeu_nobody_denied_formation_tt
		check_variable = { global.eeu_form_player_deny_counter = 0 }
	}
}

eeu_trigger_focus_major_war = {
	custom_trigger_tooltip = {
		tooltip = eeu_trigger_focus_major_war_tt
		OR = {
			NOT = { has_country_flag = eeu_flag_focus_major_war }
			has_country_flag = {
				flag = eeu_flag_focus_major_war
				days > 175
			}
		}
	}
}