
@distance = 50
@base_moon_distance = 10
@jumps = 3

### Deneb System
deneb_system = {
	name = "NAME_Deneb"
	class = "sc_a"
	asteroid_belt = {
		type = rocky_asteroid_belt
		radius = 90
	}

	init_effect = {
		every_neighbor_system = {
			set_star_flag = empire_cluster
			every_neighbor_system = {
				set_star_flag = empire_cluster
			}
		}

		generate_home_system_resources = yes
	}

	flags = { empire_home_system deneb_system }

	usage = custom_empire

	planet = {
		name = "NAME_Deneb"
		class = "pc_a_star"
		orbit_distance = 0
		orbit_angle = 1
		size = 32
		has_ring = no
	}

	planet = {
		name = "NAME_Inferno"
		class = "pc_molten"
		orbit_distance = 60
		orbit_angle = 45
		size = 10
		has_ring = no
	}

	planet = {
		name = "NAME_DT4-298"
		class = "pc_asteroid"
		orbit_distance = 30
		orbit_angle = 340
		size = 5
		has_ring = no
	}

	planet = {
		name = "NAME_LR-2129"
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = 160
		size = 5
		has_ring = no
	}

	planet = {
		name = "NAME_GR-345"
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = 270
		size = 5
		has_ring = no
	}

	planet = {
		name = "NAME_Olympus"
		class = "pc_gas_giant"
		orbit_distance = 30
		orbit_angle = 200
		size = 40
		has_ring = no
		entity = "gas_giant_02_entity"

		moon = {
			name = "NAME_New_Luna"
			class = "pc_frozen"
			size = 5
			orbit_distance = 18
			orbit_angle = 100
			has_ring = no
		}
		moon = {
			name = "NAME_Unity"
			class = ideal_planet_class
			orbit_distance = 5
			orbit_angle = 340
			size = 20
			starting_planet = yes
			has_ring = no
			entity = "continental_planet_01_entity"
			deposit_blockers = none
			modifiers = none

			flags = { planet_unity }

			init_effect = {
				prevent_anomaly = yes
			}

			init_effect = {
				generate_empire_home_planet = yes
			}
		}
	}

	planet = {
		name = "NAME_Marble"
		class = "pc_barren_cold"
		orbit_distance = 20
		orbit_angle = 325
		size = 10
		has_ring = no
	}

	planet = {
		name = "NAME_Hyperion"
		class = "pc_gas_giant"
		orbit_distance = 20
		orbit_angle = 110
		size = 30
		has_ring = no
		entity = "gas_giant_05_entity"

		moon = {
			name = "NAME_Helios"
			class = "pc_frozen"
			size = 8
			orbit_distance = 14
			orbit_angle = 14
			has_ring = no
		}
	}

	planet = {
		name = "NAME_Tumbleweed"
		class = "pc_barren"
		orbit_distance = 20
		orbit_angle = 35
		size = 15
		has_ring = no
	}

	planet = {
		name = "NAME_Jackson's_Planet"
		class = "pc_frozen"
		orbit_distance = 20
		orbit_angle = 150
		size = 20
		has_ring = no
	}

	neighbor_system = {
		trigger = { num_guaranteed_colonies >= 2 }
		hyperlane_jumps = { min = 1 max = @jumps }
		initializer = "neighbor_t1"
	}
	neighbor_system = {
		trigger = { num_guaranteed_colonies >= 1 }
		hyperlane_jumps = { min = 1 max = @jumps }
		initializer = "neighbor_t1_first_colony"
	}
}

