diff --git a/common/governments/00_government_types.txt b/common/governments/00_government_types.txt index bbde40b3..df022af4 100644 --- a/common/governments/00_government_types.txt +++ b/common/governments/00_government_types.txt @@ -53,8 +53,14 @@ republic_government = { } can_get_government = { - culture = { - NOT = { has_cultural_tradition = tradition_farmer_republics } + + NOR = { + culture = { + has_cultural_tradition = tradition_farmer_republics + } + faith = { + has_doctrine = tenet_communal_possessions + } } } ai = { @@ -649,24 +655,28 @@ peasantrepublic_government = { } can_get_government = { - culture = { - has_cultural_tradition = tradition_farmer_republics + OR = { + culture = { + has_cultural_tradition = tradition_farmer_republics + } + faith = { + has_doctrine = tenet_communal_possessions + } } } domicile_type = farmstead - ai = { - use_scripted_guis = no - } character_modifier = { - levy_size = 1.5 - feudal_government_tax_contribution_mult = -0.5 - feudal_government_levy_contribution_mult = -0.5 - clan_government_tax_contribution_mult = -0.5 - clan_government_levy_contribution_mult = -0.5 + levy_size = 3 + feudal_government_tax_contribution_mult = -0.25 + feudal_government_levy_contribution_mult = -0.25 + clan_government_tax_contribution_mult = -0.25 + clan_government_levy_contribution_mult = -0.25 + peasantrepublic_government_tax_contribution_mult = 1.25 + peasantrepublic_government_levy_contribution_mult = 1.25 ignore_negative_opinion_of_culture = yes men_at_arms_cap = -1 men_at_arms_limit = -1 - knight_limit = -5 + knight_limit = -4 active_accolades = -1 title_creation_cost_mult = 1.5 mercenary_hire_cost_mult = 2 diff --git a/common/on_action/title_on_actions.txt b/common/on_action/title_on_actions.txt index 6acee2f4..0b2c9f6d 100644 --- a/common/on_action/title_on_actions.txt +++ b/common/on_action/title_on_actions.txt @@ -203,7 +203,13 @@ on_title_gain = { NOT = { exists = domicile } + NOT = { + primary_title = { + title_tier = barony + } + } } + add_character_flag = peasant_outfit create_noble_family_effect = { GOVERNMENT_GIVER = this } } if = { @@ -215,6 +221,7 @@ on_title_gain = { } } } + add_character_flag = peasant_outfit primary_title = { add_title_law = saxon_elective_succession_law } @@ -2497,6 +2504,7 @@ on_title_gain = { limit = { has_character_flag = peasant_outfit NOT = { government_has_flag = government_is_herder } + NOT = { government_has_flag = government_is_prepublic } } remove_character_flag = peasant_outfit } @@ -2823,7 +2831,13 @@ on_title_gain_inheritance = { NOT = { exists = domicile } + NOT = { + primary_title = { + title_tier = barony + } + } } + add_character_flag = peasant_outfit create_noble_family_effect = { GOVERNMENT_GIVER = this } } if = { @@ -2835,6 +2849,7 @@ on_title_gain_inheritance = { } } } + add_character_flag = peasant_outfit primary_title = { add_title_law = saxon_elective_succession_law } @@ -2895,7 +2910,13 @@ on_title_gain_usurpation = { NOT = { exists = domicile } + NOT = { + primary_title = { + title_tier = barony + } + } } + add_character_flag = peasant_outfit create_noble_family_effect = { GOVERNMENT_GIVER = this } } if = { @@ -2907,6 +2928,7 @@ on_title_gain_usurpation = { } } } + add_character_flag = peasant_outfit primary_title = { add_title_law = saxon_elective_succession_law } diff --git a/common/on_action/yearly_on_actions.txt b/common/on_action/yearly_on_actions.txt index e782af49..65fcf2b9 100644 --- a/common/on_action/yearly_on_actions.txt +++ b/common/on_action/yearly_on_actions.txt @@ -761,9 +761,29 @@ yearly_playable_pulse = { NOT = { exists = domicile } + NOT = { + primary_title = { + title_tier = barony + } + } } + add_character_flag = peasant_outfit create_noble_family_effect = { GOVERNMENT_GIVER = this } } + if = { + limit = { + government_has_flag = government_is_prepublic + primary_title = { + NOT = { + has_title_law = saxon_elective_succession_law + } + } + } + add_character_flag = peasant_outfit + primary_title = { + add_title_law = saxon_elective_succession_law + } + } if = { limit = { has_title = title:k_papal_state @@ -2683,7 +2703,13 @@ quarterly_playable_pulse = { NOT = { exists = domicile } + NOT = { + primary_title = { + title_tier = barony + } + } } + add_character_flag = peasant_outfit create_noble_family_effect = { GOVERNMENT_GIVER = this } } if = { @@ -2695,6 +2721,7 @@ quarterly_playable_pulse = { } } } + add_character_flag = peasant_outfit primary_title = { add_title_law = saxon_elective_succession_law } diff --git a/common/religion/doctrines/30_core_tenets.txt b/common/religion/doctrines/30_core_tenets.txt index 127cbd3d..4dc2ffbb 100644 --- a/common/religion/doctrines/30_core_tenets.txt +++ b/common/religion/doctrines/30_core_tenets.txt @@ -5033,12 +5033,18 @@ parameters = { piety_from_gifts_active = yes piety_from_marrying_lowborn_active = yes + faith_use_farmer_republics = yes } character_modifier = { monthly_county_control_growth_factor = -0.2 build_gold_cost = -0.1 county_opinion_add = 10 + tyranny_gain_mult = 0.25 + tyranny_loss_mult = -0.5 + dread_decay_mult = 0.25 + city_holding_build_gold_cost = -0.05 + city_holding_holding_build_gold_cost = -0.05 } traits = { diff --git a/gfx/portraits/portrait_modifiers/01_beards_base.txt b/gfx/portraits/portrait_modifiers/01_beards_base.txt new file mode 100644 index 00000000..d9cb3d06 --- /dev/null +++ b/gfx/portraits/portrait_modifiers/01_beards_base.txt @@ -0,0 +1,1666 @@ +# Make sure the weights here match up best as possible with the custom_beards set +beards = { + + usage = game + + selection_behavior = weighted_random + + no_beard_for_children = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = no_beard + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + modifier = { + add = 100 + scope:age < 18 + } + } + } + + has_no_beard = { # This is to give a random chance of a clean shaven look + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = no_beard + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 30 + modifier = { + add = -50 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + modifier = { + add = 666 + exists = this + 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 + OR = { # Japanese monks shave their beards + has_character_flag = no_beard + AND = { + has_trait = devoted + religion = religion:buddhism_religion + culture = { has_clothing_gfx = japanese_clothing_gfx } + } + } + } + modifier = { + add = -20 + exists = this + portrait_steppe_clothing_trigger = yes + } + portrait_clean_shaven_clothing_modifier = yes + } + } + + western_straight = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = western_beards_straight + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 70 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_straight + } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + } + portrait_western_clothing_trigger = yes + } + 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_western_clothing_trigger = yes + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + western_curly = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = western_beards_curly + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 70 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + has_gene = { + category = gene_hair_type + template = hair_curly + } + } + portrait_western_clothing_trigger = yes + } + 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_western_clothing_trigger = yes + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + mena_straight = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = mena_beards_straight + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 70 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_straight + } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + } + OR = { + portrait_mena_clothing_trigger = yes + portrait_african_clothing_trigger = yes + portrait_japanese_clothing_trigger = yes + } + } + 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 } + } + OR = { + portrait_mena_clothing_trigger = yes + portrait_african_clothing_trigger = yes + portrait_japanese_clothing_trigger = yes + } + NAND = { # The Prophet Muhammad does not have a portrait + exists = this + this = character:33922 # Prophet Muhammad + } + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + this = character:33922 # Prophet Muhammad + } + } + } + } + + mena_curly = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = mena_beards_curly + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 70 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + has_gene = { + category = gene_hair_type + template = hair_curly + } + } + OR = { + portrait_mena_clothing_trigger = yes + portrait_african_clothing_trigger = yes + portrait_japanese_clothing_trigger = yes + } + } + 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 } + } + OR = { + portrait_mena_clothing_trigger = yes + portrait_african_clothing_trigger = yes + portrait_japanese_clothing_trigger = yes + } + NAND = { # The Prophet Muhammad does not have a portrait + exists = this + this = character:33922 # Prophet Muhammad + } + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + this = character:33922 # Prophet Muhammad + } + } + } + } + + byzantine_straight = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = byzantine_beards_straight + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 80 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_straight + } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + } + portrait_byzantine_clothing_trigger = yes + } + 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_byzantine_clothing_trigger = yes + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + byzantine_curly = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = byzantine_beards_curly + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 80 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + has_gene = { + category = gene_hair_type + template = hair_curly + } + } + portrait_byzantine_clothing_trigger = yes + } + 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_byzantine_clothing_trigger = yes + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + indian_straight = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = indian_beards_straight + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 70 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_straight + } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + } + portrait_indian_clothing_trigger = yes + } + 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_indian_clothing_trigger = yes + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + indian_curly = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = indian_beards_curly + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 70 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + has_gene = { + category = gene_hair_type + template = hair_curly + } + } + portrait_indian_clothing_trigger = yes + } + 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_indian_clothing_trigger = yes + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + thin_beards = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = thin_beards_straight + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 70 + exists = this + 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 } + } + trigger_if = { + limit = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_straight_thin_beard + } + } + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + modifier = { + add = -40 + portrait_chinese_clothing_trigger = yes + } + modifier = { + add = -65 + OR = { + portrait_malay_clothing_trigger = yes + portrait_southeast_asian_clothing_trigger = yes + } + } + } + } + + steppe_straight = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = steppe_beards_straight + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 50 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_straight + } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + } + portrait_steppe_clothing_trigger = yes + } + 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_steppe_clothing_trigger = yes + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + modifier = { + factor = 0 + portrait_chinese_clothing_trigger = yes + has_tgp_dlc_trigger = yes + } + } + } + + mpo_mongol_straight = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = mpo_mongol_beards + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 50 + OR = { + NOT = { exists = this } + # has_gene = { + # category = gene_hair_type + # template = hair_straight + # } + has_gene = { + category = gene_hair_type + template = hair_straight_thin_beard + } + # has_gene = { + # category = gene_hair_type + # template = hair_wavy + # } + } + portrait_steppe_clothing_trigger = yes + has_mpo_dlc_trigger = yes + } + 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_steppe_clothing_trigger = yes + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + steppe_curly = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = steppe_beards_curly + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 50 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + has_gene = { + category = gene_hair_type + template = hair_curly + } + } + portrait_steppe_clothing_trigger = yes + } + 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_steppe_clothing_trigger = yes + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + northern_straight = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = northern_beards_straight + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 50 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_straight + } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + } + OR = { + portrait_northern_clothing_trigger = yes + portrait_sami_clothing_trigger = yes + } + } + 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 } + } + OR = { + portrait_northern_clothing_trigger = yes + portrait_sami_clothing_trigger = yes + } + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + northern_curly = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = northern_beards_curly + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 90 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + has_gene = { + category = gene_hair_type + template = hair_curly + } + } + OR = { + portrait_northern_clothing_trigger = yes + portrait_sami_clothing_trigger = yes + } + } + 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 } + } + OR = { + portrait_northern_clothing_trigger = yes + portrait_sami_clothing_trigger = yes + } + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + african = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = sub_saharan_beards_afro + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 70 + exists = this + 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 } + } + OR = { + portrait_african_clothing_trigger = yes + portrait_papuan_clothing_trigger = yes + } + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + ### SP2 - Elegance of the Empire ### + + sp2_beards_straight = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = sp2_beards_straight + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + modifier = { + add = 4 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_straight + } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + } + OR = { + portrait_sp2_western_clothing_trigger = yes + } + } + 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 } + } + OR = { + portrait_sp2_western_clothing_trigger = yes + } + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + ### FP3 Beards ### + + #iranian + fp3_iranian_beards_straight = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = fp3_iranian_beards_straight + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 70 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_straight + } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + } + portrait_fp3_iranian_clothing_trigger = yes + } + 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_fp3_iranian_clothing_trigger = yes + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + fp3_iranian_beards_curly = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = fp3_iranian_beards_curly + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 70 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + has_gene = { + category = gene_hair_type + template = hair_curly + } + } + portrait_fp3_iranian_clothing_trigger = yes + } + 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_fp3_iranian_clothing_trigger = yes + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + #turkic + fp3_turkic_beards_straight = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = fp3_turkic_beards_straight + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 50 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_straight + } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + } + portrait_fp3_turkic_clothing_trigger = yes + } + 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_fp3_turkic_clothing_trigger = yes + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + fp3_turkic_beards_curly = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = fp3_turkic_beards_curly + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 50 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + has_gene = { + category = gene_hair_type + template = hair_curly + } + } + portrait_fp3_turkic_clothing_trigger = yes + } + 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_fp3_turkic_clothing_trigger = yes + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + ### FP2 Beards ### + + fp2_beards_straight = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = fp2_beards_straight + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + modifier = { + add = 70 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_straight + } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + } + OR = { + portrait_fp2_iberian_muslim_clothing_trigger = yes + portrait_fp2_iberian_christian_clothing_trigger = yes + } + } + 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 } + } + OR = { + portrait_fp2_iberian_muslim_clothing_trigger = yes + portrait_fp2_iberian_christian_clothing_trigger = yes + } + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + fp2_beards_curly = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = fp2_beards_curly + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + modifier = { + add = 70 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + has_gene = { + category = gene_hair_type + template = hair_curly + } + } + OR = { + portrait_fp2_iberian_muslim_clothing_trigger = yes + portrait_fp2_iberian_christian_clothing_trigger = yes + } + } + 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 } + } + OR = { + portrait_fp2_iberian_muslim_clothing_trigger = yes + portrait_fp2_iberian_christian_clothing_trigger = yes + } + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + ### FP1 Beards ### + + fp1_straight = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = fp1_beards_straight + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 90 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_straight + } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + } + portrait_fp1_norse_clothing_trigger = yes + } + 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_fp1_norse_clothing_trigger = yes + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + fp1_curly = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = fp1_beards_curly + range = { 0 1 } # For the randomness to work correctly + } + } + # outfit_tags = { no_clothes } + weight = { + base = 0 + modifier = { + add = 70 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + has_gene = { + category = gene_hair_type + template = hair_curly + } + } + portrait_fp1_norse_clothing_trigger = yes + } + 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_northern_clothing_trigger = yes + } + modifier = { + add = -100 + exists = this + OR = { + is_from_ruler_designer = yes + has_character_flag = has_scripted_appearance + } + } + } + } + + orthodox_beards = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = orthodox_beards + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + modifier = { # Orthodox priests + add = 200 + exists = this + OR = { + has_character_flag = need_priest_outfit + is_theocratic_lessee = yes + AND = { is_ruler = yes government_has_flag = government_is_theocracy } + AND = { # Orthodox patriarch + exists = primary_title + primary_title = { + any_controlled_faith = { + this = faith:orthodox + } + } + } + } + OR = { + faith = faith:orthodox + faith = faith:armenian_apostolic + faith = faith:coptic + faith = faith:messalian + faith = faith:bogomilist + faith = faith:paulician + faith = faith:nestorian + } + } + } + } + + ultimate_beards = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = rtt_beards + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + modifier = { + add = 2000 + exists = this + OR = { + has_nickname = nick_the_beautiful_beard + has_nickname = nick_the_bearded + has_character_flag = mystic_beard_var + } + } + } + } + + ### EP2 beards ### + + ep2_beards_straight = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = ep2_beards + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + modifier = { + add = 55 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_straight + } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + } + portrait_western_clothing_trigger = yes + has_ep2_dlc_trigger = yes + } + modifier = { + add = 20 + portrait_era1_trigger = yes + } + modifier = { + add = -20 + portrait_era2_trigger = yes + } + modifier = { + add = -40 + OR = { + portrait_era3_trigger = yes + portrait_era4_trigger = yes + } + } + modifier = { + factor = 0 + portrait_western_clothing_trigger = no + } + } + } + + ### EP3 beards ### + + ep3_beards_straight = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = ep3_beards_straight + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + modifier = { + add = 75 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_straight + } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + } + portrait_byzantine_clothing_trigger = yes + has_ep3_dlc_trigger = yes + } + } + } + + ep3_beards_curly = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = ep3_beards_curly + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + modifier = { + add = 75 + OR = { + NOT = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + has_gene = { + category = gene_hair_type + template = hair_curly + } + } + portrait_byzantine_clothing_trigger = yes + has_ep3_dlc_trigger = yes + } + } + } + + ### SP4 - Crowns of the World ### + + sp4_beards_mena = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = sp4_mena_beards + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + modifier = { + add = 30 + portrait_mena_clothing_trigger = yes + has_sp4_dlc_trigger = yes + } + modifier = { + add = 30 + portrait_turkic_clothing_trigger = yes + has_sp4_dlc_trigger = yes + } + modifier = { + factor = 0 + NOR = { + has_gene = { + category = gene_hair_type + template = hair_straight + } + has_gene = { + category = gene_hair_type + template = hair_straight_thin_beard + } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + has_gene = { + category = gene_hair_type + template = hair_curly + } + } + } + } + } + + sp4_beards_rus = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = sp4_rus_beards + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + modifier = { + add = 50 + portrait_rus_clothing_trigger = yes + has_sp4_dlc_trigger = yes + } + modifier = { + add = 20 + portrait_turkic_clothing_trigger = yes + has_sp4_dlc_trigger = yes + } + modifier = { + factor = 0 + NOR = { + has_gene = { + category = gene_hair_type + template = hair_straight + } + has_gene = { + category = gene_hair_type + template = hair_straight_thin_beard + } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + } + } + } + } + + ## TGP - Chinese ## + + tgp_beards_chinese = { + 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 = 80 + OR = { + has_gene = { + category = gene_hair_type + template = hair_straight_thin_beard + } + has_gene = { + category = gene_hair_type + template = hair_straight + } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + } + portrait_chinese_clothing_trigger = yes + } + } + } + + tgp_beards_japanese = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = tgp_japanese_beards + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + modifier = { + add = 80 + OR = { + has_gene = { + category = gene_hair_type + template = hair_straight_thin_beard + } + has_gene = { + category = gene_hair_type + template = hair_straight + } + has_gene = { + category = gene_hair_type + template = hair_wavy + } + } + portrait_japanese_clothing_trigger = yes + has_tgp_dlc_trigger = yes + } + } + } + + tgp_beards_sea = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = tgp_sea_beards + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + modifier = { + add = 70 + exists = this + has_gene = { + category = gene_hair_type + template = hair_straight_thin_beard + } + OR = { + portrait_malay_clothing_trigger = yes + portrait_southeast_asian_clothing_trigger = yes + } + } + 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 } + } + trigger_if = { + limit = { exists = this } + has_gene = { + category = gene_hair_type + template = hair_straight_thin_beard + } + } + OR = { + portrait_malay_clothing_trigger = yes + portrait_southeast_asian_clothing_trigger = yes + } + } + } + } + + tgp_beards_ainu = { + dna_modifiers = { + accessory = { + mode = add + gene = beards + template = tgp_ainu_beards + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + modifier = { + add = 170 + exists = this + portrait_ainu_clothing_trigger = yes + } + 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_ainu_clothing_trigger = yes + } + } + } + +} + + + + + diff --git a/gfx/portraits/portrait_modifiers/05_clothes_situational.txt b/gfx/portraits/portrait_modifiers/05_clothes_situational.txt new file mode 100644 index 00000000..e4afd6db --- /dev/null +++ b/gfx/portraits/portrait_modifiers/05_clothes_situational.txt @@ -0,0 +1,577 @@ +clothes_situational = { # All clothes triggers are found in 00_clothing_triggers.txt + + usage = game + selection_behavior = weighted_random + priority = 5 + + + poverty_robes_western = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = western_sickness + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + # Boring clothes for characters with an active Vow of Poverty + modifier = { + add = 100 + portrait_poverty_robes_trigger = yes + } + modifier = { + add = 1000 + has_court_position = cave_hermit_court_position + } + modifier = { + add = -50 + portrait_byzantine_clothing_trigger = no + portrait_northern_clothing_trigger = no + portrait_western_clothing_trigger = no + } + } + } + + poverty_robes_mena = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = mena_sickness + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + # Boring clothes for characters with an active Vow of Poverty + modifier = { + add = 100 + portrait_poverty_robes_trigger = yes + } + modifier = { + add = 1000 + has_court_position = cave_hermit_court_position + } + modifier = { + add = -50 + portrait_mena_clothing_trigger = no + portrait_indian_clothing_trigger = no + portrait_steppe_clothing_trigger = no + portrait_african_clothing_trigger = no + } + } + } + + western_prison = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = western_prison + range = { 0 1 } # For the randomness to work correctly + } + } + outfit_tags = { beggar_rags } + weight = { + base = 0 + modifier = { + add = 500 + OR = { + has_character_flag = peasant_outfit + government_has_flag = government_is_prepublic + } + NOR = { + portrait_mena_clothing_trigger = yes + portrait_indian_clothing_trigger = yes + portrait_steppe_clothing_trigger = yes + portrait_african_clothing_trigger = yes + } + } + modifier = { + add = 500 + portrait_beggar_trigger = yes + NOR = { + portrait_mena_clothing_trigger = yes + portrait_indian_clothing_trigger = yes + portrait_steppe_clothing_trigger = yes + portrait_african_clothing_trigger = yes + } + } + modifier = { + add = 120 + portrait_prisoner_trigger = yes + OR = { + portrait_byzantine_clothing_trigger = yes + portrait_northern_clothing_trigger = yes + portrait_western_clothing_trigger = yes + } + } + } + } + + western_stealth = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = western_stealth + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + modifier = { + add = 110 + portrait_stealth_trigger = yes + OR = { + portrait_byzantine_clothing_trigger = yes + portrait_northern_clothing_trigger = yes + portrait_western_clothing_trigger = yes + } + } + } + } + + mena_prison = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = mena_prison + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = 0 + modifier = { + add = 500 + OR = { + has_character_flag = peasant_outfit + government_has_flag = government_is_prepublic + } + OR = { + portrait_mena_clothing_trigger = yes + portrait_indian_clothing_trigger = yes + portrait_steppe_clothing_trigger = yes + portrait_african_clothing_trigger = yes + } + } + modifier = { + add = 500 + portrait_beggar_trigger = yes + OR = { + portrait_mena_clothing_trigger = yes + portrait_indian_clothing_trigger = yes + portrait_steppe_clothing_trigger = yes + portrait_african_clothing_trigger = yes + } + } + modifier = { + add = 110 + portrait_prisoner_trigger = yes + OR = { + portrait_mena_clothing_trigger = yes + portrait_indian_clothing_trigger = yes + portrait_steppe_clothing_trigger = yes + portrait_african_clothing_trigger = yes + } + } + } + } + + mena_stealth = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = mena_stealth + range = { 0 1 } # For the randomness to work correctly + } + } + outfit_tags = { mena_stealth } + weight = { + base = 0 + modifier = { + add = 110 + portrait_stealth_trigger = yes + OR = { + portrait_mena_clothing_trigger = yes + portrait_indian_clothing_trigger = yes + portrait_steppe_clothing_trigger = yes + portrait_african_clothing_trigger = yes + } + } + } + } + + ccp4_sami_travel = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = ccp4_sami_travel_clothes + range = { 0 1 } + } + } + weight = { + base = 0 + modifier = { + add = 110 + has_cp4_dlc_trigger = yes + OR = { + portrait_ccp4_sami_travel_coat_trigger = yes + } + } + modifier = { # They travel all. the. time. + factor = 0 + government_has_flag = government_is_landless_adventurer + NOR = { # But explorer camp purpose has them all the time + has_realm_law = camp_purpose_explorers + liege ?= { has_realm_law = camp_purpose_explorers } + } + } + # Nomads _do_ use these, because they're appropriate and cool + } + } + + ep1_jester = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = ep1_jester_clothes + range = { 0 1 } # For the randomness to work correctly + } + } + weight = { + base = -100 + modifier = { + add = 1000 + OR = { + has_court_position = court_jester_court_position + has_character_flag = jester_outfit + } + } + modifier = { + factor = 0 + OR = { + is_adult = no + should_be_naked_trigger = yes + } + } + } + } + + # Hajj / Ihram + ep2_religious_muslim_hajj_clothes = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = ep2_religious_muslim_hajj_clothes + range = { 0 1 } + } + } + outfit_tags = { hajj_clothes } + weight = { + base = 0 + modifier = { + add = 150 + portrait_ep2_hajj_clothes_trigger = yes + } + } + } + + ep2_religious_muslim_ihram_clothes = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = ep2_religious_muslim_ihram_clothes + range = { 0 1 } + } + accessory = { + mode = add + gene = headgear + template = no_headgear + value = 0 + } + accessory = { + mode = add + gene = secondary_headgears + template = no_headgear + value = 0 + } + } + outfit_tags = { hajj_clothes } + weight = { + base = 0 + modifier = { + add = 200 + portrait_ep2_ihram_clothes_trigger = yes + } + } + } + + # Pope/Cardinal Larper event + pope_larper = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = religious_catholic_head_clothes + range = { 0 1 } + } + accessory = { + mode = add + gene = headgear + template = catholic_head + range = { 0 1 } + } + accessory = { + mode = add + gene = secondary_headgears + template = no_headgear + value = 0 + } + } + weight = { + base = 0 + modifier = { + add = 200 + has_character_flag = pope_larper_flag + } + } + } + + cardinal_larper = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = religious_catholic_high_clothes + range = { 0 1 } + } + accessory = { + mode = add + gene = headgear + template = catholic_high + range = { 0 1 } + } + accessory = { + mode = add + gene = secondary_headgears + template = no_headgear + value = 0 + } + } + weight = { + base = 0 + modifier = { + add = 200 + has_character_flag = cardinal_larper_flag + } + } + } + + # Court Physician + court_physician = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = fp4_western_physician_01 + range = { 0 1 } + } + accessory = { + mode = add + gene = headgear + template = western_common + value = 0 + } + accessory = { + mode = add + gene = secondary_headgears + template = no_headgear + value = 0 + } + } + weight = { + base = 0 + modifier = { + add = 1000 + has_court_position = court_physician_court_position + has_ce1_dlc_trigger = yes + portrait_western_clothing_trigger = yes + } + modifier = { + add = 20 + has_ce1_dlc_trigger = yes + portrait_western_clothing_trigger = yes + government_has_flag = government_is_landless_adventurer + OR = { + has_realm_law = camp_purpose_scholars + liege ?= { has_realm_law = camp_purpose_scholars } + } + } + modifier = { + factor = 0 + OR = { + is_adult = no + should_be_naked_trigger = yes + } + } + modifier = { + factor = 0 + portrait_wear_armor_trigger = yes + } + } + } + + # Court Musician + court_musician = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = fp4_western_era3_low_nobility_clothes + accessory = m_clothes_sec_fp4_western_era3_nob_01_lo + } + } + weight = { + base = 0 + modifier = { + add = 1000 + has_court_position = court_musician_court_position + has_ce1_dlc_trigger = yes + portrait_western_clothing_trigger = yes + OR = { + portrait_era3_trigger = yes + portrait_era4_trigger = yes + } + } + modifier = { + factor = 0 + OR = { + is_adult = no + should_be_naked_trigger = yes + } + } + } + } + + # Charioteer - Blue + charioteer_blue = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = ep3_byzantine_charioteer_clothes_blue + range = { 0 1 } + } + } + weight = { + base = 0 + modifier = { + add = 1000 + has_ep3_dlc_trigger = yes + has_trait = charioteer_blue + is_ruler = no + } + modifier = { + factor = 0 + OR = { + is_adult = no + should_be_naked_trigger = yes + } + } + } + } + + # Charioteer - Green + charioteer_green = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = ep3_byzantine_charioteer_clothes_green + range = { 0 1 } + } + } + weight = { + base = 0 + modifier = { + add = 1000 + has_ep3_dlc_trigger = yes + has_trait = charioteer_green + } + modifier = { + factor = 0 + OR = { + is_adult = no + is_ruler = yes + should_be_naked_trigger = yes + } + } + } + } + + # Charioteer - White + charioteer_white = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = ep3_byzantine_charioteer_clothes_white + range = { 0 1 } + } + } + weight = { + base = 0 + modifier = { + add = 1000 + has_ep3_dlc_trigger = yes + has_trait = charioteer_white + } + modifier = { + factor = 0 + OR = { + is_adult = no + is_ruler = yes + should_be_naked_trigger = yes + } + } + } + } + + # Charioteer - Red + charioteer_red = { + dna_modifiers = { + accessory = { + mode = add + gene = clothes + template = ep3_byzantine_charioteer_clothes_red + range = { 0 1 } + } + } + weight = { + base = 0 + modifier = { + add = 1000 + has_ep3_dlc_trigger = yes + has_trait = charioteer_red + } + modifier = { + factor = 0 + OR = { + is_adult = no + is_ruler = yes + should_be_naked_trigger = yes + } + } + } + } + +}