From 14f85aa03557d514c8c6cbd3a823526267a73105 Mon Sep 17 00:00:00 2001 From: Fishedotjpg Date: Wed, 18 Mar 2026 23:17:38 +0000 Subject: [PATCH] fixes to govs --- common/governments/00_government_types.txt | 4 - common/landed_titles/LAAMPs.txt | 20 +-- common/on_action/title_on_actions.txt | 68 +++------ common/on_action/yearly_on_actions.txt | 25 ++-- .../courtier_guest_management_events.txt | 131 +----------------- history/titles/NEOW_laamp_titles.txt | 22 +-- 6 files changed, 51 insertions(+), 219 deletions(-) diff --git a/common/governments/00_government_types.txt b/common/governments/00_government_types.txt index 4a19a275..a1792ad9 100644 --- a/common/governments/00_government_types.txt +++ b/common/governments/00_government_types.txt @@ -740,11 +740,9 @@ peasantrepublic_government = { flags = { government_is_settled may_elevate_co_monarch - government_uses_legitimacy government_uses_domain_limit government_has_herd government_uses_domicile_but_not_adventurer - government_has_powerful_families government_is_barterer government_is_prepublic government_locked_to_elective @@ -828,11 +826,9 @@ urbanrepublic_government = { government_is_settled government_has_treasury may_elevate_co_monarch - government_uses_legitimacy government_uses_domain_limit government_uses_monotowns government_uses_domicile_but_not_adventurer - government_has_powerful_families government_has_citizen_militia government_elections_and_tax_influenced_by_influence government_is_barterer diff --git a/common/landed_titles/LAAMPs.txt b/common/landed_titles/LAAMPs.txt index bbf3fc69..78d335c3 100644 --- a/common/landed_titles/LAAMPs.txt +++ b/common/landed_titles/LAAMPs.txt @@ -9,7 +9,7 @@ d_laamp_zolt = { ruler_uses_title_name = no always_follows_primary_heir = yes no_automatic_claims = yes - noble_family = yes + destroy_if_invalid_heir = yes ai_primary_priority = { add = @never_primary_score } @@ -24,7 +24,7 @@ d_laamp_test_jewish = { ruler_uses_title_name = no always_follows_primary_heir = yes no_automatic_claims = yes - noble_family = yes + destroy_if_invalid_heir = yes ai_primary_priority = { add = @never_primary_score } @@ -38,7 +38,7 @@ d_laamp_bookwyrm = { ruler_uses_title_name = no always_follows_primary_heir = yes no_automatic_claims = yes - noble_family = yes + destroy_if_invalid_heir = yes ai_primary_priority = { add = @never_primary_score } @@ -53,7 +53,7 @@ d_laamp_cool = { ruler_uses_title_name = no always_follows_primary_heir = yes no_automatic_claims = yes - noble_family = yes + destroy_if_invalid_heir = yes ai_primary_priority = { add = @never_primary_score } @@ -68,7 +68,7 @@ d_laamp_rostagnac = { ruler_uses_title_name = no always_follows_primary_heir = yes no_automatic_claims = yes - noble_family = yes + destroy_if_invalid_heir = yes ai_primary_priority = { add = @never_primary_score } @@ -83,7 +83,7 @@ d_laamp_knife = { ruler_uses_title_name = no always_follows_primary_heir = yes no_automatic_claims = yes - noble_family = yes + destroy_if_invalid_heir = yes ai_primary_priority = { add = @never_primary_score } @@ -98,7 +98,7 @@ d_laamp_cale_roman = { ruler_uses_title_name = no always_follows_primary_heir = yes no_automatic_claims = yes - noble_family = yes + destroy_if_invalid_heir = yes ai_primary_priority = { add = @never_primary_score } @@ -113,7 +113,7 @@ d_laamp_turkisch_simurghi = { ruler_uses_title_name = no always_follows_primary_heir = yes no_automatic_claims = yes - noble_family = yes + destroy_if_invalid_heir = yes ai_primary_priority = { add = @never_primary_score } @@ -127,7 +127,7 @@ d_laamp_beur_simurghi = { ruler_uses_title_name = no always_follows_primary_heir = yes no_automatic_claims = yes - noble_family = yes + destroy_if_invalid_heir = yes ai_primary_priority = { add = @never_primary_score } @@ -141,7 +141,7 @@ d_laamp_traveller_celtic = { ruler_uses_title_name = no always_follows_primary_heir = yes no_automatic_claims = yes - noble_family = yes + destroy_if_invalid_heir = yes ai_primary_priority = { add = @never_primary_score } diff --git a/common/on_action/title_on_actions.txt b/common/on_action/title_on_actions.txt index 0fe4d991..1972c741 100644 --- a/common/on_action/title_on_actions.txt +++ b/common/on_action/title_on_actions.txt @@ -252,10 +252,8 @@ on_title_gain = { limit = { government_has_flag = government_is_prepublic any_held_title = { - filter = { - title_tier > barony - is_nomad_title = no - } + title_tier > barony + is_nomad_title = no NOT = { has_title_law = saxon_elective_succession_law } @@ -292,10 +290,8 @@ on_title_gain = { limit = { government_has_flag = government_is_urepublic any_held_title = { - filter = { - title_tier > barony - is_nomad_title = no - } + title_tier > barony + is_nomad_title = no NOT = { has_title_law = urban_elective_succession_law } @@ -374,6 +370,7 @@ on_title_gain = { } else_if = { limit = { + NOT = { government_has_flag = government_allows_nomad_domicile_titles } exists = var:player_domicile_title } root = { @@ -389,6 +386,7 @@ on_title_gain = { title_domicile = { if = { limit = { + NOT = { government_has_flag = government_allows_nomad_domicile_titles } exists = root.dynasty scope:previous_holder.dynasty ?= root.dynasty } @@ -415,6 +413,7 @@ on_title_gain = { root = { random_held_title = { limit = { + NOT = { government_has_flag = government_allows_nomad_domicile_titles } is_nomad_title = yes exists = title_domicile NOT = { this = scope:title } @@ -439,6 +438,9 @@ on_title_gain = { root = { random_held_title = { limit = { + root = { + NOT = { government_has_flag = government_allows_nomad_domicile_titles } + } is_nomad_title = yes exists = title_domicile NOT = { this = scope:title } @@ -449,6 +451,7 @@ on_title_gain = { title_domicile = { if = { limit = { + NOT = { government_has_flag = government_allows_nomad_domicile_titles } exists = root.dynasty scope:previous_holder.dynasty ?= root.dynasty } @@ -473,6 +476,7 @@ on_title_gain = { if = { limit = { root = { + NOT = { government_has_flag = government_allows_nomad_domicile_titles } OR = { house.house_head ?= { this != root @@ -1655,30 +1659,6 @@ on_title_gain = { trigger_event = roman_restoration.0005 } #Mongol empire and GoK should lose other empires - if = { - limit = { - primary_title ?= { - OR = { - this = title:e_mongol_empire - AND = { - exists = global_var:greatest_of_khans_title - this = global_var:greatest_of_khans_title - } - } - } - scope:title = { - NOR = { - this = title:e_mongol_empire - AND = { - exists = global_var:greatest_of_khans_title - this = global_var:greatest_of_khans_title - } - } - } - is_ai = yes - } - destroy_title = scope:title - } # You just inherited an Emperor title!! if = { limit = { @@ -2964,10 +2944,8 @@ on_title_gain_inheritance = { limit = { government_has_flag = government_is_prepublic any_held_title = { - filter = { - title_tier > barony - is_nomad_title = no - } + title_tier > barony + is_nomad_title = no NOT = { has_title_law = saxon_elective_succession_law } @@ -3003,10 +2981,8 @@ on_title_gain_inheritance = { limit = { government_has_flag = government_is_urepublic any_held_title = { - filter = { - title_tier > barony - is_nomad_title = no - } + title_tier > barony + is_nomad_title = no NOT = { has_title_law = urban_elective_succession_law } @@ -3125,10 +3101,8 @@ on_title_gain_usurpation = { limit = { government_has_flag = government_is_prepublic any_held_title = { - filter = { - title_tier > barony - is_nomad_title = no - } + title_tier > barony + is_nomad_title = no NOT = { has_title_law = saxon_elective_succession_law } @@ -3164,10 +3138,8 @@ on_title_gain_usurpation = { limit = { government_has_flag = government_is_urepublic any_held_title = { - filter = { - title_tier > barony - is_nomad_title = no - } + title_tier > barony + is_nomad_title = no NOT = { has_title_law = urban_elective_succession_law } diff --git a/common/on_action/yearly_on_actions.txt b/common/on_action/yearly_on_actions.txt index c554ae26..0ec2cce7 100644 --- a/common/on_action/yearly_on_actions.txt +++ b/common/on_action/yearly_on_actions.txt @@ -777,10 +777,8 @@ yearly_playable_pulse = { limit = { government_has_flag = government_is_prepublic any_held_title = { - filter = { - title_tier > barony - is_nomad_title = no - } + title_tier > barony + is_nomad_title = no NOT = { has_title_law = saxon_elective_succession_law } @@ -816,10 +814,8 @@ yearly_playable_pulse = { limit = { government_has_flag = government_is_urepublic any_held_title = { - filter = { - title_tier > barony - is_nomad_title = no - } + title_tier > barony + is_nomad_title = no NOT = { has_title_law = urban_elective_succession_law } @@ -2134,6 +2130,7 @@ yearly_playable_pulse = { if = { limit = { is_ai = yes + NOT = { government_has_flag = government_allows_nomad_domicile_titles } } every_held_title = { limit = { @@ -2774,10 +2771,8 @@ quarterly_playable_pulse = { limit = { government_has_flag = government_is_prepublic any_held_title = { - filter = { - title_tier > barony - is_nomad_title = no - } + title_tier > barony + is_nomad_title = no NOT = { has_title_law = saxon_elective_succession_law } @@ -2813,10 +2808,8 @@ quarterly_playable_pulse = { limit = { government_has_flag = government_is_urepublic any_held_title = { - filter = { - title_tier > barony - is_nomad_title = no - } + title_tier > barony + is_nomad_title = no NOT = { has_title_law = urban_elective_succession_law } diff --git a/events/courtier_guest_management_events/courtier_guest_management_events.txt b/events/courtier_guest_management_events/courtier_guest_management_events.txt index 23f9f090..52a36f0f 100644 --- a/events/courtier_guest_management_events/courtier_guest_management_events.txt +++ b/events/courtier_guest_management_events/courtier_guest_management_events.txt @@ -617,139 +617,10 @@ courtier_guest_management.2001 = { } random_list = { 10 = { - save_scope_as = minority_leader - if = { - limit = { - player_heir ?= { - this != root - is_adult = yes - } - } - player_heir = { - save_scope_as = laamp_heir - save_scope_as = laamp_inheritor - custom_tooltip = become_landless_minority_decision_title_scope_tt - } - } - else_if = { - limit = { top_liege != this } - liege = { - save_scope_as = laamp_liege - save_scope_as = laamp_inheritor - custom_tooltip = become_landless_minority_decision_title_scope_tt - } - } - else = { - custom_tooltip = become_landless_minority_decision_title_created_tt - if = { - limit = { - NOT = { exists = scope:laamp_inheritor } - } - hidden_effect_new_object = { - create_character = { - template = laamp_inheritor_template - culture = root.culture - faith = root.faith - dynasty = generate - location = root.capital_province - after_creation = { - save_scope_as = laamp_inheritor - add_character_flag = new_laamp_inheritor - } - } - } - } - } - create_landless_minority_title_tooltip_effect = yes - show_as_tooltip = { - add_prestige = medium_prestige_gain - add_character_modifier = { - modifier = ep3_voluntary_laamp_character_modifier - years = 5 - } - } - primary_title = { save_scope_as = old_primary_title } - capital_province = { save_scope_as = old_capital_province } - if = { - limit = { top_liege != this } - liege = { save_scope_as = old_liege } - } - # Transfer landed titles - every_held_title = { - title_tier > barony - limit = { - OR = { - is_landless_type_title = no - is_nomad_title = yes - } - } - add_to_list = target_titles - } - create_title_and_vassal_change = { - type = conquest - save_scope_as = change - add_claim_on_loss = no - } - hidden_effect = { - every_in_list = { - list = target_titles - change_title_holder_include_vassals = { - holder = scope:laamp_inheritor - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - } - # Create Adventurer create_landless_minority_title_effect = { REASON = flag:voluntary FLAVOR_CHAR = scope:laamp_inheritor } - scope:laamp_inheritor = { - # Tooltip for player - custom_tooltip = become_landless_adventurer_decision_title_scope_tt - # Create a loving family so inheritance isn't so borked - if = { - limit = { has_character_flag = new_laamp_inheritor } - trigger_event = game_rule.1001 - remove_character_flag = new_laamp_inheritor - } - } - hidden_effect = { - every_held_title = { - limit = { - is_noble_family_title = yes - } - root = { destroy_title = prev } - } - } - # Debug tracking - if = { - limit = { - is_ai = yes - debug_only = yes - } - if = { - limit = { exists = global_var:ai_voluntary_laamp_count } - change_global_variable = { - name = ai_voluntary_laamp_count - add = 1 - } - } - else = { - set_global_variable = { - name = ai_voluntary_laamp_count - value = 1 - } - } - debug_log = "AI became adventurer voluntarily" - debug_log_scopes = yes - } - stress_impact = { - craven = minor_stress_impact_gain - content = minor_stress_impact_gain - lazy = minor_stress_impact_gain - } } 60 = { } @@ -1419,7 +1290,7 @@ courtier_guest_management.4002 = { #Counteract bonus in above value somewhat modifier = { culture = { has_cultural_tradition = tradition_diasporic } - add = 75 + add = -10 } modifier = { has_trait = historical_character diff --git a/history/titles/NEOW_laamp_titles.txt b/history/titles/NEOW_laamp_titles.txt index 4f90cc3f..ed0909e0 100644 --- a/history/titles/NEOW_laamp_titles.txt +++ b/history/titles/NEOW_laamp_titles.txt @@ -6,7 +6,7 @@ # succession_laws = { landless_adventurer_succession_law } # effect = { # create_landless_adventurer_title_history_effect = yes -# set_variable = { name = adventurer_creation_reason value = flag:historical } +# set_variable = { name = adventurer_creation_reason value = flag:voluntary } # destroy_landless_title_no_dlc_effect = { DATE = 2555.1.1 } # } # } @@ -20,7 +20,7 @@ d_laamp_test_jewish = { succession_laws = { confederate_partition_succession_law } effect = { create_landless_minority_title_history_effect = yes - set_variable = { name = adventurer_creation_reason value = flag:historical } + set_variable = { name = adventurer_creation_reason value = flag:voluntary } destroy_landless_title_no_dlc_effect = { DATE = 2555.1.1 } } } @@ -34,7 +34,7 @@ d_laamp_cale_roman = { succession_laws = { confederate_partition_succession_law } effect = { create_landless_minority_title_history_effect = yes - set_variable = { name = adventurer_creation_reason value = flag:historical } + set_variable = { name = adventurer_creation_reason value = flag:voluntary } destroy_landless_title_no_dlc_effect = { DATE = 2555.1.1 } } } @@ -47,7 +47,7 @@ d_laamp_traveller_celtic = { succession_laws = { confederate_partition_succession_law } effect = { create_landless_minority_title_history_effect = yes - set_variable = { name = adventurer_creation_reason value = flag:historical } + set_variable = { name = adventurer_creation_reason value = flag:voluntary } destroy_landless_title_no_dlc_effect = { DATE = 2555.1.1 } } } @@ -60,7 +60,7 @@ d_laamp_turkisch_simurghi = { succession_laws = { confederate_partition_succession_law } effect = { create_landless_minority_title_history_effect = yes - set_variable = { name = adventurer_creation_reason value = flag:historical } + set_variable = { name = adventurer_creation_reason value = flag:voluntary } destroy_landless_title_no_dlc_effect = { DATE = 2555.1.1 } } } @@ -74,7 +74,7 @@ d_laamp_beur_simurghi = { succession_laws = { confederate_partition_succession_law } effect = { create_landless_minority_title_history_effect = yes - set_variable = { name = adventurer_creation_reason value = flag:historical } + set_variable = { name = adventurer_creation_reason value = flag:voluntary } destroy_landless_title_no_dlc_effect = { DATE = 2555.1.1 } } } @@ -89,7 +89,7 @@ d_laamp_zolt = { # Saltpites succession_laws = { landless_adventurer_succession_law } effect = { create_landless_adventurer_title_history_effect = yes - set_variable = { name = adventurer_creation_reason value = flag:historical } + set_variable = { name = adventurer_creation_reason value = flag:voluntary } destroy_landless_title_no_dlc_effect = { DATE = 2555.1.1 } } } @@ -103,7 +103,7 @@ d_laamp_bookwyrm = { # Word-Bearers succession_laws = { landless_adventurer_succession_law } effect = { create_landless_adventurer_title_history_effect = yes - set_variable = { name = adventurer_creation_reason value = flag:historical } + set_variable = { name = adventurer_creation_reason value = flag:voluntary } destroy_landless_title_no_dlc_effect = { DATE = 2555.1.1 } } } @@ -117,7 +117,7 @@ d_laamp_cool = { # Word-Bearers succession_laws = { landless_adventurer_succession_law } effect = { create_landless_adventurer_title_history_effect = yes - set_variable = { name = adventurer_creation_reason value = flag:historical } + set_variable = { name = adventurer_creation_reason value = flag:voluntary } destroy_landless_title_no_dlc_effect = { DATE = 2555.1.1 } } } @@ -131,7 +131,7 @@ d_laamp_rostagnac = { # Cadets of Gascony succession_laws = { landless_adventurer_succession_law } effect = { create_landless_adventurer_title_history_effect = yes - set_variable = { name = adventurer_creation_reason value = flag:historical } + set_variable = { name = adventurer_creation_reason value = flag:voluntary } destroy_landless_title_no_dlc_effect = { DATE = 2555.1.1 } } } @@ -145,7 +145,7 @@ d_laamp_knife = { # Leather Aprons succession_laws = { landless_adventurer_succession_law } effect = { create_landless_adventurer_title_history_effect = yes - set_variable = { name = adventurer_creation_reason value = flag:historical } + set_variable = { name = adventurer_creation_reason value = flag:voluntary } destroy_landless_title_no_dlc_effect = { DATE = 2555.1.1 } } }