﻿MAR_christian_artifact_template = {
	can_equip = {
		always = yes
	}

	# can this character benefit from the full modifiers of the artifact?
	can_benefit = {
		christian_artifact_access_trigger = yes
	}

	is_holy_relic = {
		OR = {
			religion = religion:christianity_religion
			main_rite = { rite_has_parameter = christian_syncretic_actor }
		}
	}

	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 = {
		islamic_artifact_access_trigger = yes
	}

	is_holy_relic = {
		OR = {
			religion = religion:islam_religion
			main_rite = { rite_has_parameter = islamic_syncretic_actor }
		}
	}

	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
	}

	is_holy_relic = {
		OR = {
			religion = religion:buddhism_religion
			main_rite = { rite_has_parameter = eastern_syncretic_actor }
		}
	}

	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 = {
		zoroastrian_or_syncretic_with_eastern_trigger = { CHARACTER = root }
	}

	is_holy_relic = {
		OR = {
			religion = religion:zoroastrianism_religion
			main_rite = { rite_has_parameter = eastern_syncretic_actor }
		}
	}

	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
		}
	}

	is_holy_relic = {
		OR = {
			religion = religion:germanic_religion
			religion = religion:slavic_religion
			main_rite = { rite_has_parameter = unreformed_syncretic_actor }
		}
	}

	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
		}
	}

	is_holy_relic = {
		OR = {
			religion = religion:germanic_religion
			religion = religion:slavic_religion
			main_rite = { rite_has_parameter = unreformed_syncretic_actor }
		}
	}

	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 = {
		hindu_or_syncretic_with_eastern_trigger = { CHARACTER = root }
	}

	is_holy_relic = {
		OR = {
			religion = religion:hinduism_religion
			main_rite = { rite_has_parameter = eastern_syncretic_actor }
		}
	}

	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
	}

	is_holy_relic = {
		OR = {
			religion = religion:buddhism_religion
			main_rite = { rite_has_parameter = eastern_syncretic_actor }
		}
	}

	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
	}

	is_holy_relic = {
		OR = {
			religion = religion:west_african_religion
			main_rite = { rite_has_parameter = unreformed_syncretic_actor }
		}
	}

	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
}

MAR_celestial_tablet_template = {
	can_equip = {
		always = yes
	}

	can_benefit = {
		has_government = celestial_government
	}

	can_reforge = {
		has_government = celestial_government
	}

	fallback = {
		monthly_prestige = 0.3
		court_grandeur_baseline_add = 3
		general_opinion = 3
	}

	unique = yes
}

MAR_slavic_pagan_artifact_template = {
	can_equip = {
		always = yes
	}

	can_benefit = {
		OR = {
			has_religion = religion:slavic_religion
			has_religion = religion:baltic_religion
		}
	}

	is_holy_relic = {
		OR = {
			religion = religion:slavic_religion
			religion = religion:baltic_religion
			main_rite = { rite_has_parameter = unreformed_syncretic_actor }
		}
	}

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

	fallback = {
		monthly_prestige = 0.3
		court_grandeur_baseline_add = 2
		general_opinion = 2
		clergy_opinion = -5
	}

	unique = yes
}

MAR_baltic_pagan_artifact_template = {
	can_equip = {
		always = yes
	}

	can_benefit = {
		OR = {
			has_religion = religion:baltic_religion
			has_religion = religion:slavic_religion
			has_religion = religion:finno_ugric_religion
		}
	}

	is_holy_relic = {
		OR = {
			religion = religion:baltic_religion
			religion = religion:slavic_religion
			religion = religion:finno_ugric_religion
			main_rite = { rite_has_parameter = unreformed_syncretic_actor }
		}
	}

	can_reforge = {
		OR = {
			has_religion = religion:baltic_religion
			has_religion = religion:slavic_religion
			has_religion = religion:finno_ugric_religion
		}
	}

	fallback = {
		monthly_prestige = 0.25
		court_grandeur_baseline_add = 2
		general_opinion = 2
	}

	unique = yes
}

MAR_ambiguous_pagan_relic_template = {
	can_equip = {
		always = yes
	}

	can_benefit = {
		OR = {
			has_religion = religion:slavic_religion
			has_religion = religion:baltic_religion
			has_religion = religion:finno_ugric_religion
			has_religion = religion:germanic_religion
		}
	}

	is_holy_relic = {
		OR = {
			religion = religion:slavic_religion
			religion = religion:baltic_religion
			religion = religion:finno_ugric_religion
			religion = religion:germanic_religion
			main_rite = { rite_has_parameter = unreformed_syncretic_actor }
		}
	}

	can_reforge = {
		always = yes
	}

	fallback = {
		monthly_prestige = 0.25
		prowess = 1
	}

	unique = yes
}