### Deneb System - UNE start
une_deneb_system = {
	name = "NAME_Deneb"
	class = "sc_a"
	asteroid_belt = {
		type = rocky_asteroid_belt
		radius = 90
	}

	init_effect = {
		every_neighbor_system = {
			set_star_flag = empire_cluster
			every_neighbor_system = {
				set_star_flag = empire_cluster
			}
		}
		generate_home_system_resources = yes
	}

	flags = { empire_home_system deneb_system }

	usage = misc_system_init

	usage_odds = {
		base = 0
		modifier = {
			NOT = { has_global_flag = human_lost_colony_is_grs }
			NOT = {
				any_country = {
					has_country_flag = human_3
				}
			}
			any_country = {
				has_country_flag = human_1
				is_human_species = yes
				NOT = { has_origin = origin_lost_colony }
				NOT = { has_origin = origin_broken_shackles }
			}
			NOT = { any_system = { has_star_flag = deneb_system } }
			NOT = { has_star_flag = empire_cluster }
			num_ai_empires_setting >= 1

			add = 99999
		}
	}

	max_instances = 1

	planet = {
		name = "NAME_Deneb"
		class = "pc_a_star"
		orbit_distance = 0
		orbit_angle = 1
		size = 40
		has_ring = no
	}

	planet = {
		name = "NAME_Inferno"
		class = "pc_molten"
		orbit_distance = 60
		orbit_angle = 45
		size = 10
		has_ring = no
	}

	planet = {
		name = "NAME_DT4-298"
		class = "pc_asteroid"
		orbit_distance = 30
		orbit_angle = 340
		size = 5
		has_ring = no
	}

	planet = {
		name = "NAME_LR-2129"
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = 160
		size = 5
		has_ring = no
	}

	planet = {
		name = "NAME_GR-345"
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = 270
		size = 5
		has_ring = no
	}

	planet = {
		name = "NAME_Olympus"
		class = "pc_gas_giant"
		orbit_distance = 30
		orbit_angle = 200
		size = 40
		has_ring = no
		entity = "gas_giant_02_entity"

		moon = {
			name = "NAME_New_Luna"
			class = "pc_frozen"
			size = 5
			orbit_distance = 18
			orbit_angle = 100
			has_ring = no
		}
		moon = {
			name = "NAME_Unity"
			class = pc_continental
			orbit_distance = 5
			orbit_angle = 340
			size = 18
			starting_planet = yes
			has_ring = no
			entity = "continental_planet_01_entity"
			deposit_blockers = none
			modifiers = none
			flags = { planet_unity }

			init_effect = {
				prevent_anomaly = yes
				random_country = {
					limit = { has_country_flag = human_1 }
					save_event_target_as = une
					owner_species = {
						save_event_target_as = human_species
					}
				}
				create_country = {
					name = "NAME_Commonwealth_of_Man"
					adjective = "PRESCRIPTED_adjective_humans2"
					authority = "auth_dictatorial"


					civics = {
						civic = civic_nationalistic_zeal
						civic = civic_distinguished_admiralty
					}
					species = event_target:human_species
					name_list = "HUMAN2"
					ship_prefix = "CNS"
					ethos = {
						ethic = "ethic_xenophobe"
						ethic = "ethic_fanatic_militarist"
					}
					flag = {
						icon= {
							category = "human"
							file = "flag_human_4.dds"
						}
						background= {
							category = "backgrounds"
							file = "stripe.dds"
						}
						colors={
							"red"
							"black"
							"null"
							"null"
						}
					}
					type = default
					origin = "origin_lost_colony"
					effect = {
						save_global_event_target_as = npc_CoM
						set_country_flag = parent_system_spawned
						add_resource = {
							minerals = 800
							energy = 800
							food = 800
							alloys = 400
							consumer_goods = 400
							influence = 200
						}
						if = {
							limit = {
								event_target:une = {
									has_origin = origin_necrophage
								}
							}
							set_origin = origin_necrophage
							set_country_flag = necrophage_commonwealth
						}
						if = {
							limit = {
								event_target:une = {
									has_origin = origin_clone_army
								}
							}
							set_origin = origin_clone_army
						}
					}
				}
				create_colony = {
					owner = event_target:npc_CoM
				}
				generate_start_deposits_and_blockers = yes
				clear_blockers = yes
				colony = {
					generate_start_buildings_and_districts = yes
				}
				generate_start_pops = yes
				event_target:npc_CoM = {
					set_country_flag = human_2
					set_country_flag = special_intro_for@event_target:une
					create_starting_leaders = yes
					country_event = { id = game_start.9 }
					country_event = { id = game_start.33 days = 1 } # needs delay for system ownership to settle
				}
				set_name = "NAME_Unity"
			}
		}
	}

	planet = {
		name = "NAME_Marble"
		class = "pc_barren_cold"
		orbit_distance = 20
		orbit_angle = 325
		size = 10
		has_ring = no
	}

	planet = {
		name = "NAME_Hyperion"
		class = "pc_gas_giant"
		orbit_distance = 20
		orbit_angle = 110
		size = 30
		has_ring = no
		entity = "gas_giant_05_entity"

		moon = {
			name = "NAME_Helios"
			class = "pc_frozen"
			size = 8
			orbit_distance = 14
			orbit_angle = 14
			has_ring = no
		}
	}

	planet = {
		name = "NAME_Tumbleweed"
		class = "pc_barren"
		orbit_distance = 20
		orbit_angle = 35
		size = 15
		has_ring = no
	}

	planet = {
		name = "NAME_Jackson's_Planet"
		class = "pc_frozen"
		orbit_distance = 20
		orbit_angle = 150
		size = 20
		has_ring = no
	}

	init_effect = {
		create_starbase = {
			size = starbase_starport
			module = shipyard
			building = crew_quarters
			owner = event_target:npc_CoM
			effect = {
				set_starbase_module = {
					slot = 2
					module = trading_hub
				}
			}
		}
	}

	neighbor_system = {
		trigger = { num_guaranteed_colonies >= 2 }
		hyperlane_jumps = { min = 1 max = @jumps }
		initializer = "deneb_neighbor_t1"
	}
	neighbor_system = {
		trigger = { num_guaranteed_colonies >= 1 }
		hyperlane_jumps = { min = 1 max = @jumps }
		initializer = "deneb_neighbor_t1_first_colony"
	}
}

# Neighbor Tier 1
deneb_neighbor_t1 = {
	class = "rl_standard_stars"
	flags = { neighbor_t1 }

	init_effect = {
		every_neighbor_system = { set_star_flag = empire_cluster }
	}

	planet = {
		count = 1
		class = star
		orbit_distance = 0
		orbit_angle = 1
		size = { min = 20 max = 30 }
		has_ring = no
	}

	change_orbit = 45

	planet = {
		count = { min = 0 max = 2 }
		orbit_distance = 20
		change_orbit = @base_moon_distance

		moon = {
			count = { min = 0 max = 1 }
			orbit_distance = 5
		}
	}

	planet = {
		count = { min = 2 max = 5 }
		orbit_distance = 20
	}

	neighbor_system = {
		hyperlane_jumps = { min = 1 max = @jumps }
		initializer = "deneb_neighbor_t2_second_colony"
	}
}

# Neighbor Tier 1 First Colony
deneb_neighbor_t1_first_colony = {
	class = "rl_standard_stars"
	flags = { neighbor_t1_first_colony }

	init_effect = {
		every_neighbor_system = { set_star_flag = empire_cluster }
	}

	planet = {
		count = 1
		class = star
		orbit_distance = 0
		orbit_angle = 1
		size = { min = 20 max = 30 }
		has_ring = no
	}

	change_orbit = 45

	planet = {
		count = { min = 0 max = 2 }
		orbit_distance = 20

		change_orbit = @base_moon_distance

		moon = {
			count = { min = 0 max = 1 }
			orbit_distance = 5
		}
	}

	planet = {
		count = 1
		orbit_distance = 25
		class = "pc_continental"
		modifiers = none
		anomaly = none
		orbit_angle = { min = 90 max = 270 }
		size = { min = 12 max = 18 }
	}

	planet = {
		count = { min = 2 max = 5 }
		orbit_distance = 25

		change_orbit = @base_moon_distance

		moon = {
			count = { min = 0 max = 1 }
			orbit_distance = 5
		}
	}

	neighbor_system = {
		hyperlane_jumps = { min = 1 max = @jumps }
		initializer = "neighbor_t2"
	}
}

