@precursor_easy = 6
@precursor_medium = 8
@precursor_hard = 10

vultaum_1_cat = {
	desc = "vultaum_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_easy
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			solar_system = { has_star_flag = precursor_1 }
			uninhabitable_regular_planet = yes
			NOT = { has_planet_flag = precursor_world }
			from.owner = {
				NOT = { has_country_flag = vultaum_1 }
				has_country_flag = vultaum_intro
				has_event_chain = vultaum_chain
			}
		}
	}

	on_spawn = {
		set_planet_flag = precursor_world
		from.owner = { set_country_flag = vultaum_1 }
	}

	on_success = precursor.5

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.33
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

vultaum_2_cat = {
	desc = "vultaum_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_easy
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			solar_system = { has_star_flag = precursor_1 }
			uninhabitable_regular_planet = yes
			NOT = { has_planet_flag = precursor_world }
			from.owner = {
				NOT = { has_country_flag = vultaum_2 }
				has_country_flag = vultaum_intro
				has_event_chain = vultaum_chain
			}
		}
	}

	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = vultaum_2
			}
		}
	}

	on_success = precursor.10

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.33
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

vultaum_3_cat = {
	desc = "vultaum_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = { has_planet_flag = precursor_world }
			habitable_planet = yes
			solar_system = { has_star_flag = precursor_1 }
			from.owner = {
				NOT = { has_country_flag = vultaum_3 }
				has_country_flag = vultaum_intro
				has_event_chain = vultaum_chain
			}
		}
	}

	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = vultaum_3
			}
		}
	}

	on_success = precursor.15

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.33
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

vultaum_4_cat = {
	desc = "vultaum_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_1
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = vultaum_4
					}
					has_country_flag = vultaum_intro
					has_event_chain = vultaum_chain
				}
			}
		}
	}

	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = vultaum_4
			}
		}
	}

	on_success = precursor.20

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.33
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

vultaum_5_cat = {
	desc = "vultaum_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_1
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = vultaum_5
					}
					has_country_flag = vultaum_intro
					has_event_chain = vultaum_chain
				}
			}
		}
	}

	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = vultaum_5
			}
		}
	}

	on_success = precursor.25

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.33
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

vultaum_6_cat = {
	desc = "vultaum_gasgiant_category_desc"
	picture = "GFX_evt_microscopic_life"
	level = @precursor_hard
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			is_planet_class = pc_gas_giant
			solar_system = {
				has_star_flag = precursor_1
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = vultaum_6
					}
					has_country_flag = vultaum_intro
					has_event_chain = vultaum_chain
				}
			}
		}
	}

	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = vultaum_6
			}
		}
	}

	on_success = precursor.30

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.33
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.900
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.901
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.902
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.903
	#	}
	#}
}

vultaum_7_cat = {
	desc = "vultaum_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_1
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = vultaum_7
					}
					has_country_flag = vultaum_intro
					has_event_chain = vultaum_chain
				}
			}
		}
	}

	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = vultaum_7
			}
		}
	}

	on_success = precursor.35

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.33
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

vultaum_8_cat = {
	desc = "vultaum_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_1
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = vultaum_8
					}
					has_country_flag = vultaum_intro
					has_event_chain = vultaum_chain
				}
			}
		}
	}

	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = vultaum_8
			}
		}
	}

	on_success = precursor.40

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.33
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

vultaum_9_cat = {
	desc = "vultaum_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_1
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = vultaum_9
					}
					has_country_flag = vultaum_intro
					has_event_chain = vultaum_chain
				}
			}
		}
	}

	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = vultaum_9
			}
		}
	}

	on_success = precursor.45

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.33
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

vultaum_10_cat = {
	desc = "vultaum_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_1
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = vultaum_10
					}
					has_country_flag = vultaum_intro
					has_event_chain = vultaum_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = vultaum_10
			}
		}
	}

	on_success = precursor.50

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.33
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

