﻿found_pechenegs_decision = {

	picture = {
		reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_concession.dds"
	}
	decision_group_type = major
	desc = found_pechenegs_decision_desc

	is_shown = {
		has_culture = culture:pecheneg
		NOT = { exists = title:k_pechenegs.holder }
	}
	
	is_valid = {
		has_trait = viking
		has_title = title:d_yedisan
		has_title = title:d_kizilyedisan
	}
	
	effect = {
	
	create_title_and_vassal_change = {
			type = created
			save_scope_as = title_change
			add_claim_on_loss = no
		}
		title:k_pechenegs = {
			change_title_holder = {
				holder = root
				change = scope:title_change
			}
		}
		resolve_title_and_vassal_change = scope:title_change
		
		root.dynasty = {
		add_dynasty_prestige = 1000
		}
	}
	
	cost = {
		gold = 500
		prestige = {
			value = {
				add = 0
				if = {
					limit = {
						government_has_flag = government_is_tribal
					}
					add = medium_prestige_value
				}
			}
		}
		herd = {
			value = {
				add = 0
				if = {
					limit = {
						government_has_flag = government_is_nomadic
					}
					add = medium_herd_value_static
				}
			}
		}
	}
	
	ai_will_do = {
		base = 100
	}
	ai_potential = {
        always = yes
	}
}