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

	# Create the artifact
	create_artifact = {	
		name = jeanne_ashes_name
		creator = scope:creator
		description = jeanne_ashes_description
		type = pedestal
		visuals = reliquary
		wealth = scope:wealth
		quality = scope:quality
		modifier = jeanne_ashes_modifier
		save_scope_as = newly_created_ashes
	}

	scope:newly_created_ashes = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = jeanne_ashes
		add_scaled_artifact_modifier_devotion_effect = yes
	}
}