#################
# U8. The Long Table (diplomats)
# Every ten years (on_decade_pulse_country), if we are at peace and at least two
# empires hold an opinion of +50 or better of us, we host a summit. Up to six of
# them attend and we pick one of four outcomes; rewards scale with the guest count.
# One summit in four also has an incident.
# Logic: events/apb_long_table_events.txt
#################

ap_long_table = {
	potential = {
		NOT = {
			has_ascension_perk = ap_long_table
		}
		is_homicidal = no
		NOT = { has_valid_civic = civic_inwards_perfection }
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
	}
	on_enabled = {
		custom_tooltip = apb_long_table_tt
	}
	ai_weight = {
		factor = 2
		modifier = {
			factor = 2
			OR = {
				is_xenophile = yes
				is_pacifist = yes
			}
		}
		modifier = {
			factor = 1.5
			has_federation = yes
		}
	}
}
