#################
# U1. Crown World (tall play)
# Unlocks the planet decision "Name as Crown World" (common/decisions/apb_crown_world_decisions.txt).
# One planet holds the title. It carries a modifier that scales with the number of
# ascension perks taken (20 at most), and grows at 5, 10 and 15 perks.
# Logic: events/apb_crown_world_events.txt, common/scripted_effects/apb_crown_world_effects.txt
#################

ap_crown_world = {
	potential = {
		NOT = {
			has_ascension_perk = ap_crown_world
		}
		is_nomadic = no
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_1"
			num_ascension_perks > 0
		}
	}
	on_enabled = {
		custom_tooltip = apb_crown_world_tt
		hidden_effect = {
			# A day later, so the perk count already includes this perk.
			country_event = {
				id = apb_crown.2
				days = 1
			}
		}
	}
	ai_weight = {
		factor = 1
		modifier = {
			factor = 2
			num_owned_planets < 6
		}
	}
}
