#################
# U4. Wards of the Stars (pre-FTL watchers)
# Pre-FTL worlds under one of our observation posts are "wards".
# - Every five years each ward pays society research and unity, more in later ages.
# - A ward entering a new age gives a choice of research or unity.
# - Each ward gives +0.25 monthly influence (4 wards at most).
# - A ward that becomes a spacefaring empire trusts us, and can be taken as a protectorate.
# Logic: events/apb_wards_of_the_stars_events.txt
#################

ap_wards_of_the_stars = {
	potential = {
		NOT = {
			has_ascension_perk = ap_wards_of_the_stars
		}
		is_homicidal = no
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
	}
	on_enabled = {
		custom_tooltip = apb_wards_of_the_stars_tt
		hidden_effect = {
			country_event = {
				id = apb_wards.2
			}
		}
	}
	ai_weight = {
		factor = 2
		modifier = {
			factor = 0.25
			NOT = { has_country_flag = built_observation_post }	# vanilla flag, set by fircon.5
		}
		modifier = {
			factor = 1.5
			OR = {
				is_xenophile = yes
				is_materialist = yes
			}
		}
		modifier = {
			factor = 0
			has_ai_personality = xenophobic_isolationists
		}
	}
}
