# Worldseeders: find one terraforming candidate at once.
# One-day edict (pattern: apb_fork_instance). The 5-year cooldown starts when it is enacted.
apb_survey_candidates = {
	length = 1
	icon = "GFX_edict_type_time"

	resources = {
		category = edicts
		cost = {
			energy = 1500
			exotic_gases = 50
		}
	}

	potential = {
		has_ascension_perk = ap_worldseeders
	}

	allow = {
		custom_tooltip = {
			fail_text = apb_survey_candidates_cooldown
			NOT = { has_country_flag = apb_seeders_survey_cooldown }
		}
		custom_tooltip = {
			fail_text = apb_survey_candidates_no_world
			apb_seeders_has_valid_world = yes
		}
	}

	effect = {
		custom_tooltip = apb_survey_candidates_effect_tt
		hidden_effect = {
			set_timed_country_flag = {
				flag = apb_seeders_survey_cooldown
				years = 5
			}
			apb_seeders_find_candidate = yes
		}
	}

	ai_weight = {
		weight = 5
	}
}
