﻿create_artifact_holy_thorn_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	# Not really used, but if we don't set the scopes we get errors in the feature selection
	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {
		name = artifact_holy_thorn_name
		description = artifact_holy_thorn_description
		template = christian_relic_template
		type = pedestal
		visuals = holy_thorn
		wealth = scope:wealth
		quality = scope:quality
		history = {
			type = created_before_history
		}
		modifier = holy_thorn_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = holy_thorn
		set_variable = christian_relic
		save_scope_as = epic
		set_variable = {
			name = relic
			value = flag:christian
		}
	}
}

create_artifact_splinter_of_the_true_cross_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	# Not really used, but if we don't set the scopes we get errors in the feature selection
	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {
		name = artifact_splinter_of_the_true_cross_name
		description = artifact_splinter_of_the_true_cross_description
		template = christian_relic_template
		type = pedestal
		visuals = splinter_of_the_true_cross
		wealth = scope:wealth
		quality = scope:quality
		history = {
			type = created_before_history
		}
		modifier = splinter_of_the_true_cross_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = splinter_of_the_true_cross
		set_variable = christian_relic
		save_scope_as = epic
		set_variable = {
			name = relic
			value = flag:christian
		}
	}
}

create_artifact_holy_blood_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	# Not really used, but if we don't set the scopes we get errors in the feature selection
	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {
		name = artifact_holy_blood_name
		description = artifact_holy_blood_description
		template = christian_relic_template
		type = pedestal
		visuals = holy_blood
		wealth = scope:wealth
		quality = scope:quality
		history = {
			type = created_before_history
		}
		modifier = holy_blood_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = holy_blood
		set_variable = christian_relic
		save_scope_as = epic
		set_variable = {
			name = relic
			value = flag:christian
		}
	}
}

create_artifact_holy_lance_antiochia_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	# Not really used, but if we don't set the scopes we get errors in the feature selection
	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {
		name = artifact_holy_lance_name
		description = artifact_holy_lance_description
		template = christian_relic_template
		type = pedestal
		visuals = holy_lance
		wealth = scope:wealth
		quality = scope:quality
		history = {
			type = created_before_history
		}
		modifier = holy_lance_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = holy_lance
		set_variable = christian_relic
		save_scope_as = epic
		set_variable = {
			name = relic
			value = flag:christian
		}
	}
}

create_artifact_holy_tears_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	# Not really used, but if we don't set the scopes we get errors in the feature selection
	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {
		name = artifact_holy_tears_name
		description = artifact_holy_tears_description
		template = christian_relic_template
		type = pedestal
		visuals = holy_tears
		wealth = scope:wealth
		quality = scope:quality
		history = {
			type = created_before_history
		}
		modifier = holy_tears_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = holy_tears
		set_variable = christian_relic
		save_scope_as = epic
		set_variable = {
			name = relic
			value = flag:christian
		}
	}
}
