﻿has_special_heritage = {
	group = "main_group"
	is_available_on_create = {
		OR = {
			has_doctrine = special_faith_has_germanic_heritage
			has_doctrine = special_faith_stadfast_heritage
		}
	}
	
	# Nordic Similarity
	special_faith_has_germanic_heritage = {
		is_shown = {
			has_doctrine = special_faith_has_germanic_heritage
		}
		piety_cost = {
			value = 2000
		}
		parameters = {
			hostility_override_special_faith_has_germanic_heritage = 0
			hostility_override_special_faith_stadfast_heritage = 1
		}
	}
	
	# Staðfast
	special_faith_stadfast_heritage = {
		is_shown = {
			OR = {
				has_doctrine = special_faith_has_germanic_heritage
				has_doctrine = special_faith_stadfast_heritage
			}
		}
		piety_cost = {
				value = 2000
		}
		parameters = {
			fervor_per_holy_site = 1
			hostility_override_special_faith_has_germanic_heritage = 2
			hostility_override_special_faith_stadfast_heritage = 3
		}
	}

	special_faith_no_special_heritage = {
		is_shown = {
			OR = {
				has_doctrine = special_faith_has_germanic_heritage
				has_doctrine = special_faith_stadfast_heritage
			}
		}
		piety_cost = {
				value = 1000
		}
		parameters = {
			no_effect_removed_upon_creation = yes
		}
	}
	
	# hidden heritage (currently not working as intended )
	special_faith_christian_heritage = {
		is_shown = {
			has_doctrine = special_faith_has_germanic_heritage
			has_doctrine = special_faith_stadfast_heritage
		} 
		piety_cost = {
			value = 200000
		}
		parameters = {
			hostility_override_special_doctrine_is_christian_faith = 2
			#For loc:
			is_christian_faith_bilateral_loc_override = 2
			christian_syncretic_actor_opinion_active = yes
			
			#Sync this to syncretic_mutual_opinion_bonus_value
			opinion_of_christian_syncretic_recipient_opinion_active = 30
			
			# does not work faith inter marriage
			# hostility_others = 0 

			hostility_override_special_faith_has_germanic_heritage = 3
			hostility_override_special_faith_stadfast_heritage = 3
		}
	}

	# hidden heritage 
	special_faith_traitor_heritage = {
		is_shown = {
			has_doctrine = special_faith_has_germanic_heritage
			has_doctrine = special_faith_stadfast_heritage
		} 
		piety_cost = {
			value = 200000
		}
		parameters = {
			hostility_override_special_faith_has_germanic_heritage = 3
			hostility_override_special_faith_stadfast_heritage = 3
			mendicant_preachers_conversion_active = yes
			tenet_adaptive_conversion_resistance = yes
		}
	}
}