MAR_orthodox_slavic_book_template = {
	can_equip = {
		always = yes
	}

	can_benefit = {
		christian_artifact_access_trigger = yes
	}

	is_holy_relic = {
		OR = {
			religion = religion:christianity_religion
			main_rite = { rite_has_parameter = christian_syncretic_actor }
		}
	}

	can_reforge = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = root }
	}

	fallback = {
		monthly_prestige = 0.25
		court_grandeur_baseline_add = 2
		learning = 1
	}

	unique = yes
}

# STAGE8A_JAPAN_KOREA_START
MAR_japanese_artifact_template = {
	can_equip = {
		always = yes
	}

	can_benefit = {
		OR = {
			culture = { has_cultural_pillar = heritage_japonic }
			has_religion = religion:shintoism_religion
		}
	}

	can_reforge = {
		OR = {
			culture = { has_cultural_pillar = heritage_japonic }
			has_religion = religion:shintoism_religion
		}
	}

	fallback = {
		monthly_prestige = 0.25
		court_grandeur_baseline_add = 2
		general_opinion = 2
	}

	unique = yes
}

MAR_japanese_warrior_artifact_template = {
	can_equip = {
		always = yes
	}

	can_benefit = {
		OR = {
			culture = { has_cultural_pillar = heritage_japonic }
			has_religion = religion:shintoism_religion
		}
	}

	can_reforge = {
		OR = {
			culture = { has_cultural_pillar = heritage_japonic }
			has_religion = religion:shintoism_religion
		}
	}

	fallback = {
		monthly_prestige = 0.25
		martial = 1
		prowess = 1
	}

	unique = yes
}

MAR_japanese_court_artifact_template = {
	can_equip = {
		always = yes
	}

	can_benefit = {
		OR = {
			culture = { has_cultural_pillar = heritage_japonic }
			has_religion = religion:shintoism_religion
		}
	}

	can_reforge = {
		OR = {
			culture = { has_cultural_pillar = heritage_japonic }
			has_religion = religion:shintoism_religion
		}
	}

	fallback = {
		monthly_prestige = 0.25
		court_grandeur_baseline_add = 2
		stewardship = 1
	}

	unique = yes
}

MAR_korean_artifact_template = {
	can_equip = {
		always = yes
	}

	can_benefit = {
		OR = {
			culture = { has_cultural_pillar = heritage_korean }
			culture = { has_cultural_pillar = heritage_buyeo }
			has_religion = religion:muism_religion
		}
	}

	can_reforge = {
		OR = {
			culture = { has_cultural_pillar = heritage_korean }
			culture = { has_cultural_pillar = heritage_buyeo }
			has_religion = religion:muism_religion
		}
	}

	fallback = {
		monthly_prestige = 0.25
		court_grandeur_baseline_add = 2
		general_opinion = 2
	}

	unique = yes
}

MAR_korean_buddhist_artifact_template = {
	can_equip = {
		always = yes
	}

	can_benefit = {
		OR = {
			has_religion = religion:buddhism_religion
			culture = { has_cultural_pillar = heritage_korean }
			culture = { has_cultural_pillar = heritage_buyeo }
		}
	}

	is_holy_relic = {
		OR = {
			religion = religion:buddhism_religion
			main_rite = { rite_has_parameter = eastern_syncretic_actor }
		}
	}

	can_reforge = {
		OR = {
			has_religion = religion:buddhism_religion
			culture = { has_cultural_pillar = heritage_korean }
			culture = { has_cultural_pillar = heritage_buyeo }
		}
	}

	fallback = {
		monthly_prestige = 0.2
		monthly_piety = 0.15
		learning = 1
	}

	unique = yes
}

MAR_korean_scholarly_artifact_template = {
	can_equip = {
		always = yes
	}

	can_benefit = {
		OR = {
			culture = { has_cultural_pillar = heritage_korean }
			culture = { has_cultural_pillar = heritage_buyeo }
		}
	}

	can_reforge = {
		OR = {
			culture = { has_cultural_pillar = heritage_korean }
			culture = { has_cultural_pillar = heritage_buyeo }
		}
	}

	fallback = {
		monthly_prestige = 0.2
		learning = 1
		stewardship = 1
	}

	unique = yes
}
# STAGE8A_JAPAN_KOREA_END
