﻿create_artifact_walpurgas_oil_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_common = yes

	# Create the artifact
	create_artifact = {
		name = artifact_walpurgas_oil_name
		description = artifact_walpurgas_oil_description
		template = christian_relic_template
		type = elixir
		visuals = walpurgas_oil
		wealth = scope:wealth
		quality = scope:quality
		history = {
			type = created_before_history
		}
		modifier = walpurgas_oil_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

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