This commit is contained in:
Fishedotjpg 2026-03-11 22:50:02 +00:00
parent 1895fe3202
commit 95df26b1da
5 changed files with 808 additions and 31 deletions

View file

@ -7,6 +7,150 @@
template = no_headgear
}
##ccp9
add_accessory_modifiers = {
gene = headgear
template = ccp9_liao_high_nobility_headgear
is_valid_custom = {
has_cp9_dlc_trigger = yes
}
}
add_accessory_modifiers = {
gene = headgear
template = ccp9_liao_commoner_headgear
is_valid_custom = {
has_cp9_dlc_trigger = yes
}
}
add_accessory_modifiers = {
gene = headgear
template = ccp9_dali_low_nobility_headgear
is_valid_custom = {
has_cp9_dlc_trigger = yes
}
}
add_accessory_modifiers = {
gene = headgear
template = ccp9_dali_high_nobility_headgear
is_valid_custom = {
has_cp9_dlc_trigger = yes
}
}
add_accessory_modifiers = {
gene = headgear
template = ccp9_silla_royalty_headgear
is_valid_custom = {
has_cp9_dlc_trigger = yes
}
}
add_accessory_modifiers = {
gene = headgear
template = ccp9_uyghur_low_nobility_headgear
is_valid_custom = {
has_cp9_dlc_trigger = yes
}
}
add_accessory_modifiers = {
gene = headgear
template = ccp9_uyghur_royalty_headgear
is_valid_custom = {
has_cp9_dlc_trigger = yes
}
}
add_accessory_modifiers = {
gene = headgear
template = ccp9_uyghur_high_nobility_headgear
is_valid_custom = {
has_cp9_dlc_trigger = yes
}
}
add_accessory_modifiers = {
gene = headgear
template = ccp9_tangut_high_nobility_headgear
is_valid_custom = {
has_cp9_dlc_trigger = yes
}
}
add_accessory_modifiers = {
gene = headgear
template = ccp9_tangut_royalty_headgear
is_valid_custom = {
has_cp9_dlc_trigger = yes
}
}
add_accessory_modifiers = {
gene = headgear
template = ccp9_jurchen_nobility_headgear
is_valid_custom = {
has_cp9_dlc_trigger = yes
}
}
add_accessory_modifiers = {
gene = headgear
template = ccp9_ming_nobility_headgear
is_valid_custom = {
has_cp9_dlc_trigger = yes
}
}
## CCP7 Emishi Ainu ##
add_accessory_modifiers = {
gene = headgear
template = ccp7_emishi_com
is_valid_custom = {
has_cp7_dlc_trigger = yes
}
}
add_accessory_modifiers = {
gene = headgear
template = ccp7_emishi_lo_nob
is_valid_custom = {
has_cp7_dlc_trigger = yes
}
}
add_accessory_modifiers = {
gene = headgear
template = ccp7_emishi_hi_nob
is_valid_custom = {
has_cp7_dlc_trigger = yes
}
}
add_accessory_modifiers = {
gene = headgear
template = ccp7_ainu_sapanpe
is_valid_custom = {
has_cp7_dlc_trigger = yes
}
}
add_accessory_modifiers = {
gene = headgear
template = ccp7_emishi_war_nob
is_valid_custom = {
has_cp7_dlc_trigger = yes
}
}
## CCP7 Nivkh ##
add_accessory_modifiers = {
gene = headgear
template = ccp7_nivkh_com
is_valid_custom = {
has_cp7_dlc_trigger = yes
}
}
## TGP Chinese ##
add_accessory_modifiers = {
@ -1489,5 +1633,5 @@
gene = special_headgear_spectacles
template = spectacles
}
}
}

View file

@ -48,12 +48,6 @@ beards = {
exists = character:easteregg_daan_broekhof
this = character:easteregg_daan_broekhof
}
modifier = {
add = 2000
exists = this
exists = character:france_bonaparte_isildur_i
this = character:france_bonaparte_isildur_i
}
modifier = {
add = 1000
exists = this
@ -1656,6 +1650,133 @@ beards = {
portrait_ainu_clothing_trigger = yes
}
}
}
cp7_beards_emishi_straight = { # very similar to tgp ainu stuff above but checks for hair type genes - i made this before the gene tgp gene was added so i consolidated them together for cp7 --aj
dna_modifiers = {
accessory = {
mode = add
gene = beards
template = cp7_emishi_ainu_beards_straight
range = { 0 1 } # For the randomness to work correctly
}
}
weight = {
base = 0
modifier = {
add = 170
exists = this
portrait_emishi_clothing_trigger = yes
has_gene = {
category = gene_hair_type
template = hair_straight
}
}
modifier = { # Muslims should always have a beard
add = 200
OR = {
scope:faith.religion = religion:islam_religion
is_culture_or_descended_from_trigger = { CULTURE = culture:emishi }
}
portrait_emishi_clothing_trigger = yes
}
}
}
cp7_beards_emishi_wavy = {
dna_modifiers = {
accessory = {
mode = add
gene = beards
template = cp7_emishi_ainu_beards_wavy
range = { 0 1 } # For the randomness to work correctly
}
}
weight = {
base = 0
modifier = {
add = 170
exists = this
portrait_emishi_clothing_trigger = yes
has_gene = {
category = gene_hair_type
template = hair_wavy
}
}
modifier = { # Muslims should always have a beard
add = 200
OR = {
scope:faith.religion = religion:islam_religion
is_culture_or_descended_from_trigger = { CULTURE = culture:emishi }
}
portrait_emishi_clothing_trigger = yes
}
}
}
cp7_beards_emishi_curly = {
dna_modifiers = {
accessory = {
mode = add
gene = beards
template = cp7_emishi_ainu_beards_curly
range = { 0 1 } # For the randomness to work correctly
}
}
weight = {
base = 0
modifier = {
add = 170
exists = this
portrait_emishi_clothing_trigger = yes
OR = {
has_gene = {
category = gene_hair_type
template = hair_curly
}
has_gene = {
category = gene_hair_type
template = hair_afro
}
}
}
modifier = { # Muslims should always have a beard
add = 200
OR = {
scope:faith.religion = religion:islam_religion
is_culture_or_descended_from_trigger = { CULTURE = culture:emishi }
}
portrait_emishi_clothing_trigger = yes
}
}
}
cp7_beards_emishi_straight_thin = {
dna_modifiers = {
accessory = {
mode = add
gene = beards
template = tgp_chinese_beards
range = { 0 1 } # For the randomness to work correctly
}
}
weight = {
base = 0
modifier = {
add = 170
exists = this
portrait_emishi_clothing_trigger = yes
has_gene = {
category = gene_hair_type
template = hair_straight_thin_beard
}
}
modifier = { # Muslims should always have a beard
add = 200
OR = {
scope:faith.religion = religion:islam_religion
is_culture_or_descended_from_trigger = { CULTURE = culture:emishi }
}
portrait_emishi_clothing_trigger = yes
}
}
}
}