####### Interstellar Art. System: Alderson Disk
decision_artsys_alderson_construction = {
	#owned_planets_only = no
	icon = decision_ringworld_construction

	enactment_time = 2700 # Bit faster than normal alderson because skill
	resources = {
		category = decisions
		cost = {
			alloys = 155000
			influence = 150 #0.5x influence
			unity = 500
		}
	}

	potential = {
		has_gigastructures = yes
		exists = from
		exists = space_owner
		space_owner = { is_same_value = from }
		from = {
			has_technology = giga_tech_alderson_disk
			has_ascension_perk = ap_gigastructural_constructs # Thanks Aphyxia
		}
		NOT = { has_global_flag = alderson_disabled }

		#OR = {
		#	is_planet_class = pc_fusion_candle
		#	is_planet_class = pc_blue_dwarf_star
		#	is_planet_class = pc_black_hole
		#}
		has_planet_flag = ssh_artificial_star
		NOR = {
			has_planet_flag = has_megastructure
			has_planet_flag = ssh_artsys_planets
		}
		#exists = space_owner ### did 4.0 break this?
	}

	prerequisites = {
		ssh_tech_system_creator
	}

	effect = {
		#custom_tooltip = decision_shellworld_arcology_project_effects
		hidden_effect = {
			set_planet_flag = has_megastructure
			solar_system = {
				spawn_megastructure = {
					type = "alderson_disk_0"
					orbit_angle = 0
					orbit_distance = 0
					owner = fromfromfrom
					graphical_culture = fromfromfrom
					planet = star
					init_effect = {
						upgrade_megastructure_to = alderson_disk_1
					}
				}
			}
		}
	}

	ai_weight = {
		weight = 20
		#modifier = {
		#	factor = 0.1
		#	owner = {
		#		any_owned_planet = {
		#			is_planet_class = pc_ringworld_habitable
		#		}
		#	}
		#}
	}
}