# Neighbor Tier 2 Second Colony
deneb_neighbor_t2_second_colony = {
	class = "rl_standard_stars"
	flags = { neighbor_t2_second_colony }

	init_effect = {
		every_neighbor_system = { set_star_flag = empire_cluster }
	}

	planet = {
		count = 1
		class = star
		orbit_distance = 0
		orbit_angle = 1
		size = { min = 20 max = 30 }
		has_ring = no
	}

	change_orbit = 25

	planet = {
		count = 2
		orbit_angle = { min = 90 max = 270 }
		orbit_distance = 20
	}

	planet = {
		count = 1
		orbit_distance = 25
		class = "pc_continental"
		modifiers = none
		anomaly = none
		orbit_angle = { min = 90 max = 270 }
		size = { min = 14 max = 24 }

		change_orbit = @base_moon_distance

		moon = {
			count = { min = 0 max = 1 }
			class = random_non_colonizable
			orbit_angle = { min = 90 max = 270 }
			orbit_distance = 5
		}
	}

	planet = {
		count = 2
		orbit_angle = { min = 90 max = 270 }
		orbit_distance = 20

		change_orbit = @base_moon_distance

		moon = {
			count = { min = 0 max = 1 }
			class = random_non_colonizable
			orbit_angle = { min = 90 max = 270 }
			orbit_distance = 5
		}
	}

	planet = {
		count = { min = 0 max = 2 }
		orbit_angle = { min = 90 max = 270 }
		orbit_distance = 20
	}
}


### Vela System
vela_system = {
	name = "NAME_Vela"
	class = "sc_binary_1"
	asteroid_belt = {
		type = rocky_asteroid_belt
		radius = 110
	}
	asteroid_belt = {
		type = rocky_asteroid_belt
		radius = 230
	}

	init_effect = {
		every_neighbor_system = {
			set_star_flag = empire_cluster
			every_neighbor_system = {
				set_star_flag = empire_cluster
			}
		}
		generate_home_system_resources = yes
	}

	usage_odds = 0 #Should only be for custom empires

	flags = { empire_home_system vela_system }

	usage = nomad_init

	planet = {
		name = "NAME_Vela"
		class = "pc_pulsar"
		orbit_distance = 38
		orbit_angle = 1
		size = 8
		has_ring = no
		init_effect = {
			random_list = {
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_dark_matter_deposit_1
					add_deposit = d_physics_3
					set_planet_flag = ignore_startup_effect
				}
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_physics_5
					set_planet_flag = ignore_startup_effect
				}
				60 = {
					# leave to generate_home_system_resources
				}
			}
		}
	}

	planet = {
		name = "NAME_GP_Velorum"
		class = "pc_b_star"
		orbit_distance = -38
		orbit_angle = 0
		size = 33
		has_ring = no
		init_effect = {
			random_list = {
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_energy_5
					set_planet_flag = ignore_startup_effect
				}
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_physics_2
					add_deposit = d_engineering_2
					set_planet_flag = ignore_startup_effect
				}
				60 = {
					# leave to generate_home_system_resources
				}
			}
		}
	}

	planet = {
		name = "NAME_VX-455"
		class = "pc_asteroid"
		orbit_distance = 110
		orbit_angle = 40
		size = 5
		has_ring = no
		init_effect = {
			random_list = {
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_minerals_2
					add_deposit = d_alloys_1
					set_planet_flag = ignore_startup_effect
				}
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_volatile_motes_1
					add_deposit = d_exotic_gases_1
					set_planet_flag = ignore_startup_effect
				}
				60 = {
					# leave to generate_home_system_resources
				}
			}
		}
	}

	planet = {
		name = "NAME_VX-129"
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = 165
		size = 5
		has_ring = no
		init_effect = {
			random_list = {
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_minerals_2
					add_deposit = d_alloys_1
					set_planet_flag = ignore_startup_effect
				}
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_volatile_motes_1
					add_deposit = d_exotic_gases_1
					set_planet_flag = ignore_startup_effect
				}
				60 = {
					# leave to generate_home_system_resources
				}
			}
		}
	}

	planet = {
		name = "NAME_VX-033"
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = 290
		size = 5
		has_ring = no
		starting_planet = yes
		deposit_blockers = none
		modifiers = none

		flags = { hyacinth_start }

		init_effect = {
			prevent_anomaly = yes
		}
	}

	planet = {
		name = "NAME_VX-884"
		class = "pc_asteroid"
		orbit_distance = 120
		orbit_angle = 80
		size = 5
		has_ring = no
		init_effect = {
			random_list = {
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_minerals_2
					add_deposit = d_alloys_1
					set_planet_flag = ignore_startup_effect
				}
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_volatile_motes_1
					add_deposit = d_exotic_gases_1
					set_planet_flag = ignore_startup_effect
				}
				60 = {
					# leave to generate_home_system_resources
				}
			}
		}
	}

	planet = {
		name = "NAME_VX-217"
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = 200
		size = 5
		has_ring = no
		init_effect = {
			random_list = {
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_minerals_2
					add_deposit = d_alloys_1
					set_planet_flag = ignore_startup_effect
				}
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_volatile_motes_1
					add_deposit = d_exotic_gases_1
					set_planet_flag = ignore_startup_effect
				}
				60 = {
					# leave to generate_home_system_resources
				}
			}
		}
	}

	planet = {
		name = "NAME_VX-091"
		class = "pc_frozen"
		orbit_distance = 50
		orbit_angle = 310
		size = 12
		has_ring = no
		init_effect = {
			random_list = {
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_minerals_2
					add_deposit = d_rare_crystals_1
					set_planet_flag = ignore_startup_effect
				}
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_engineering_3
					set_planet_flag = ignore_startup_effect
				}
				60 = {
					# leave to generate_home_system_resources
				}
			}
		}
	}

	neighbor_system = {
		trigger = { num_guaranteed_colonies >= 2 }
		hyperlane_jumps = { min = 1 max = @jumps }
		initializer = "neighbor_t1"
	}
	neighbor_system = {
		trigger = { num_guaranteed_colonies >= 1 }
		hyperlane_jumps = { min = 1 max = @jumps }
		initializer = "neighbor_t1_first_colony"
	}
}

