﻿MAR_christian_artifact_template = {
	can_equip = {
		always = yes
	}

	# can this character benefit from the full modifiers of the artifact?
	can_benefit = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = root }
	}

	can_reforge = {
		is_christian_trigger = yes
	}

	# if a given character does not pass the "can_benefit" trigger then this modifier will be applied instead.
	fallback = {
		monthly_prestige = 0.3
		court_grandeur_baseline_add = 3
		general_opinion = 3
	}

	unique = yes
}

MAR_islam_artifact_template = {
	can_equip = {
		always = yes
	}

	# can this character benefit from the full modifiers of the artifact?
	can_benefit = {
		islam_or_syncretic_with_islam_trigger = { CHARACTER = root }
	}

	can_reforge = {
		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_prestige = 0.3
		court_grandeur_baseline_add = 3
		general_opinion = 3
	}

	unique = yes
}

MAR_buddhism_artifact_template = {
	can_equip = {
		always = yes
	}

	# can this character benefit from the full modifiers of the artifact?
	can_benefit = {
		has_religion = religion:buddhism_religion
	}

	can_reforge = {
		has_religion = religion:buddhism_religion
	}

	# if a given character does not pass the "can_benefit" trigger then this modifier will be applied instead.
	fallback = {
		monthly_prestige = 0.3
		court_grandeur_baseline_add = 3
		general_opinion = 3
	}

	unique = yes
}

MAR_branch_zoroastr_template = {
	can_equip = {
		always = yes
	}

	# can this character benefit from the full modifiers of the artifact?
	can_benefit = {
		has_religion = religion:zoroastrianism_religion
	}

	can_reforge = {
		has_religion = religion:zoroastrianism_religion
	}

	# if a given character does not pass the "can_benefit" trigger then this modifier will be applied instead.
	fallback = {
		monthly_prestige = 0.3
		court_grandeur_baseline_add = 3
		general_opinion = 3
	}

	unique = yes
}

MAR_branch_germanic_template = {
	can_equip = {
		always = yes
	}

	# can this character benefit from the full modifiers of the artifact?
	can_benefit = {
		OR = {
			has_religion = religion:germanic_religion
			has_religion = religion:slavic_religion
		}
	}

	can_reforge = {
		OR = {
			has_religion = religion:germanic_religion
			has_religion = religion:slavic_religion
		}
	}

	# if a given character does not pass the "can_benefit" trigger then this modifier will be applied instead.
	fallback = {
		monthly_prestige = 0.3
		court_grandeur_baseline_add = 3
		general_opinion = 3
	}

	unique = yes
}

MAR_branch_germanic_template_skofnung = {
	can_equip = {
		always = yes
	}

	# can this character benefit from the full modifiers of the artifact?
	can_benefit = {
		OR = {
			has_religion = religion:germanic_religion
			has_religion = religion:slavic_religion
		}
	}

	can_reforge = {
		OR = {
			has_religion = religion:germanic_religion
			has_religion = religion:slavic_religion
		}
	}

	# if a given character does not pass the "can_benefit" trigger then this modifier will be applied instead.
	fallback = {
		monthly_prestige = 0.3
		court_grandeur_baseline_add = 3
		general_opinion = 3
		prowess = 2
	}

	unique = yes
}

MAR_branch_hinduism_template = {
	can_equip = {
		always = yes
	}

	# can this character benefit from the full modifiers of the artifact?
	can_benefit = {
		has_religion = religion:hinduism_religion
	}

	can_reforge = {
		has_religion = religion:hinduism_religion
	}

	# if a given character does not pass the "can_benefit" trigger then this modifier will be applied instead.
	fallback = {
		monthly_prestige = 0.3
		court_grandeur_baseline_add = 3
		general_opinion = 3
	}

	unique = yes
}

MAR_branch_buddhism_template = {
	can_equip = {
		always = yes
	}

	# can this character benefit from the full modifiers of the artifact?
	can_benefit = {
		has_religion = religion:buddhism_religion
	}

	can_reforge = {
		has_religion = religion:buddhism_religion
	}

	# if a given character does not pass the "can_benefit" trigger then this modifier will be applied instead.
	fallback = {
		monthly_prestige = 0.3
		court_grandeur_baseline_add = 3
		general_opinion = 3
		learning = 1
	}

	unique = yes
}

MAR_branch_west_afr_template = {
	can_equip = {
		always = yes
	}

	# can this character benefit from the full modifiers of the artifact?
	can_benefit = {
		has_religion = religion:west_african_religion
	}

	can_reforge = {
		has_religion = religion:west_african_religion
	}

	# if a given character does not pass the "can_benefit" trigger then this modifier will be applied instead.
	fallback = {
		monthly_prestige = 0.3
		court_grandeur_baseline_add = 3
		general_opinion = 3
	}

	unique = yes
}

MAR_demonic_template = {
	can_equip = {
		always = yes
	}

	# can this character benefit from the full modifiers of the artifact?
	can_benefit = {
		OR = {
			piety_level < 1
			has_trait = witch
			has_trait = possessed
			any_secret = { secret_type = secret_witch }
			AND = {
				has_trait = lunatic
				piety_level < 3
			}
			AND = {
				has_trait = eccentric
				piety_level < 4
			}
		}
	}

	# if a given character does not pass the "can_benefit" trigger then this modifier will be applied instead.
	fallback = {
		monthly_lifestyle_xp_gain_mult = 0.15
		zealot_opinion = -40
		clergy_opinion = -60
		religious_head_opinion = -100
		monthly_piety_gain_mult = -0.5
	}

	unique = yes
}

MAR_voynich_template = {
	can_equip = {
		always = yes
	}

	# can this character benefit from the full modifiers of the artifact?
	can_benefit = {
		learning >= 30
	}

	can_reforge = {
		always = yes
	}

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

	unique = yes
}