est_is_evil_dip_empire = {
	OR = {
		has_valid_civic = civic_barbaric_despoilers
		has_valid_civic = civic_fanatic_purifiers
		has_valid_civic = civic_hive_devouring_swarm
		has_valid_civic = civic_machine_terminator
		has_valid_civic = civic_machine_assimilator	
	}
}

est_is_no_dip_empire = {
	OR = {
		has_valid_civic = civic_inwards_perfection
		est_is_evil_dip_empire = yes
	}
}

est_uses_robots = {
	Or = {
		has_origin = origin_mechanists
		has_country_flag = est_built_robot
	}
	Not = {
		has_policy_flag = robots_outlawed
	}
}

est_uses_slaves = {
	Or = {
		has_civic =	civic_slaver_guilds
		has_country_flag = est_built_robot
	}
	Not = {
		has_policy_flag = slavery_not_allowed
	}
}

est_uses_megastructures = {
	Or ={
		has_technology = tech_science_nexus
		has_technology = tech_sentry_array
		has_technology = tech_strategic_coordination
		has_technology = tech_interstellar_assembly
		has_technology = tech_mega_art
		has_technology = tech_dyson_sphere
		has_technology = tech_matter_decompressor
		has_technology = tech_ring_world
		has_technology = tech_mega_shipyard
		has_ascension_perk = ap_galactic_wonders_utopia
		has_ascension_perk = ap_galactic_wonders_megacorp
		has_ascension_perk = ap_galactic_wonders_utopia_and_megacorp
	}
}

est_no_rivals = {
	Or = {
		has_valid_civic = civic_fanatic_purifiers
		has_valid_civic = civic_inwards_perfection
		has_valid_civic = civic_hive_devouring_swarm
		has_valid_civic = civic_machine_terminator
		has_valid_civic = civic_machine_assimilator		
	}
}

est_no_fed_federation_builders = {
	has_ai_personality = federation_builders
	Not = {
		has_tradition = tr_diplomacy_finish
	}
}

est_is_core_world = {
	sector = {
		has_sector_type = core_sector
	}	
}