### Hyacinth System - UNE start
une_vela_system = {
	name = "NAME_Vela"
	class = "sc_binary_1"
	asteroid_belt = {
		type = rocky_asteroid_belt
		radius = 110
	}
	asteroid_belt = {
		type = rocky_asteroid_belt
		radius = 230
	}

	init_effect = {
		every_neighbor_system = {
			set_star_flag = empire_cluster
			every_neighbor_system = {
				set_star_flag = empire_cluster
			}
		}
		generate_home_system_resources = yes
	}

	flags = { empire_home_system vela_system }

	usage = misc_system_init

	usage_odds = {
		base = 0
		modifier = {
			has_global_flag = human_lost_colony_is_grs
			any_country = {
				has_country_flag = human_1
				is_human_species = yes
				NOT = { has_origin = origin_lost_colony }
			}
			NOR = {
				any_system = { has_star_flag = vela_system }
				has_star_flag = empire_cluster
			}
			num_ai_empires_setting >= 1
			add = 99999
		}
	}

	max_instances = 1

	planet = {
		name = "NAME_Vela"
		class = "pc_pulsar"
		orbit_distance = 38
		orbit_angle = 1
		size = 8
		has_ring = no
		init_effect = {
			random_list = {
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_dark_matter_deposit_1
					add_deposit = d_physics_3
					set_planet_flag = ignore_startup_effect
				}
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_physics_5
					set_planet_flag = ignore_startup_effect
				}
				60 = {
					# leave to generate_home_system_resources
				}
			}
		}
	}

	planet = {
		name = "NAME_GP_Velorum"
		class = "pc_b_star"
		orbit_distance = -38
		orbit_angle = 0
		size = 33
		has_ring = no
		init_effect = {
			random_list = {
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_energy_5
					set_planet_flag = ignore_startup_effect
				}
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_physics_2
					add_deposit = d_engineering_2
					set_planet_flag = ignore_startup_effect
				}
				60 = {
					# leave to generate_home_system_resources
				}
			}
		}
	}

	planet = {
		name = "NAME_VX-455"
		class = "pc_asteroid"
		orbit_distance = 110
		orbit_angle = 40
		size = 5
		has_ring = no
		init_effect = {
			random_list = {
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_minerals_2
					add_deposit = d_alloys_1
					set_planet_flag = ignore_startup_effect
				}
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_volatile_motes_1
					add_deposit = d_exotic_gases_1
					set_planet_flag = ignore_startup_effect
				}
				60 = {
					# leave to generate_home_system_resources
				}
			}
		}
	}

	planet = {
		name = "NAME_VX-129"
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = 165
		size = 5
		has_ring = no
		init_effect = {
			random_list = {
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_minerals_2
					add_deposit = d_alloys_1
					set_planet_flag = ignore_startup_effect
				}
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_volatile_motes_1
					add_deposit = d_exotic_gases_1
					set_planet_flag = ignore_startup_effect
				}
				60 = {
					# leave to generate_home_system_resources
				}
			}
		}
	}

	planet = {
		name = "NAME_VX-033"
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = 290
		size = 5
		has_ring = no
		flags = { hyacinth_start }
	}

	planet = {
		class = "pc_asteroid"
		flags = { delete_me }
		init_effect = {
			prevent_anomaly = yes
			save_event_target_as = vela_start_planet
			random_country = {
				limit = { has_country_flag = human_1 }
				save_event_target_as = une
				owner_species = {
					save_event_target_as = human_species
				}
			}
			create_country = {
				name = "EMPIRE_DESIGN_humans3"
				adjective = "PRESCRIPTED_adjective_humans3"
				authority = "auth_imperial"
				civics = {
					civic = civic_philosopher_king
					civic = civic_star_seekers
				}
				species = event_target:human_species
				name_list = "HUMAN2"
				ship_prefix = "PRESCRIPTED_ship_prefix_humans3"
				ethos = {
					ethic = "ethic_authoritarian"
					ethic = "ethic_xenophile"
					ethic = "ethic_materialist"
				}
				flag = {
					icon = {
						category = "domination"
						file = "domination_9.dds"
					}
					background = {
						category = "backgrounds"
						file = "flag_BG_20.dds"
					}
					colors = {
						"dark_purple"
						"pink_purple"
						"black"
						"null"
					}
				}
				type = default
				origin = "origin_lost_colony"
				ignore_initial_colony_error = yes
				nomadic = yes
				effect = {
					save_event_target_as = npc_GRS
					set_country_flag = parent_system_spawned
					set_country_as_nomad_effect = { IS_NOMAD = yes }
					nomad_country_initial_setup_effect = yes
					give_technology = { tech = tech_science_arkship message = no }
					refresh_auto_generated_ship_designs = yes
					add_resource = {
						minerals = 800
						energy = 800
						food = 800
						alloys = 400
						consumer_goods = 400
						influence = 200
					}
				}
			}
			event_target:npc_GRS = {
				create_fleet = {
					name = "NAME_Hyacinth"
					effect = {
						set_owner = prev
						create_ship = {
							name = "NAME_Hyacinth"
							random_existing_design = science_arkship_tier_1
							effect = {
								initialize_arkship_starbase_effect = yes
								home_arkship_initial_setup = yes
								colony = {
									upgrade_colony_shelter = yes
									generate_start_buildings_and_districts = yes
									generate_start_pops = yes
									set_capital = yes
								}
							}
						}
						set_fleet_stance = evasive
						set_fleet_flag = hyacinth_fleet
						set_location = {
							target = event_target:vela_start_planet
							distance = 0
							angle = random
						}
					}
				}
				set_country_flag = human_3
				set_country_flag = special_intro_for@event_target:une
				create_starting_leaders = yes
				country_event = { id = game_start.9 }
				country_event = { id = game_start.33 days = 1 }
				country_event = { id = nomads.9030 }
			}
			event_target:une = {
				set_country_flag = special_intro_for@event_target:npc_GRS
			}
		}
	}

	planet = {
		name = "NAME_VX-884"
		class = "pc_asteroid"
		orbit_distance = 120
		orbit_angle = 80
		size = 5
		has_ring = no
		init_effect = {
			random_list = {
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_minerals_2
					add_deposit = d_alloys_1
					set_planet_flag = ignore_startup_effect
				}
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_volatile_motes_1
					add_deposit = d_exotic_gases_1
					set_planet_flag = ignore_startup_effect
				}
				60 = {
					# leave to generate_home_system_resources
				}
			}
		}
	}

	planet = {
		name = "NAME_VX-217"
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = 200
		size = 5
		has_ring = no
		init_effect = {
			random_list = {
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_minerals_2
					add_deposit = d_alloys_1
					set_planet_flag = ignore_startup_effect
				}
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_volatile_motes_1
					add_deposit = d_exotic_gases_1
					set_planet_flag = ignore_startup_effect
				}
				60 = {
					# leave to generate_home_system_resources
				}
			}
		}
	}

	planet = {
		name = "NAME_VX-091"
		class = "pc_frozen"
		orbit_distance = 50
		orbit_angle = 310
		size = 12
		has_ring = no
		init_effect = {
			random_list = {
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_minerals_2
					add_deposit = d_rare_crystals_1
					set_planet_flag = ignore_startup_effect
				}
				20 = {
					clear_deposits = yes
					clear_planet_modifiers = yes
					add_deposit = d_engineering_3
					set_planet_flag = ignore_startup_effect
				}
				60 = {
					# leave to generate_home_system_resources
				}
			}
		}
	}

	neighbor_system = {
		trigger = { num_guaranteed_colonies >= 2 }
		hyperlane_jumps = { min = 1 max = @jumps }
		initializer = "neighbor_t1"
	}
	neighbor_system = {
		trigger = { num_guaranteed_colonies >= 1 }
		hyperlane_jumps = { min = 1 max = @jumps }
		initializer = "neighbor_t1_first_colony"
	}
}