vultaum_11_cat = {
	desc = "vultaum_asteroid_category_desc"
	picture = "GFX_evt_mining_station"
	level = @precursor_hard
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			is_asteroid = yes
			solar_system = {
				has_star_flag = precursor_1
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = vultaum_11
					}
					has_country_flag = vultaum_intro
					has_event_chain = vultaum_chain
				}
			}
		}
	}

	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = vultaum_11
			}
		}
	}

	on_success = precursor.55

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.33
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.405
	#	}
	#}
}

yuht_1_cat = {
	desc = "yuht_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_easy
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_2
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = yuht_1
					}
					has_country_flag = yuht_intro
					has_event_chain = yuht_chain
				}
			}
		}
	}

	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = yuht_1
			}
		}
	}

	on_success = precursor.505

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.34
	#	}
	#}
#
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

yuht_2_cat = {
	desc = "yuht_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_easy
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_2
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = yuht_2
					}
					has_country_flag = yuht_intro
					has_event_chain = yuht_chain
				}
			}
		}
	}

	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = yuht_2
			}
		}
	}

	on_success = precursor.510

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.34
	#	}
	#}
#
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

yuht_3_cat = {
	desc = "yuht_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_2
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = yuht_3
					}
					has_country_flag = yuht_intro
					has_event_chain = yuht_chain
				}
			}
		}
	}

	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = yuht_3
			}
		}
	}

	on_success = precursor.515

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.34
	#	}
	#}
#
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

yuht_4_cat = {
	desc = "yuht_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_2
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = yuht_4
					}
					has_country_flag = yuht_intro
					has_event_chain = yuht_chain
				}
			}
		}
	}

	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = yuht_4
			}
		}
	}

	on_success = precursor.520

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.34
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

yuht_5_cat = {
	desc = "yuht_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_2
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = yuht_5
					}
					has_country_flag = yuht_intro
					has_event_chain = yuht_chain
				}
			}
		}
	}

	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = yuht_5
			}
		}
	}

	on_success = precursor.525

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.34
	#	}
	#}
#
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

yuht_6_cat = {
	desc = "yuht_gasgiant_category_desc"
	picture = "GFX_evt_microscopic_life"
	level = @precursor_hard
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			is_planet_class = pc_gas_giant
			solar_system = {
				has_star_flag = precursor_2
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = yuht_6
					}
					has_country_flag = yuht_intro
					has_event_chain = yuht_chain
				}
			}
		}
	}

	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = yuht_6
			}
		}
	}

	on_success = precursor.530

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.34
	#	}
	#}
#
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.900
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.901
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.902
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.903
	#	}
	#}
}

yuht_7_cat = {
	desc = "yuht_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_2
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = yuht_7
					}
					has_country_flag = yuht_intro
					has_event_chain = yuht_chain
				}
			}
		}
	}

	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = yuht_7
			}
		}
	}

	on_success = precursor.535

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.34
	#	}
	#}
	#
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

yuht_8_cat = {
	desc = "yuht_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_2
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = yuht_8
					}
					has_country_flag = yuht_intro
					has_event_chain = yuht_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = yuht_8
			}
		}
	}

	on_success = precursor.540

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.34
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

yuht_9_cat = {
	desc = "yuht_asteroid_category_desc"
	picture = "GFX_evt_mining_station"
	level = @precursor_hard
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			is_asteroid = yes
			solar_system = {
				has_star_flag = precursor_2
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = yuht_9
					}
					has_country_flag = yuht_intro
					has_event_chain = yuht_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = yuht_9
			}
		}
	}

	on_success = precursor.545

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.34
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.405
	#	}
	#}
}

league_1_cat = {
	desc = "league_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_easy
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_3
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = first_league_1
					}
					has_country_flag = first_league_intro
					has_event_chain = first_league_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = first_league_1
			}
		}
	}

	on_success = precursor.1005

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.35
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

