@base_moon_distance = 10

central_crystal_init_01 = {
	class = "sc_pulsar"
	name = "NAME_The_Outer_Gate"

	usage = misc_system_init
	usage_odds = 0

	asteroid_belt = {
		type = rocky_asteroid_belt
		radius = 190
	}

	asteroid_belt = {
		type = icy_asteroid_belt
		radius = 240
	}

	flags = { central_crystal_flag }

	planet = {
		name = "NAME_The_Outer_Gate"
		class = star
		orbit_distance = 0
		orbit_angle = 1
		size = 30
		has_ring = no

		init_effect = {
			clear_deposits = yes
		}
	}

	change_orbit = 45

	planet = {
		count = 2
		class = pc_ice_asteroid
		orbit_distance = { min = 130 max = 140 }
		orbit_angle = { min = 90 max = 270 }

		init_effect = {
			clear_deposits = yes
		}
	}

	planet = {
		name = "NAME_Snow_Crystal"
		class = pc_frozen
		orbit_distance = 5
		orbit_angle = { min = 90 max = 270 }
		size = 20
		has_ring = no

		flags = { snow_crystal_planet }

		init_effect = {
			clear_deposits = yes

			central_crystal_country_spawn_effect = yes
		}
	}

	init_effect = {
		create_ambient_object = {
			type = "central_crystal_gateway"
			location = this
		}
		last_created_ambient_object = {
			set_location = {
				target = prev
				distance = 360
				angle = 275
			}
		}
	}
}