### Vultaum Home System
vultaumar_system = {
	name = "NAME_Vultaumar"
	class = "sc_b"
	flags = { vultaumar precursor_system }

	planet = {
		name = "NAME_Vultaumar"
		class = "pc_b_star"
		orbit_distance = 0
		orbit_angle = 1
		size = 35
		has_ring = no
	}

	planet = {
		name = "NAME_Vultaumar_Prime"
		class = "pc_broken"
		orbit_distance = 80
		orbit_angle = 76
		size = 25
		has_ring = no
		flags = { vultaum_homeworld }

		init_effect = {
			prevent_anomaly = yes
			create_ambient_object = {
				type = "medium_debris_01_object"
				location = THIS
			}
			add_modifier = {
				modifier = "vultaum_homeworld"
				days = -1
			}
			clear_deposits = yes
			add_deposit = d_engineering_10
			add_deposit = d_physics_10
			add_deposit = d_society_10
		}

		moon = {
			name = "NAME_Vultaumar_Ia"
			class = "pc_barren_cold"
			size = 7
			orbit_distance = 8
			orbit_angle = 210
			has_ring = no
		}
		moon = {
			name = "NAME_Vultaumar_Ib"
			class = "pc_barren_cold"
			size = 5
			orbit_distance = 8
			orbit_angle = 95
			has_ring = no
		}
	}

	planet = {
		name = "NAME_Vultaumar_II"
		class = "pc_toxic"
		orbit_distance = 30
		orbit_angle = 320
		size = 30
		has_ring = no

		moon = {
			name = "NAME_Vultaumar_IIa"
			class = "pc_barren"
			size = 6
			orbit_distance = 12
			orbit_angle = 180
			has_ring = no
		}
	}

	planet = {
		name = "NAME_Vultaumar_III"
		class = "pc_toxic"
		orbit_distance = 20
		orbit_angle = 210
		size = 25
		has_ring = yes

		init_effect = {
			prevent_anomaly = yes
			add_modifier = {
				modifier = "vultaum_minerals"
				days = -1
			}
			set_deposit = d_minerals_10
			add_deposit = d_alloys_5
		}
	}

	planet = {
		name = "NAME_Vultaumar_IV"
		class = "pc_gas_giant"
		orbit_distance = 30
		orbit_angle = 125
		size = 40
		has_ring = no

		init_effect = {
			prevent_anomaly = yes
			add_modifier = {
				modifier = "vultaum_energy"
				days = -1
			}
			add_deposit = d_energy_10
			add_deposit = d_exotic_gases_5
		}

		moon = {
			name = "NAME_Vultaumar_IVa"
			class = "pc_frozen"
			size = 6
			orbit_distance = 20
			orbit_angle = 15
			has_ring = no
		}
	}

	planet = {
		name = "NAME_Vultaumar_V"
		class = "pc_gas_giant"
		orbit_distance = 45
		orbit_angle = 185
		size = 40
		has_ring = yes
	}
}

