# This Trigger is specifically to prevent OUR mod's system  destruction event from triggering on a system
# this destruction even is f93_ralis_crisis_event.0103 It is occasionally edited but all calls
# for this event should include this trigger.
# Use it as follows
# Example:
# random_system = {
# 	limit = { f93_ok_to_be_destroyed = yes }
# 	system_event = { id = f93_ralis_crisis_event.0103 }
# }
# The Example above would destroy a random system except those that are protected by this trigger
# since it will only choose a random system that is ok to be destroyed.


#I can add star and planet flags to this without any issue, if you want any flag added to this
# let me know via discord or our mod page on steam. 
f93_ok_to_be_destroyed = {
	NOR = {
		any_system_planet = {
			OR = {
				is_ringworld = yes
				has_modifier = holy_planet
				has_planet_flag = earth
				has_planet_flag = earth_nuked
				# any_archaeological_site = { exists = this }
				#special system init systems we intent to protect
				has_planet_flag = star_seddom
				
				#If you only have a planet that should be protected add it here and the entire system will be safe from me.

			}
		}
		AND = {
			exists = space_owner
			any_system_megastructure = {
				exists = this
			}
		}
		AND = {
			exists = space_owner
			exists = event_target:f93_ralis_country
			space_owner = { is_same_value = event_target:f93_ralis_country }
		}
		is_star_class = sc_black_hole
		has_star_flag = star_cracked # already destroyed
		has_star_flag = f93_empty_system_on_galcrossing #have special star class "no Star"
		has_star_flag = crisis_spawn_exclude #generally marks special systems
		has_star_flag = wenkwort_system
		has_star_flag = holy_system_1
		has_star_flag = empire_home_system
		has_star_flag = hostile_system
		has_star_flag = unique_system
		has_star_flag = voidworms_system
		has_star_flag = solarpunk_system_01
		has_star_flag = solarpunk_system_02
		#Exlcluding a bunch of mods, feel free to add your own or request me to add it.
		has_star_flag = jupitwo_system
		has_star_flag = pouchkinn_system
		has_star_flag = eaw_system
		has_star_flag = giga_system_four
		has_star_flag = giga_system_three
		has_star_flag = giga_system_two
		has_star_flag = giga_system_one
		has_star_flag = ag_ancient_system
		#Shadowgate, mod by Nardelus
		has_star_flag = shadowgate_solar_system
		has_star_flag = shadowgate_shadow_remnant
		has_star_flag = shadowgate_origin_original_homeworld
		has_star_flag = shadow_anchor
	}
}