league_2_cat = {
	desc = "league_gasgiant_category_desc"
	picture = "GFX_evt_microscopic_life"
	level = @precursor_easy
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			is_planet_class = pc_gas_giant
			solar_system = {
				has_star_flag = precursor_3
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = first_league_2
					}
					has_country_flag = first_league_intro
					has_event_chain = first_league_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = first_league_2
			}
		}
	}

	on_success = precursor.1010

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.35
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.900
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.901
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.902
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.903
	#	}
	#}
}

league_3_cat = {
	desc = "league_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_3
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = first_league_3
					}
					has_country_flag = first_league_intro
					has_event_chain = first_league_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = first_league_3
			}
		}
	}

	on_success = precursor.1015

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.35
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

league_4_cat = {
	desc = "league_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_3
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = first_league_4
					}
					has_country_flag = first_league_intro
					has_event_chain = first_league_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = first_league_4
			}
		}
	}

	on_success = precursor.1020

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.35
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

league_5_cat = {
	desc = "league_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_3
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = first_league_5
					}
					has_country_flag = first_league_intro
					has_event_chain = first_league_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = first_league_5
			}
		}
	}

	on_success = precursor.1025

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.35
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

league_6_cat = {
	desc = "league_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_3
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = first_league_6
					}
					has_country_flag = first_league_intro
					has_event_chain = first_league_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = first_league_6
			}
		}
	}

	on_success = precursor.1030

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.35
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

league_7_cat = {
	desc = "league_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_3
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = first_league_7
					}
					has_country_flag = first_league_intro
					has_event_chain = first_league_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = first_league_7
			}
		}
	}

	on_success = precursor.1035

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.35
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

league_8_cat = {
	desc = "league_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_3
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = first_league_8
					}
					has_country_flag = first_league_intro
					has_event_chain = first_league_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = first_league_8
			}
		}
	}

	on_success = precursor.1040

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.35
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

league_9_cat = {
	desc = "league_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_3
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = first_league_9
					}
					has_country_flag = first_league_intro
					has_event_chain = first_league_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = first_league_9
			}
		}
	}

	on_success = precursor.1045

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.35
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

league_10_cat = {
	desc = "league_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_3
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = first_league_10
					}
					has_country_flag = first_league_intro
					has_event_chain = first_league_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = first_league_10
			}
		}
	}

	on_success = precursor.1050

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.35
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

league_11_cat = {
	desc = "league_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_3
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = first_league_11
					}
					has_country_flag = first_league_intro
					has_event_chain = first_league_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = first_league_11
			}
		}
	}

	on_success = precursor.1055

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.35
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

league_12_cat = {
	desc = "league_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_3
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = first_league_12
					}
					has_country_flag = first_league_intro
					has_event_chain = first_league_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = first_league_12
			}
		}
	}

	on_success = precursor.1060

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.35
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

league_13_cat = {
	desc = "league_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_3
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = first_league_13
					}
					has_country_flag = first_league_intro
					has_event_chain = first_league_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = first_league_13
			}
		}
	}

	on_success = precursor.1065

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.35
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

league_14_cat = {
	desc = "league_asteroid_category_desc"
	picture = "GFX_evt_mining_station"
	level = @precursor_hard
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			is_asteroid = yes
			solar_system = {
				has_star_flag = precursor_3
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = first_league_14
					}
					has_country_flag = first_league_intro
					has_event_chain = first_league_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = first_league_14
			}
		}
	}

	on_success = precursor.1070

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.35
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.405
	#	}
	#}
}

irassian_1_cat = {
	desc = "irassian_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_easy
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_4
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = irassians_1
					}
					has_country_flag = irassian_intro
					has_event_chain = irassian_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = irassians_1
			}
		}
	}

	on_success = precursor.1505

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.36
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

irassian_2_cat = {
	desc = "irassian_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_easy
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_4
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = irassians_2
					}
					has_country_flag = irassian_intro
					has_event_chain = irassian_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = irassians_2
			}
		}
	}

	on_success = precursor.1510

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.36
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