### Yuht Home System
yuhtaan_system = {
	name = "NAME_Yuhtaan"
	class = "sc_m"
	asteroid_belt = {
		type = rocky_asteroid_belt
		radius = 125
	}
	flags = { yuhtaan precursor_system }

	planet = {
		name = "NAME_Yuhtaan"
		class = "pc_m_star"
		orbit_distance = 0
		orbit_angle = 1
		size = 25
		has_ring = no
	}

	planet = {
		name = "NAME_Yuhtaan_Majoris"
		class = "pc_broken"
		orbit_distance = 50
		orbit_angle = 76
		size = 25
		has_ring = no
		flags = { yuht_homeworld }

		init_effect = {
			prevent_anomaly = yes
			create_ambient_object = {
				type = "large_debris_object"
				location = THIS
			}
			create_ambient_object = {
				type = "abandoned_starbase_01_object"
			}
			last_created_ambient_object = {
				set_location = {
					target = THIS
					distance = 5
					angle = random
				}
			}
			add_modifier = {
				modifier = "yuht_homeworld"
				days = -1
			}
			clear_deposits = yes
			add_deposit = d_engineering_10
			add_deposit = d_physics_10
			add_deposit = d_society_10
		}

		moon = {
			name = "NAME_Yuhtaan_Minoris"
			class = "pc_barren_cold"
			size = 5
			orbit_distance = 12
			orbit_angle = 40
			has_ring = no
		}
	}

	planet = {
		name = "NAME_Yuhtaan_II"
		class = "pc_barren"
		orbit_distance = 25
		orbit_angle = 60
		size = 20
		has_ring = no
	}

	planet = {
		name = "NAME_Yuhtaan_III"
		class = "pc_barren_cold"
		orbit_distance = 20
		orbit_angle = 175
		size = 15
		has_ring = yes
	}

	planet = {
		class = "pc_asteroid"
		orbit_distance = 30
		orbit_angle = -210
		size = 5
		has_ring = no
		flags = { jabbardeeni_cache }
	}

	planet = {
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = -95
		size = 5
		has_ring = no

		init_effect = {
			prevent_anomaly = yes
			add_modifier = {
				modifier = "yuht_minerals"
				days = -1
			}
			set_deposit = d_minerals_10
			add_deposit = d_alloys_5
		}
	}

	planet = {
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = 285
		size = 5
		has_ring = no
	}

	planet = {
		name = "NAME_Yuhtaan_IV"
		class = "pc_gas_giant"
		orbit_distance = 40
		orbit_angle = -160
		size = 30
		has_ring = no
		change_orbit = 6

		moon = {
			name = "NAME_Yuhtaan_IVa"
			class = "pc_barren_cold"
			size = 6
			orbit_distance = 10
			orbit_angle = 110
			has_ring = no
		}
		moon = {
			name = "NAME_Yuhtaan_IVb"
			class = "pc_frozen"
			size = 6
			orbit_distance = 2.5
			orbit_angle = 10
			has_ring = no
		}
		moon = {
			name = "NAME_Yuhtaan_IVc"
			class = "pc_frozen"
			size = 9
			orbit_distance = 2.5
			orbit_angle = 80
			has_ring = no
		}
	}

	planet = {
		name = "NAME_Yuhtaan_V"
		class = "pc_gas_giant"
		orbit_distance = 30
		orbit_angle = -130
		size = 30
		has_ring = yes
		change_orbit = 6

		init_effect = {
			prevent_anomaly = yes
			add_modifier = {
				modifier = "yuht_energy"
				days = -1
			}
			set_deposit = d_energy_10
			add_deposit = d_exotic_gases_5
		}

		moon = {
			name = "NAME_Yuhtaan_Va"
			class = "pc_frozen"
			size = 6
			orbit_distance = 16
			orbit_angle = 110
			has_ring = no
		}
	}

	init_effect = {
		spawn_megastructure = {
			type = "hyper_relay_ruined"
			random_pos = yes
			orbit_angle = 360		# range of the randomization
		}
	}
}

### First League Home System
fen_habbanis_system = {
	name = "NAME_Fen_Habbanis"
	class = "sc_g"
	asteroid_belt = {
		type = rocky_asteroid_belt
		radius = 85
	}
	flags = { fen_habbanis precursor_system }

	planet = {
		name = "NAME_Fen_Habbanis"
		class = "pc_g_star"
		orbit_distance = 0
		orbit_angle = 1
		size = 30
		has_ring = no
	}

	planet = {
		name = "NAME_Fen_Habbanis_I"
		class = "pc_molten"
		orbit_distance = 40
		orbit_angle = 40
		size = 15
		has_ring = no
	}

	planet = {
		name = "NAME_Fen_Habbanis_II"
		class = "pc_molten"
		orbit_distance = 20
		orbit_angle = 110
		size = 10
		has_ring = no
	}

	planet = {
		class = "pc_asteroid"
		orbit_distance = 25
		orbit_angle = -210
		size = 5
		has_ring = no

		init_effect = {
			prevent_anomaly = yes
			add_modifier = {
				modifier = "first_league_minerals"
				days = -1
			}
			set_deposit = d_minerals_10
		}
	}

	planet = {
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = -95
		size = 5
		has_ring = no
	}

	planet = {
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = 285
		size = 5
		has_ring = no
	}

	planet = {
		name = "NAME_Fen_Habbanis_III"
		class = "pc_relic"
		orbit_distance = 40
		orbit_angle = 190
		size = 25
		has_ring = no
		#anomaly = "FEN_HABBANIS"
		flags = { first_league_homeworld }

		init_effect = {
			prevent_anomaly = yes
			add_modifier = {
				modifier = "first_league_homeworld"
				days = -1
			}

			clear_deposits = yes

			add_deposit = d_ruined_arcology
			add_deposit = d_ruined_arcology
			add_deposit = d_ruined_arcology
			add_deposit = d_ruined_arcology
			add_deposit = d_ruined_arcology

			add_deposit = d_ruined_arcology
			add_deposit = d_ruined_arcology # 7 total

			add_deposit = d_relic_dense_ruins
			add_deposit = d_collapsed_spire
			add_deposit = d_massive_crevice
			add_deposit = d_shattered_solar_array
			add_deposit = d_flooded_reactor_pits
			add_deposit = d_crumbling_mining_tunnels
			add_deposit = d_relic_metal_boneyard
		}
	}

	planet = {
		name = "NAME_Fen_Habbanis_IV"
		class = "pc_toxic"
		orbit_distance = 25
		orbit_angle = 195
		size = 20
		has_ring = no
	}

	planet = {
		name = "NAME_Fen_Habbanis_V"
		class = "pc_barren"
		orbit_distance = 20
		orbit_angle = 290
		size = 20
		has_ring = no
	}

	planet = {
		name = "NAME_Fen_Habbanis_VI"
		class = "pc_gas_giant"
		orbit_distance = 30
		orbit_angle = -160
		size = 35
		has_ring = no

		init_effect = {
			prevent_anomaly = yes
			add_modifier = {
				modifier = "first_league_energy"
				days = -1
			}

			set_deposit = d_energy_10
		}
	}
}

