######################################
# ANOMALY CATEGORIES - Astral Planes #
######################################

# Base Astral Scar Anomaly
ASTRAL_SCAR_CAT = {
	desc = anomaly_astral_scar_desc
	picture = GFX_evt_astral_scar
	level = 6

	spawn_chance = {
		base = 0
	}

	max_once_global = yes
	
	on_success = astral_planes.6000
}

# The Greatest Show in the Multiverse anomaly
GREATEST_SHOW_CAT = {
	desc = anomaly_greatest_show_desc
	picture = GFX_evt_asteroid_field
	level = 2

	spawn_chance = {
		base = 0
		modifier = {
			add = 3
			is_asteroid = yes
			from = {
				owner = {
					has_technology = tech_astral_harvesting
					NOT = { is_astral_rift_explored = interdimensional_circus }
				}
			}
			solar_system = {
				NOR = {
					has_astral_rift = yes
					any_system_planet = {
						is_astral_scar = yes
					}
				}	
			}
		}
	}

	max_once = yes

	on_spawn = {
		from = {
			owner = {
				set_country_flag = greatest_show_anomaly_found
			}
		}
	}
	
	on_success = astral_planes.6010
}

# Black Hole Instability anomaly
BLACK_HOLE_INSTABLE_CAT = {
	desc = anomaly_black_hole_instable_desc
	picture = GFX_evt_black_hole
	level = 5

	spawn_chance = {
		base = 0
		modifier = {
			add = 30
			is_star = yes
			is_star_class = sc_black_hole
			from = {
				owner = {
					has_technology = tech_astral_harvesting
				}
			}
			solar_system = {
				NOR = {
					has_astral_rift = yes
					any_system_planet = {
						is_astral_scar = yes
					}
				}	
			}
		}
	}

	max_once = yes
	
	on_success = astral_planes.6020
}

# Spontaneous Explosions anomaly
SPONTANEOUS_EXPLOSIONS_CAT = {
	desc = anomaly_spontaneous_explosions_desc
	picture = GFX_evt_nuclear_explosion
	level = 3

	spawn_chance = {
		base = 0
		modifier = {
			add = 100
			is_planet_class = pc_nuked
			is_colonizable = yes
			solar_system = {
				NOR = {
					has_astral_rift = yes
					any_system_planet = {
						is_astral_scar = yes
					}
				}	
			}
		}
	}

	max_once = yes

	on_success = astral_planes.6060
}