irassian_3_cat = {
	desc = "irassian_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_4
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = irassians_3
					}
					has_country_flag = irassian_intro
					has_event_chain = irassian_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = irassians_3
			}
		}
	}

	on_success = precursor.1515

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.36
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

irassian_4_cat = {
	desc = "irassian_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_4
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = irassians_4
					}
					has_country_flag = irassian_intro
					has_event_chain = irassian_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = irassians_4
			}
		}
	}

	on_success = precursor.1520

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.36
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

irassian_5_cat = {
	desc = "irassian_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_4
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = irassians_5
					}
					has_country_flag = irassian_intro
					has_event_chain = irassian_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = irassians_5
			}
		}
	}

	on_success = precursor.1525

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.36
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

irassian_6_cat = {
	desc = "irassian_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_4
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = irassians_6
					}
					has_country_flag = irassian_intro
					has_event_chain = irassian_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = irassians_6
			}
		}
	}

	on_success = precursor.1530

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.36
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

irassian_7_cat = {
	desc = "irassian_habitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_4
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = irassians_7
					}
					has_country_flag = irassian_intro
					has_event_chain = irassian_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = irassians_7
			}
		}
	}

	on_success = precursor.1535

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.36
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

irassian_8_cat = {
	desc = "irassian_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_4
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = irassians_8
					}
					has_country_flag = irassian_intro
					has_event_chain = irassian_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = irassians_8
			}
		}
	}

	on_success = precursor.1540

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.36
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

irassian_9_cat = {
	desc = "irassian_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_4
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = irassians_9
					}
					has_country_flag = irassian_intro
					has_event_chain = irassian_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = irassians_9
			}
		}
	}

	on_success = precursor.1545

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.36
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

irassian_10_cat = {
	desc = "irassian_asteroid_category_desc"
	picture = "GFX_evt_mining_station"
	level = @precursor_hard
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			is_asteroid = yes
			solar_system = {
				has_star_flag = precursor_4
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = irassians_10
					}
					has_country_flag = irassian_intro
					has_event_chain = irassian_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = irassians_10
			}
		}
	}

	on_success = precursor.1550

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.36
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.405
	#	}
	#}
}

irassian_11_cat = {
	desc = "irassian_gasgiant_category_desc"
	picture = "GFX_evt_microscopic_life"
	level = @precursor_hard
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			is_planet_class = pc_gas_giant
			solar_system = {
				has_star_flag = precursor_4
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = irassians_11
					}
					has_country_flag = irassian_intro
					has_event_chain = irassian_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = irassians_11
			}
		}
	}

	on_success = precursor.1555

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.36
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.900
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.901
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.902
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.903
	#	}
	#}
}

cybrex_1_cat = {
	desc = "cybrex_habitable_category_desc"
	picture = "GFX_evt_archaeological_dig"
	level = @precursor_easy
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_5
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = cybrex_1
					}
					has_country_flag = cybrex_intro
					has_event_chain = cybrex_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = cybrex_1
			}
		}
	}

	on_success = precursor.2005

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.37
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

cybrex_2_cat = {
	desc = "cybrex_habitable_category_desc"
	picture = "GFX_evt_archaeological_dig"
	level = @precursor_easy
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_5
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = cybrex_2
					}
					has_country_flag = cybrex_intro
					has_event_chain = cybrex_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = cybrex_2
			}
		}
	}

	on_success = precursor.2010

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.37
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

cybrex_3_cat = {
	desc = "cybrex_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_5
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = cybrex_3
					}
					has_country_flag = cybrex_intro
					has_event_chain = cybrex_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = cybrex_3
			}
		}
	}

	on_success = precursor.2015

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.37
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

cybrex_4_cat = {
	desc = "cybrex_habitable_category_desc"
	picture = "GFX_evt_archaeological_dig"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_5
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = cybrex_4
					}
					has_country_flag = cybrex_intro
					has_event_chain = cybrex_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = cybrex_4
			}
		}
	}

	on_success = precursor.2020

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.37
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

