has_non_psionic_shields = {
	OR = {
		has_component = SMALL_SHIELD_1
		has_component = MEDIUM_SHIELD_1
		has_component = LARGE_SHIELD_1
		has_component = SMALL_SHIELD_2
		has_component = MEDIUM_SHIELD_2
		has_component = LARGE_SHIELD_2
		has_component = MEDIUM_SHIELD_3
		has_component = LARGE_SHIELD_3
		has_component = SMALL_SHIELD_3
		has_component = MEDIUM_SHIELD_4
		has_component = LARGE_SHIELD_4
		has_component = SMALL_SHIELD_4
		has_component = MEDIUM_SHIELD_5
		has_component = LARGE_SHIELD_5
		has_component = SMALL_SHIELD_5
		has_component = SMALL_DARK_MATTER_DEFLECTOR
		has_component = MEDIUM_DARK_MATTER_DEFLECTOR
		has_component = LARGE_DARK_MATTER_DEFLECTOR
		has_component = SMALL_ARCHAEO_SHIELD
		has_component = MEDIUM_ARCHAEO_SHIELD
		has_component = LARGE_ARCHAEO_SHIELD
		has_component = SMALL_ARCHAEO_ARMOR
		has_component = MEDIUM_ARCHAEO_ARMOR
		has_component = LARGE_ARCHAEO_ARMOR
		# ACOT
		inline_script = {
			script = merger_of_rules/toggled_code
			code = "
				acot_has_non_psionic_shields = yes
			"
			toggle = @has_ancient_caches
		}
		# ESC
		inline_script = {
			script = merger_of_rules/toggled_code
			code = "
				esc_TRIGGER_is_non_psionic_shield = yes
			"
			toggle = @has_esc_next
		}
		# Gigas
		inline_script = {
			script = merger_of_rules/toggled_code
			code = "
				giga_has_non_psionic_shields = yes
			"
			toggle = @has_gigastructures
		}
	}
}

has_blocked_random_devastating_pre_ftl_events = {
	OR = {
		has_origin = origin_fear_of_the_dark
		has_country_flag = fotd_hunter
		has_country_flag = solarpunk_country
		# Ancient Empire
		inline_script = {
			script = merger_of_rules/toggled_code
			code = "
				has_country_flag = ag_no_random_devastating_pre_ftl_events
			"
			toggle = @ag_null_edict_length
		}
		# Gigastructural Engineering & More
		inline_script = {
			script = merger_of_rules/toggled_code
			code = "
				giga_is_special_primitive = yes
			"
			toggle = @has_gigastructures
		}
	}
}
