slopfixholystiyeandinteraction

This commit is contained in:
Greekman 2026-12-04 16:24:49 +00:00
parent 9058ad6a22
commit 8d9f3e717d
9 changed files with 605 additions and 806 deletions

View file

@ -59,7 +59,7 @@ historical_artifacts.0023 = {
}
NOT = { has_character_flag = seeded_relic }
}
create_artifact_pedestal_christian_relic_effect_hist = { OWNER = this }
create_artifact_pedestal_reliquary_christian_effect = { OWNER = this }
add_character_flag = {
flag = seeded_relic
days = 1
@ -74,7 +74,7 @@ historical_artifacts.0023 = {
faith.religion = religion:islam_religion
NOT = { has_character_flag = seeded_relic }
}
create_artifact_pedestal_islamic_relic_effect_hist = { OWNER = this }
create_artifact_pedestal_reliquary_islam_effect = { OWNER = this }
add_character_flag = {
flag = seeded_relic
days = 1
@ -89,7 +89,7 @@ historical_artifacts.0023 = {
faith.religion = religion:buddhism_religion
NOT = { has_character_flag = seeded_relic }
}
create_artifact_pedestal_buddhism_relic_effect_hist = { OWNER = this }
create_artifact_pedestal_reliquary_buddhism_effect = { OWNER = this }
add_character_flag = {
flag = seeded_relic
days = 1
@ -104,7 +104,7 @@ historical_artifacts.0023 = {
faith.religion = religion:hinduism_religion
NOT = { has_character_flag = seeded_relic }
}
create_artifact_pedestal_branch_relic_hinduism_effect = { OWNER = this }
create_starting_court_branch_relic_effect = { BRANCH = kalpavriksha TEMPLATE = branch_hinduism_template }
add_character_flag = {
flag = seeded_relic
days = 1
@ -120,7 +120,7 @@ historical_artifacts.0023 = {
highest_held_title_tier >= tier_county
NOT = { has_character_flag = seeded_relic }
}
create_artifact_pedestal_branch_relic_germanic_effect = { OWNER = this }
create_starting_court_branch_relic_effect = { BRANCH = uppsala TEMPLATE = branch_germanic_template }
add_character_flag = {
flag = seeded_relic
days = 1
@ -139,7 +139,7 @@ historical_artifacts.0023 = {
faith:chernobozhye = {
random_faith_ruler = {
limit = { highest_held_title_tier >= tier_county }
create_artifact_pedestal_branch_relic_slavic_effect = { OWNER = this }
create_starting_court_branch_relic_effect = { BRANCH = alatyr TEMPLATE = branch_slavic_template }
}
}
}
@ -1411,80 +1411,5 @@ historical_artifacts.0100 = {
historical_artifacts.0050 = {
scope = none
hidden = yes
immediate = {
every_religion_global = {
every_faith = {
save_scope_as = relic_faith
# Eminent holy sites get the higher-rarity dispatcher.
every_eminent_holy_site = {
save_scope_as = relic_site
holy_site_county = {
if = {
limit = {
exists = holder
holder.faith = scope:relic_faith
}
holder = { save_scope_as = relic_owner }
create_starting_holy_relic_eminent_effect = yes
}
}
}
# Regular holy sites get the lower-rarity dispatcher.
every_holy_site = {
is_eminent = no
save_scope_as = relic_site
holy_site_county = {
if = {
limit = {
exists = holder
holder.faith = scope:relic_faith
}
holder = { save_scope_as = relic_owner }
create_starting_holy_relic_regular_effect = yes
}
}
}
}
}
# Pass 2: Tolerated eminent-site relics.
every_religion_global = {
every_faith = {
save_scope_as = relic_faith
if = {
limit = {
num_county_followers >= 3 # only check for faiths that are somewhat alive
}
every_eminent_holy_site = {
limit = {
holy_site_has_artifact = no
}
save_scope_as = relic_site
holy_site_county = {
if = {
limit = {
exists = holder
holder.faith = {
faith_hostility_level = {
target = scope:relic_faith
value <= faith_astray_level
}
}
}
# A temporary creator lets the relic inherit their faith
ordered_ruler = {
faith_filter = scope:relic_faith
order_by = highest_held_title_tier
max = 1
save_scope_as = relic_owner
create_starting_holy_relic_eminent_effect = yes
}
}
}
}
}
}
}
}
immediate = { initialize_starting_holy_relics_effect = yes }
}