cybrex_5_cat = {
	desc = "cybrex_habitable_category_desc"
	picture = "GFX_evt_archaeological_dig"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			habitable_planet = yes
			solar_system = {
				has_star_flag = precursor_5
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = cybrex_5
					}
					has_country_flag = cybrex_intro
					has_event_chain = cybrex_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = cybrex_5
			}
		}
	}

	on_success = precursor.2025

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.37
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

cybrex_6_cat = {
	desc = "cybrex_asteroid_category_desc"
	picture = "GFX_evt_mining_station"
	level = @precursor_hard
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			is_asteroid = yes
			solar_system = {
				has_star_flag = precursor_5
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = cybrex_6
					}
					has_country_flag = cybrex_intro
					has_event_chain = cybrex_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = cybrex_6
			}
		}
	}

	on_success = precursor.2030

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.37
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.405
	#	}
	#}
}

cybrex_7_cat = {
	desc = "cybrex_gasgiant_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_hard
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			is_planet_class = pc_gas_giant
			solar_system = {
				has_star_flag = precursor_5
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = cybrex_7
					}
					has_country_flag = cybrex_intro
					has_event_chain = cybrex_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = cybrex_7
			}
		}
	}

	on_success = precursor.2035

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.37
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.900
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.901
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.902
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.903
	#	}
	#}
}

cybrex_8_cat = {
	desc = "cybrex_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_5
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = cybrex_8
					}
					has_country_flag = cybrex_intro
					has_event_chain = cybrex_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = cybrex_8
			}
		}
	}

	on_success = precursor.2040

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.37
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

cybrex_9_cat = {
	desc = "cybrex_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_5
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = cybrex_9
					}
					has_country_flag = cybrex_intro
					has_event_chain = cybrex_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = cybrex_9
			}
		}
	}

	on_success = precursor.2045

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.37
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

cybrex_10_cat = {
	desc = "cybrex_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_5
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = cybrex_10
					}
					has_country_flag = cybrex_intro
					has_event_chain = cybrex_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = cybrex_10
			}
		}
	}

	on_success = precursor.2050

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.37
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

cybrex_11_cat = {
	desc = "cybrex_uninhabitable_category_desc"
	picture = "GFX_evt_ship_in_orbit"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 10
			NOT = {
				has_planet_flag = precursor_world
			}
			uninhabitable_regular_planet = yes
			solar_system = {
				has_star_flag = precursor_5
			}
			FROM = {
				owner = {
					is_ai = no
					NOT = {
						has_country_flag = cybrex_11
					}
					has_country_flag = cybrex_intro
					has_event_chain = cybrex_chain
				}
			}
		}
	}
	on_spawn = {
		set_planet_flag = precursor_world
		FROM = {
			owner = {
				set_country_flag = cybrex_11
			}
		}
	}

	on_success = precursor.2055

	#on_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.37
	#	}
	#}
	#on_critical_fail = {
	#	1 = {
	#		ship_event = anomaly_failure.1400
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1401
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1402
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1403
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1404
	#	}
	#	1 = {
	#		ship_event = anomaly_failure.1405
	#	}
	#}
}

VULTAUMAR = {
	desc = "VULTAUMAR_DESC"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 0
		}
	}

	on_success = precursor.101
}

YUHTAAN = {
	desc = "YUHTAAN_DESC"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 0
		}
	}

	on_success = precursor.601
}

FEN_HABBANIS = {
	desc = "FEN_HABBANIS_DESC"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 0
		}
	}

	on_success = precursor.1101
}

IRASSIA = {
	desc = "IRASSIA_DESC"
	level = @precursor_medium
	situation_log_category = precursors

	spawn_chance = {
		modifier = {
			add = 0
		}
	}

	on_success = precursor.1601
}