### Irassian Home System
irass_system = {
	name = "NAME_Irass"
	class = "sc_f"
	asteroid_belt = {
		type = rocky_asteroid_belt
		radius = 125
	}
	flags = { irass precursor_system }

	planet = {
		class = star
		orbit_distance = 0
	}

	planet = {
		name = "NAME_Irass_I"
		class = "pc_molten"
		orbit_distance = 35
		orbit_angle = 40
		size = 15
		has_ring = no
	}

	planet = {
		name = "NAME_Irass_II"
		class = "pc_molten"
		orbit_distance = 20
		orbit_angle = 210
		size = 25
		has_ring = yes
	}

	planet = {
		name = "NAME_Irass_III"
		class = "pc_toxic"
		orbit_distance = 20
		orbit_angle = 70
		size = 20
		has_ring = no

		init_effect = {
			prevent_anomaly = yes
			add_modifier = {
				modifier = "irassian_minerals"
				days = -1
			}
			set_deposit = d_minerals_10
			add_deposit = d_alloys_5
		}
	}

	planet = {
		name = "NAME_Irass_IV"
		class = "pc_barren"
		orbit_distance = 20
		orbit_angle = 275
		size = 15
		has_ring = no
	}

	planet = {
		class = "pc_asteroid"
		orbit_distance = 30
		orbit_angle = -210
		size = 5
		has_ring = no
	}

	planet = {
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = -95
		size = 5
		has_ring = no
	}

	planet = {
		name = "NAME_Irass_V"
		class = "pc_barren"
		orbit_distance = 30
		orbit_angle = 45
		size = 20
		has_ring = no
	}

	planet = {
		name = "NAME_Irass_VI"
		class = "pc_gas_giant"
		orbit_distance = 50
		orbit_angle = 145
		size = 35
		has_ring = no

		moon = {
			name = "NAME_Irassia"
			class = "pc_barren_cold"
			orbit_distance = 20
			orbit_angle = 176
			size = 20
			has_ring = no
			#anomaly = "IRASSIA"
			flags = { irassian_homeworld }

			init_effect = {
				prevent_anomaly = yes
				add_modifier = {
					modifier = "irassian_homeworld"
					days = -1
				}
				clear_deposits = yes
				add_deposit = d_engineering_10
				add_deposit = d_physics_10
				add_deposit = d_society_10
			}
		}
	}

	planet = {
		name = "NAME_Irass_VII"
		class = "pc_gas_giant"
		orbit_distance = 20
		orbit_angle = 145
		size = 20
		has_ring = no

		moon = {
			name = "NAME_Irass_VIIa"
			class = "pc_frozen"
			size = 8
			orbit_distance = 12
			orbit_angle = 320
			has_ring = no
		}

		moon = {
			name = "NAME_Irass_VIIb"
			class = "pc_frozen"
			size = 8
			orbit_distance = 4
			orbit_angle = 150
			has_ring = no
		}
	}

	planet = {
		name = "NAME_Irass_VIII"
		class = "pc_gas_giant"
		orbit_distance = 20
		orbit_angle = 145
		size = 25
		has_ring = no

		init_effect = {
			prevent_anomaly = yes
			add_modifier = {
				modifier = "irassian_energy"
				days = -1
			}
			set_deposit = d_energy_10
			add_deposit = d_exotic_gases_5
		}
	}

	planet = {
		name = "NAME_Irass_IX"
		class = "pc_barren_cold"
		orbit_distance = 20
		orbit_angle = 45
		size = 15
		has_ring = no
	}
}

### Cybrex Home System
cybrex_system = {
	name = "NAME_Cybrex_Alpha"
	class = "sc_g"
	flags = { cybrex precursor_system }

	planet = {
		class = star
		orbit_distance = 0

		init_effect = {
			create_ambient_object = {
				type = "large_debris_object"
				entity_offset_height = { min = -0 max = -25 }
				location = this
			}
			last_created_ambient_object = {
				set_location = {
					target = prev
					distance = 45
					angle = random
				}
			}
			create_ambient_object = {
				type = "large_debris_object"
				entity_offset_height = { min = -0 max = -25 }
				location = this
			}
			last_created_ambient_object = {
				set_location = {
					target = prev
					distance = 45
					angle = random
				}
			}
			create_ambient_object = {
				type = "large_debris_object"
				entity_offset_height = { min = -0 max = -25 }
				location = this
			}
			last_created_ambient_object = {
				set_location = {
					target = prev
					distance = 45
					angle = random
				}
			}
			create_ambient_object = {
				type = "large_debris_object"
				entity_offset_height = { min = -0 max = -25 }
				location = this
			}
			last_created_ambient_object = {
				set_location = {
					target = prev
					distance = 45
					angle = random
				}
			}
			create_ambient_object = {
				type = "medium_debris_01_object"
				entity_offset_height = { min = -0 max = -25 }
				location = this
			}
			last_created_ambient_object = {
				set_location = {
					target = prev
					distance = 45
					angle = random
				}
			}
			create_ambient_object = {
				type = "medium_debris_02_object"
				entity_offset_height = { min = -0 max = -25 }
				location = this
			}
			last_created_ambient_object = {
				set_location = {
					target = prev
					distance = 45
					angle = random
				}
			}
			create_ambient_object = {
				type = "medium_debris_01_object"
				entity_offset_height = { min = -0 max = -25 }
				location = this
			}
			last_created_ambient_object = {
				set_location = {
					target = prev
					distance = 45
					angle = random
				}
			}
			create_ambient_object = {
				type = "medium_debris_02_object"
				entity_offset_height = { min = -0 max = -25 }
				location = this
			}
			last_created_ambient_object = {
				set_location = {
					target = prev
					distance = 45
					angle = random
				}
			}
			create_ambient_object = {
				type = "small_debris_object"
				entity_offset_height = { min = -0 max = -25 }
				location = this
			}
			last_created_ambient_object = {
				set_location = {
					target = prev
					distance = 45
					angle = random
				}
			}
		}
	}

	change_orbit = 45

	init_effect = {
		spawn_megastructure = {
			type = "ring_world_ruined"
			orbit_angle = 0
			orbit_distance = 45
		}
		spawn_megastructure = {
			type = "ring_world_ruined"
			orbit_angle = 90
			orbit_distance = 45
		}
		spawn_megastructure = {
			type = "ring_world_ruined"
			orbit_angle = 180
			orbit_distance = 45
		}
		spawn_megastructure = {
			type = "ring_world_ruined"
			orbit_angle = 270
			orbit_distance = 45
		}

		create_ambient_object = {
			type = "large_debris_object"
			location = solar_system
		}
		create_ambient_object = {
			type = "large_debris_object"
			location = solar_system
		}
		create_ambient_object = {
			type = "large_debris_object"
			location = solar_system
		}
		create_ambient_object = {
			type = "medium_debris_01_object"
			location = solar_system
		}
		create_ambient_object = {
			type = "medium_debris_02_object"
			location = solar_system
		}
		create_ambient_object = {
			type = "medium_debris_01_object"
			location = solar_system
		}
		create_ambient_object = {
			type = "medium_debris_02_object"
			location = solar_system
		}
		create_ambient_object = {
			type = "small_debris_object"
			location = solar_system
		}
	}
}

