#	UGRC首府等级条件		system_tooltips/UGRC_eft_sstm_TRGR_arc_furnace_tooltip
#_eft	<UGRC星系标签DB>
#_evt	<ugrc巨构建设>

#	建设位占用
if = {
	limit = {
		any_system_megastructure = {
			OR = {
				is_megastructure_type = dyson_sphere_0
				is_megastructure_type = dyson_sphere_1
				is_megastructure_type = dyson_sphere_2
				is_megastructure_type = dyson_sphere_3
				is_megastructure_type = dyson_sphere_4
				is_megastructure_type = dyson_sphere_5
				is_megastructure_type = dyson_sphere_ruined
				is_megastructure_type = dyson_sphere_restored
				is_megastructure_type = orbital_arc_furnace_1
				is_megastructure_type = orbital_arc_furnace_2
				is_megastructure_type = orbital_arc_furnace_3
				is_megastructure_type = orbital_arc_furnace_4
				is_megastructure_type = orbital_arc_furnace_destroyed
				is_megastructure_type = orbital_arc_furnace_restored
			}
		}
	}
	set_star_flag = UGRC_flg_sstm_TIP_arc_furnace_constructed
}
else_if = {
	limit = { has_star_flag = UGRC_flg_sstm_TIP_arc_furnace_constructed }
	remove_star_flag = UGRC_flg_sstm_TIP_arc_furnace_constructed
}

#	可用星球存在
if = {
	limit = {
		any_system_planet = {
			NOR = {
				has_anomaly = yes
				has_carrier_flag = megastructure
				has_carrier_flag = has_megastructure
			}
			is_planet_class = pc_molten
		}
	}
	set_star_flag = UGRC_flg_sstm_TIP_available_pc_molten
}
else_if = {
	limit = { has_star_flag = UGRC_flg_sstm_TIP_available_pc_molten }
	remove_star_flag = UGRC_flg_sstm_TIP_available_pc_molten
}

