﻿# various conditions to restrict the use of artifacts

# general_unique_template

seljuk_sword_template = {
	can_equip = {
		always = yes

		#scope:artifact = { has_variable = saint_bone_faith }
		#saintly_bones_faith_trigger = yes

		#scope:artifact = { exists = var:religion }
		#has_religion = scope:artifact.var:religion
	}

	# can this character benefit from the full modifiers of the artifact?
	# various scripted triggers, e.g.: islam_or_syncretic_with_islam_trigger = { CHARACTER = root }
	can_benefit = {
		scope:artifact = { exists = var:dynasty } # see: banner_dynasty
		dynasty = scope:artifact.var:dynasty
	}

	# if a given character does not pass the "can_benefit" trigger, then this modifier will be applied instead
	fallback = {
		monthly_prestige = 0.5
		court_grandeur_baseline_add = 4
	}

	unique = yes # special visual border
}

almohad_book_template = {
	can_equip = {
		always = yes
	}

	# can this character benefit from the full modifiers of the artifact?
	# various scripted triggers, e.g.: islam_or_syncretic_with_islam_trigger = { CHARACTER = root }
	can_benefit = {
		islam_or_syncretic_with_islam_trigger = { CHARACTER = root }
	}

	# if a given character does not pass the "can_benefit" trigger, then this modifier will be applied instead
	fallback = {
		monthly_piety = 0.1
		court_grandeur_baseline_add = 4
	}

	unique = yes # special visual border
}

marco_polo_book_template = {
	can_equip = {
		always = yes
	}

	# can this character benefit from the full modifiers of the artifact?
	# various scripted triggers, e.g.: islam_or_syncretic_with_islam_trigger = { CHARACTER = root }
	can_benefit = {
		always = yes
	}

	# if a given character does not pass the "can_benefit" trigger, then this modifier will be applied instead
	fallback = {
		monthly_prestige = 0.1
	}

	unique = yes # special visual border
}