# Supported types: character
#
# Note: if 'chance' evaluates to 0, an AI character will also abandon the focus
#

#################
# FOCUSES		#
#################

focus_ch_pride = {
	type = character

	modifier_name = CHILDHOOD_FOCUS_PRIDE

	potential_traits = {
		haughty
		brooding
	}

	potential = {
		age < 12
	}

	# Focuses have no success conditions
	success = {
		always = no
	}

	abort = {
		age >= 12
	}

	# AI Pick chance
	chance = {
		factor = 100
	}
}

focus_ch_humility = {
	type = character

	modifier_name = CHILDHOOD_FOCUS_HUMILITY

	potential_traits = {
		timid
		affectionate
	}

	potential = {
		age < 12
	}

	# Focuses have no success conditions
	success = {
		always = no
	}

	abort = {
		age >= 12
	}

	# AI Pick chance
	chance = {
		factor = 100
	}
}

focus_ch_duty = {
	type = character

	modifier_name = CHILDHOOD_FOCUS_DUTY

	potential_traits = {
		conscientious
	}

	potential = {
		age < 12
	}

	# Focuses have no success conditions
	success = {
		always = no
	}

	abort = {
		age = 12
	}

	# AI Pick chance
	chance = {
		factor = 100
	}
}

focus_ch_etiquette = {
	type = character

	modifier_name = CHILDHOOD_FOCUS_ETIQUETTE

	potential_traits = {
		playful
		indolent
	}

	potential = {
		age < 12
	}

	# Focuses have no success conditions
	success = {
		always = no
	}

	abort = {
		age >= 12
	}

	# AI Pick chance
	chance = {
		factor = 100
	}
}

focus_ch_thrift = {
	type = character

	modifier_name = CHILDHOOD_FOCUS_THRIFT

	potential_traits = {
		curious
		fussy
	}

	potential = {
		age < 12
	}

	# Focuses have no success conditions
	success = {
		always = no
	}

	abort = {
		age >= 12
	}

	# AI Pick chance
	chance = {
		factor = 100
	}
}

focus_ch_faith = {
	type = character

	modifier_name = CHILDHOOD_FOCUS_FAITH

	potential_traits = {
		idolizer
	}

	potential = {
		age < 12
	}

	# Focuses have no success conditions
	success = {
		always = no
	}

	abort = {
		age >= 12
	}

	# AI Pick chance
	chance = {
		factor = 100

		trigger = {
			is_ruler = no
			NOT = { religion = liege }
		}
	}
}

focus_ch_struggle = {
	type = character

	modifier_name = CHILDHOOD_FOCUS_STRUGGLE

	potential_traits = {
		rowdy
		willful
	}

	potential = {
		age < 12
	}

	# Focuses have no success conditions
	success = {
		always = no
	}

	abort = {
		age >= 12
	}

	# AI Pick chance
	chance = {
		factor = 100

		mult_modifier = {
			factor = 10
			liege = {
				is_nomadic = yes
			}
		}
	}
}

focus_ch_heritage = {
	type = character

	modifier_name = CHILDHOOD_FOCUS_HERITAGE

	potential = {
		age < 12
	}

	# Focuses have no success conditions
	success = {
		always = no
	}

	abort = {
		age >= 12
	}

	# AI Pick chance
	chance = {
		factor = 500

		trigger = {
			is_ruler = no

			NOR = {
				culture = liege
				religion = liege
			}
		}
	}
}