# u Andromedae
ai_titawin_init = {
	class = "rl_binary_starting_stars"
	name = "NAME_Titawin"
	usage = misc_system_init

	flags = { empire_home_system theian_system }

	asteroid_belt = {
		type = rocky_asteroid_belt
		radius = 160
	}

	planet = {
		count = 1
		class = pc_f_star
		orbit_distance = 0
		orbit_angle = 0
		name = "NAME_Titawin_A"
		size = 32
		has_ring = no
		planet = {
			name = "NAME_Saffar"
			class = "pc_gas_giant"
			orbit_distance = 210
			orbit_angle = { min = 30 max = 270 }
			size = 20
			has_ring = no
			change_orbit = 4

			moon = {
				orbit_angle = { min = 90 max = 270 }
				size = 7
				class = "pc_barren_cold"
				orbit_distance = 12
			}
		}
		planet = {
			name = "NAME_Samh"
			class = "pc_gas_giant"
			orbit_distance = 35
			orbit_angle = { min = 30 max = 270 }
			size = 20
			has_ring = no
			change_orbit = 4
		}
		planet = {
			name = "NAME_Majriti"
			class = "pc_gas_giant"
			orbit_distance = 35
			orbit_angle = { min = 30 max = 270 }
			size = 20
			has_ring = no
			change_orbit = 4

			moon = {
				count = 2
				size = 7
				class = "pc_frozen"
				orbit_angle = { min = 90 max = 270 }
				orbit_distance = 7
			}
		}
		planet = {
			class = "pc_gas_giant"
			name = "NAME_Curiel"
			orbit_distance = 35
			orbit_angle = { min = 30 max = 270 }
			size = 20
			has_ring = no
			change_orbit = 4
		}
	}
	planet = {
		name = "NAME_PHS_03"
		class = "pc_asteroid"
		orbit_distance = 160
		orbit_angle = -230
		size = 5
		has_ring = no
	}

	planet = {
		name = "NAME_PHS_02"
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = -95
		size = 5
		has_ring = no
	}

	planet = {
		name = "NAME_PHS_04"
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = 285
		size = 5
		has_ring = no
	}

	planet = {
		name = "NAME_PHS_01"
		class = "pc_asteroid"
		orbit_distance = 0
		orbit_angle = -80
		size = 5
		has_ring = no
	}
	planet = {
		count = 1
		name = "NAME_Titawin_B"
		class = pc_m_star
		orbit_distance = -70
		orbit_angle = 250
		size = 16
		has_ring = no
		satellite_naming_policy = upper_case_roman_numerals
		change_orbit = 25

		planet = {
			count = 1
			orbit_distance = 20
			home_planet = yes
			class = pc_desert
			orbit_angle = 190
			size = 20
			deposit_blockers = none
			modifiers = none

			init_effect = {
				create_species = {
					class = "LITHOID"
					homeworld = this
					portrait = "lith_human"
					name = "PRESCRIPTED_species_name_lithoid_humans"
					plural = "PRESCRIPTED_species_plural_lithoid_humans"
					adjective = "PRESCRIPTED_species_adjective_lithoid_humans"
					name_list = "LITHOID4"
					gender = indeterminable
					traits = {
						trait = "trait_lithoid"
						trait = "trait_wasteful"
						trait = "trait_industrious"
						trait = "trait_lithoid_gaseous_byproducts"
						trait = "trait_deviants"
					}
				}
				last_created_species = {
					save_event_target_as = lith_human
				}
				create_country = {
					name = "EMPIRE_DESIGN_lithoid_humans"
					adjective = "PRESCRIPTED_adjective_lithoid_humans"
					authority = "auth_oligarchic"
					civics = {
						civic = civic_mining_guilds
						civic = civic_meritocracy
					}
					species = event_target:lith_human
					name_list = "LITHOID4"
					ship_prefix = "TPC"
					ethos = {
						ethic = "ethic_pacifist"
						ethic = "ethic_fanatic_materialist"
					}
					flag = {
						icon = {
							category = "lithoid"
							file = "lithoid_03.dds"
						}
						background = {
							category = "backgrounds"
							file = "circle.dds"
						}
						colors = {
							"black"
							"dark_red"
							"null"
							"null"
						}
					}
					type = default
					origin = "origin_lithoid"
					effect = {
						save_global_event_target_as = npc_TPC
						add_resource = {
							minerals = 1200
							energy = 800
							alloys = 400
							consumer_goods = 400
							influence = 200
						}
					}
				}
				create_colony = {
					owner = event_target:npc_TPC
				}
				generate_start_deposits_and_blockers = yes
				colony = {
					generate_start_buildings_and_districts = yes
					generate_start_pops = yes
					generate_home_planet_final_pass = yes
				}
				event_target:npc_TPC = {
					set_country_flag = human_lithoid
					create_starting_leaders = yes
					country_event = { id = game_start.9 }
					country_event = { id = game_start.33 days = 1 } # needs delay for system ownership to settle
				}
			}

			change_orbit = @base_moon_distance

			moon = {
				class = pc_barren
				name = "NAME_Akal_Amectuh"
				size = 4
				orbit_angle = 120
				orbit_distance = 5
			}
		}

		planet = {
			class = pc_molten
			name = "NAME_Yessefsi"
			size = 7
			orbit_angle = 90
			orbit_distance = 15
			satellite_naming_policy = lower_case_latin_letters
		}
	}

	change_orbit = -245

	neighbor_system = {
		trigger = { num_guaranteed_colonies >= 2 }
		hyperlane_jumps = { min = 1 max = @jumps }
		initializer = "neighbor_t1"
	}
	neighbor_system = {
		trigger = { num_guaranteed_colonies >= 1 }
		hyperlane_jumps = { min = 1 max = @jumps }
		initializer = "neighbor_t1_first_colony"
	}
}
