################################################################################
#
# Artifacts 工藝品
# https://ck2.paradoxwikis.com/Artifact_modding
#
################################################################################
#
# 在2.7增加的新系統
# 它擁有經典RPG概念的財寶和可裝備欄位
# 參考：..\common\artifacts\*
#
################################################################################
########################################
# 結構
########################################
loot_axe = {
	martial = 2
	quality = 2
	flags = { easter_egg }
	stacking = no
	picture = "GFX_plus2_axe"
	slot = weapon
}

magnum_opus_theurgy_ritual_1 = {
	learning = 1
	quality = 1
	flags = { society hermetics lore theurgy book }
	active = { 
		OR = {
			learning = 12
			society_member_of = hermetics 
		}
		custom_tooltip = {
			text = NO_HIGHER_QUALITY_VERSION_ACTIVE
			NOT = {
				AND = {
					OR = {
						learning = 16
						society_member_of = hermetics
					}
					any_artifact = {
						artifact_type = magnum_opus_theurgy_ritual_2
					}
				}
			}
			NOT = {
				AND = {
					OR = {
						learning = 20
						society_member_of = hermetics
					}
					any_artifact = {
						artifact_type = magnum_opus_theurgy_ritual_3
					}
				}
			}
			NOT = {
				AND = {
					OR = {
						learning = 25
						society_member_of = hermetics
					}
					any_artifact = {
						artifact_type = magnum_opus_theurgy_ritual_4
					}
				}
			}
		}
	}
	
	allowed_gift = {
		always = no
	}
	
	stacking = no
	picture = "GFX_book_red"
}

########################################
# 參數
########################################
quality
質量
類型：整數
例子：quality = 2

flags
旗標。可以使用 has_artifact_flag 檢查旗標
類型：字串
例子：flags = { chest hermetics very_rare }

active
啟動條件（參考：is_artifact_active）
沒有 active 參數的被判斷為總是啟動，即使沒人擁有。有 active 參數且沒人擁有的被判斷沒有啟動
類型：條件
例子：active = { is_adult = yes }

stacking
可以堆疊（no為每個角色只能擁有一個，預設為yes）
類型：布爾值
例子：

indestructible
不可摧毀。預設為yes（參考：destroy_artifact）
類型：布爾值
例子：

picture
圖像（參考：..\interface\domestic_treasury.gfx 和 ..\gfx\interface\inventory\artifacts\*）
需要兩張用作大和小的圖像。118x118px 和 59x59px
類型：gfx
例子：picture = "GFX_strange_chest"

<modifier>
工藝品在裝備時的修飾語
類型：角色修飾語
例子：
martial = 2
monthly_character_piety = -2
tech_growth_modifier = 0.05
combat_rating = 2

slot
欄位。裝備工藝品的相關欄位。可以動態增加新的欄位
類型：字串
例子：slot = crown

allowed_gift
允許贈送的條件
類型：條件
例子：allowed_gift = { religion_group = christian }

########################################
# 本地化
########################################
<artifact_name>
工藝品名稱

<artifact_name>_desc
工藝品描述

<slot>
裝備欄位名稱

################################################################################
#
# Slots 欄位
#
################################################################################
工藝品可以裝備或不裝備。裝備的工藝品受到動態 slots 限制：
slots = {
	weapon = 1
	ceremonial_weapon = 1
	scepter = 1
	crown = 1
	wrist = 1
	neck = 1
	torso = 1
}

################################################################################
#
# Artifact spawns
# 判斷在遊戲開始時工藝品的產生，不再這裏的工藝品則不會自動產生
# 參考：..\common\artifact_spawns\*
#
################################################################################
########################################
# 結構
########################################
iron_crown_of_lombardy = {
    max_amount = 1
    spawn_date = -1.1.1
	
	spawn_chance = {
		value = 100
		modifier = {
			factor = 0
			NOT = { has_dlc = "Mystics" }
		}
	}
    
    weight = {
		value = 0
		additive_modifier = {
			value = 100
			primary_title = {
				title = k_lombardy
			}
			NOT = { year = 1066 }
		}
		additive_modifier = {
			value = 100
			primary_title = {
				title = e_hre
			}
			year = 1066
		}
	}
    artifacts = {
        iron_crown_of_lombardy = {
            value = 1
        }
    }
}

########################################
# 參數
########################################
max_amount
最大數量。預設為4294967295
類型：整數
例子：max_amount = 1

spawn_date
創作日期（有可能在未來）。產生機率在 spawn_chance 處理。1.1.1或之前的日期將顯示為未知
類型：日期
例子：spawn_date = -1.1.1

spawn_chance
MTTH。工藝品的產生機率。範圍是0-100。預設為總是產生
類型：百分比
例子：
spawn_chance = {
	value = 50
}

weight
MTTH。判斷潛在的工藝品擁有者分數，用於隨機化獲得工藝品。預設為每個角色都有相同機率
類型：
例子：
weight = {
	value = 0
	additive_modifier = {
		value = 100
		religion_group = christian
	}
}

artifacts
判斷產生哪一件工藝品（需本地化）
類型：從句
例子：
# 50% chance that the person will get a golden_platypus
artifacts ={
	golden_platypus = {
		value = 1
	}
	crystal_platypus = {
		value = 1
	}
}

########################################
# 本地化
########################################
<artifact_name>
工藝品名稱

<artifact_name>_desc
工藝品描述
