######################
# Physics Technology #
######################

# Rift Sphere
tech_rift_sphere = {
	cost = @tier3cost2
	area = physics
	tier = 2
	category = { field_manipulation }
	is_rare = yes
	weight = 0

	feature_flags = {
		unlock_astral_rift_exploration
	}

	potential = {
		has_astral_planes_dlc = yes
	}
}

# Astral Harvesting
tech_astral_harvesting = {
	cost = @tier2cost1
	area = physics
	tier = 2
	category = { particles }
	is_rare = no
	weight = @tier2weight1

	feature_flags = {
		unlock_astral_threads_actions
	}

	potential = {
		has_astral_planes_dlc = yes
	}

	weight_modifier = {
		modifier = {
			factor = 0
			NOR = {
				has_country_flag = astral_threads_found
				any_system_within_border = {
					OR = {
						exists = astral_rift
						any_system_planet = { has_resource = { type = astral_threads amount > 0 } }
					}
				}
				AND = {
					is_nomadic = yes
					any_owned_nonprimary_starbase = {
						is_waystation_starbase = yes
						solar_system = {
							OR = {
								exists = astral_rift
								any_system_planet = { has_resource = { type = astral_threads amount > 0 } }
							}
						}
					}
				}
				any_relation = {
					AND = {
						is_country_type = default
						has_communications = ROOT
						has_technology = tech_astral_harvesting
					}
				}
			}
		}
		modifier = {
			factor = 2
			any_system_within_border = {
				OR = {
					exists = astral_rift
					any_system_planet = {
						is_astral_scar = yes
					}
				}
			}
		}
		modifier = {
			factor = 2
			is_nomadic = yes
			any_owned_nonprimary_starbase = {
				is_waystation_starbase = yes
				solar_system = {
					OR = {
						exists = astral_rift
						any_system_planet = {
							is_astral_scar = yes
						}
					}
				}
			}
		}
	}
}
