﻿namespace = historical_artifacts

historical_artifacts.999 = {
	scope = none
	hidden = yes

	immediate = {
		if = {
			limit = {
				has_dlc_feature = royal_court
				exists = title:d_moravia.holder
			}
     		title:d_moravia.holder = {
     			create_artifact_crown_wenceslas_effect = { OWNER = this }
     			scope:newly_created_artifact = {
     				equip_artifact_to_owner = yes
     			}
     		}
		}
		if = {
			limit = {
				has_dlc_feature = royal_court
				exists = title:k_sweden.holder
			}
			title:k_sweden.holder = {
				create_artifact_codex_gigas_effect = { OWNER = this }
				scope:newly_created_artifact = {
					equip_artifact_to_owner = yes
				}
			}
		}
		if = {
			limit = {
				has_dlc_feature = royal_court
				exists = title:d_bohemia.holder
			}
			title:d_bohemia.holder = {
				create_artifact_sword_wenceslas_effect = { OWNER = this }
				scope:newly_created_artifact = {
					equip_artifact_to_owner = yes
				}
			}
		}
		title:d_bacs.holder = {
			create_artifact_crown_stephen_effect = { OWNER = this }
			scope:newly_created_artifact = {
				equip_artifact_to_owner = yes
			}
		}
		title:k_france.holder = {
			create_artifact_crown_charlemagne_effect = { OWNER = this }
			scope:newly_created_artifact = {
				equip_artifact_to_owner = yes
			}
		}
		title:e_nistrenia.holder = {
			create_artifact_pearl_crown_effect = { OWNER = this }
			scope:newly_created_artifact = {
				equip_artifact_to_owner = yes
			}
		}
		title:e_britannia.holder = {
			create_artifact_st_edwards_crown_effect = { OWNER = this }
			scope:newly_created_artifact = {
				equip_artifact_to_owner = yes
			}
		}
		if = {
			limit = {
				has_dlc_feature = royal_court
				exists = character:russia_arkady_medvedev
			}
			character:russia_arkady_medvedev = {
				create_artifact_ak_mace_effect = { OWNER = this }
				scope:newly_created_artifact = {
					equip_artifact_to_owner = yes
				}
			}
		}
	}
}