Skip to content

Commit 644fad3

Browse files
authored
Check if k_khorasan holder exists before giving them an artifact (#3112)
1 parent 002988a commit 644fad3

1 file changed

Lines changed: 41 additions & 3 deletions

File tree

ImperatorToCK3/Data_Files/configurables/replaceable_file_blocks.txt

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2756,7 +2756,7 @@
27562756
}
27572757
}
27582758
}
2759-
}
2759+
} # end of replace
27602760

27612761
# This doesn't check if h_china.holder exists, so need to change that
27622762
replace = {
@@ -2788,7 +2788,7 @@
27882788
}
27892789
}
27902790
}
2791-
}
2791+
} # end of replace
27922792

27932793
# Changing seeding of Visigothic Votive Crowns so that they are only given to relevant rulers if Visigothic is actually in the region
27942794
replace = {
@@ -2820,7 +2820,45 @@
28202820
holder = { add_to_list = potential_votive_crown_holders_list }
28212821
}
28222822
}
2823-
}
2823+
} # end of replace
2824+
2825+
# Check if k_khorasan holder exists.
2826+
replace = {
2827+
before = {
2828+
title:k_khorasan.holder = {
2829+
create_artifact = {
2830+
name = fp3_incense_burner_sculpture
2831+
description = fp3_incense_burner_sculpture_desc
2832+
visuals = fp3_incense_burner_sculpture
2833+
type = sculpture
2834+
wealth = 80
2835+
quality = 80
2836+
modifier = artifact_negate_health_penalty_add_2_modifier
2837+
modifier = artifact_stress_gain_3_modifier
2838+
modifier = artifact_attraction_opinion_2_modifier
2839+
modifier = artifact_court_grandeur_baseline_add_3_modifier
2840+
history = { type = created_before_history }
2841+
}
2842+
}
2843+
} # end of before
2844+
after = {
2845+
title:k_khorasan.holder ?= {
2846+
create_artifact = {
2847+
name = fp3_incense_burner_sculpture
2848+
description = fp3_incense_burner_sculpture_desc
2849+
visuals = fp3_incense_burner_sculpture
2850+
type = sculpture
2851+
wealth = 80
2852+
quality = 80
2853+
modifier = artifact_negate_health_penalty_add_2_modifier
2854+
modifier = artifact_stress_gain_3_modifier
2855+
modifier = artifact_attraction_opinion_2_modifier
2856+
modifier = artifact_court_grandeur_baseline_add_3_modifier
2857+
history = { type = created_before_history }
2858+
}
2859+
}
2860+
} # end of after
2861+
} # end of replace
28242862
}
28252863

28262864

0 commit comments

Comments
 (0)