
is_same_ideology = {
	OR = {
		AND = {
			has_government = communism
			ROOT = {
				has_government = communism
			}
		}
		AND = {
			has_government = democratic
			ROOT = {
				has_government = democratic
			}
		}
		AND = {
			has_government = neutrality
			ROOT = {
				has_government = neutrality
			}
		}
		AND = {
			has_government = fascism
			ROOT = {
				has_government = fascism
			}
		}
	}
}

is_close_ideology = {
	OR = {
		AND = {
			has_government = communism
			ROOT = {
				has_government = democratic
			}
		}
		AND = {
			has_government = democratic
			ROOT = {
				OR = {
					has_government = communism
					has_government = neutrality
				}
			}
		}
		AND = {
			has_government = neutrality
			ROOT = {
				OR = {
					has_government = democratic
					has_government = fascism
				}
			}
		}
		AND = {
			has_government = fascism
			ROOT = {
				has_government = neutrality
			}
		}
	}
}

is_same_or_close_ideology = {
	OR = {
		AND = {
			has_government = communism
			ROOT = {
				OR = {
					has_government = communism
					has_government = democratic
				}
			}
		}
		AND = {
			has_government = democratic
			ROOT = {
				OR = {
					has_government = communism
					has_government = democratic
					has_government = neutrality
				}
			}
		}
		AND = {
			has_government = neutrality
			ROOT = {
				OR = {
					has_government = democratic
					has_government = neutrality
					has_government = fascism
				}
			}
		}
		AND = {
			has_government = fascism
			ROOT = {
				OR = {
					has_government = neutrality
					has_government = fascism
				}
			}
		}
	}
}

