﻿# Parasite Machine system. The dead-world archaeology is independent of primitive-building content.
ASP_site_parasite_machine_system = {
	class = "rl_standard_stars"
	usage = misc_system_init
	max_instances = 1
	scaled_spawn_chance = 6
	prevent_anomalies = yes
	flags = { shroud_storm_changed }

	usage_odds = {
		base = 50
		modifier = { factor = 0 has_star_flag = empire_cluster }
		modifier = { factor = 0 is_fe_cluster = yes }
		modifier = { factor = 0.8 NOT = { any_country = { has_civic = civic_shared_burden } } }
	}

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

	planet = {
		class = "pc_continental"
		orbit_distance = 25
		orbit_angle = 120
		size = 20
		has_ring = no
		deposit_blockers = none
		modifiers = none
		flags = { shroud_storm_changed }
		init_effect = {
			create_archaeological_site = ASP_site_parasite_machine
			add_modifier = { modifier = irradiated_planet days = -1 }
		}
		moon = { class = "pc_shattered" size = 5 orbit_distance = 12 orbit_angle = 40 has_ring = no }
	}

	planet = {
		orbit_distance = 20
		count = { min = 1 max = 4 }
		change_orbit = @base_moon_distance
		moon = { count = { min = 0 max = 1 } orbit_angle = { min = 90 max = 270 } orbit_distance = 5 }
	}
	planet = { orbit_distance = 20 count = { min = 0 max = 2 } }
}
