##################################################
# #BP1 Templates

#doppelganger
bp1_doppelganger_template = {
	#General
	age = root.age
	faith = root.capital_province.faith
	culture = root.culture # Ensure they have the same ethnicity as root
	dynasty = none
	#Misc
	random_traits = yes
	gender_female_chance = root_self_based_female_chance

	after_creation = {
		copy_inheritable_appearance_from = root
		set_culture = root.capital_province.culture # Make them a local
		random_list = { # We generally want there to be a chance that either you or a spouse falls in love with this person
			50 = {
				# Try to set the sexuality to be the same as ROOT's so they are likely to cause drama with lovers
				if = {
					limit = {
						root = { has_sexuality = asexual }
					}
					set_sexuality = asexual
				}
				else_if = {
					limit = {
						root = { has_sexuality = bisexual }
					}
					set_sexuality = bisexual
				}
				else_if = {
					limit = {
						root = { has_sexuality = heterosexual }
					}
					set_sexuality = heterosexual
				}
				else_if = {
					limit = {
						root = { has_sexuality = homosexual }
					}
					set_sexuality = homosexual
				}
			}
			50 = {
				# Make them a threat to everyone
				set_sexuality = bisexual
			}
		}
		if = {
			limit = {
				root = { has_trait = beauty_good_2 }
			}
			add_trait = beauty_good_3
		}
		else_if = {
			limit = {
				root = { has_trait = beauty_good_1 }
			}
			add_trait = beauty_good_2
		}
		else_if = {
			limit = {
				root = { has_trait = beauty_good_3 }
			}
			random_list = {
				33 = { add_trait = beauty_bad_1 }
				33 = { add_trait = beauty_bad_2 }
				33 = { add_trait = beauty_bad_3 }
			}
		}
		else = {
			add_trait = beauty_good_1
		}
	}
}

#beautiful bisexual
bp1_bisexual_partner_template = {
	#General
	age = { 20 35 }
	faith = root.faith
	culture = root.culture
	dynasty = none
	#Misc
	random_traits = yes
	gender_female_chance = root_self_based_female_chance

	after_creation = {
		set_sexuality = bisexual
		random_list = {
			20 = {
				add_trait = beauty_good_3
			}
			30 = {
				add_trait = beauty_good_2
			}
			50 = {
				add_trait = beauty_good_1
			}
		}
	}
}
