diff --git a/common/culture/traditions/NEOW_traditions.txt b/common/culture/traditions/NEOW_traditions.txt index edf85a5ad..21be49521 100644 --- a/common/culture/traditions/NEOW_traditions.txt +++ b/common/culture/traditions/NEOW_traditions.txt @@ -1365,4 +1365,100 @@ tradition_ruin_delvers = { multiply = 0 } } +} + +tradition_karlovec_legacy = { + + category = societal + + layers = { + 0 = learning + 1 = mediterranean + 4 = crown.dds + } + + can_pick = { + OR = { + has_cultural_pillar = heritage_magyar + has_cultural_pillar = heritage_west_slavic + } + } + + parameters = { + extra_language_cap_2 = yes + harder_to_convert_county_culture = yes + likes_same_tradition = yes + } + + culture_modifier = { + + } + character_modifier = { + ignore_different_faith_opinion = yes + } + + cost = { + prestige = { + add = { + value = tradition_base_cost + desc = BASE + format = "BASE_VALUE_FORMAT" + } + if = { + limit = { + NOR = { + culture_pillar:ethos_communal = { is_in_list = traits } + culture_pillar:ethos_egalitarian = { is_in_list = traits } + } + } + add = { + value = tradition_incompatible_ethos_penalty + desc = not_communal_or_egalitarian_desc + } + } + + if = { + limit = { + scope:character = { + has_variable = tradition_xenophilic_travel_discount + } + + } + + add = { + value = tradition_travel_discount + desc = tradition_travel_discount_desc + } + } + + if = { + limit = { + culture_tradition_reduction_trigger = { TRADITION = tradition_karlovec_legacy } + } + multiply = { + value = 0.5 + desc = inspired_by_culture_desc + } + } + + multiply = tradition_replacement_cost_if_relevant + } + } + + ai_will_do = { + value = 100 + if = { + limit = { # Avoid stacking similar traditions + culture_tradition:tradition_culture_blending = { is_in_list = traits } + culture_tradition:tradition_tgp_religious_hospitality = { is_in_list = traits } + } + multiply = 0.25 + } + if = { + limit = { # If you like to invade people, don't pick this tradition + culture_tradition:tradition_malleable_invaders = { is_in_list = traits } + } + multiply = 0 + } + } } \ No newline at end of file diff --git a/common/modifier_definition_formats/NEOW_definitions.txt b/common/modifier_definition_formats/NEOW_definitions.txt index b8f3553ae..2bc10c178 100644 --- a/common/modifier_definition_formats/NEOW_definitions.txt +++ b/common/modifier_definition_formats/NEOW_definitions.txt @@ -96,4 +96,8 @@ tells_levy_size = { decimals = 0 prefix = MOD_SOLDIER_PREFIX percent = yes +} + +likes_same_tradition = { + decimals = 0 } \ No newline at end of file diff --git a/common/on_action/yearly_on_actions.txt b/common/on_action/yearly_on_actions.txt index 310e3863a..614bb78fb 100644 --- a/common/on_action/yearly_on_actions.txt +++ b/common/on_action/yearly_on_actions.txt @@ -2517,6 +2517,28 @@ three_year_playable_pulse = { domicile = { move_domicile = scope:scoped_ruler.capital_province } } } + #same tradition opinion + if = { + limit = { + culture = { + has_cultural_parameter = likes_same_tradition + } + } + every_ruler = { + if = { + limit = { + culture = { + has_cultural_parameter = likes_same_tradition + } + } + add_opinion = { + target = PREV + modifier = same_tradition_opinion + opinion = 10 + } + } + } + } if = { # Inspirations for courtiers of Advancement Movement rulers limit = { has_dlc_feature = all_under_heaven diff --git a/common/opinion_modifiers/NEOW_opinion_modifiers.txt b/common/opinion_modifiers/NEOW_opinion_modifiers.txt new file mode 100644 index 000000000..43ebce51d --- /dev/null +++ b/common/opinion_modifiers/NEOW_opinion_modifiers.txt @@ -0,0 +1,3 @@ +same_tradition_opinion = { + opinion = 10 +} \ No newline at end of file