This commit is contained in:
Magpie490 2025-06-02 20:39:49 +01:00
parent cda3acdcea
commit bd478172ec
6 changed files with 164 additions and 17 deletions

View file

@ -895,8 +895,8 @@
estate = { estate = {
allowed_for_character = { allowed_for_character = {
OR ={ OR ={
has_government = administrative_government government_has_flag = government_is_special_republic
has_government = republic_government government_has_flag = government_is_administrative
} }
} }

View file

@ -275,7 +275,7 @@ administrative_government = {
rulers_should_have_dynasty = yes rulers_should_have_dynasty = yes
dynasty_named_realms = no dynasty_named_realms = no
royal_court = yes royal_court = yes
#administrative = yes administrative = yes
landless_playable = yes landless_playable = yes
legitimacy = yes legitimacy = yes
#state_faith = yes #state_faith = yes

View file

@ -521,23 +521,16 @@ on_title_gain = {
# Note: anything that should be run after creation can go in on_noble_family_title_created # Note: anything that should be run after creation can go in on_noble_family_title_created
if = { if = {
limit = { limit = {
government_has_flag = government_is_administrative OR = {
is_house_head = yes government_has_flag = government_is_administrative
highest_held_title_tier >= tier_duchy government_has_flag = government_is_special_republic
}
highest_held_title_tier >= tier_county
liege = { liege = {
is_independent_ruler = yes is_independent_ruler = yes
government_has_flag = government_is_administrative government_has_flag = government_is_administrative
} }
NOR = {
any_held_title = { is_noble_family_title = yes }
house = {
any_house_member = {
any_held_title = { is_noble_family_title = yes }
}
}
}
} }
create_noble_family_effect = yes
domicile ?= { set_up_domicile_estate_effect = yes } domicile ?= { set_up_domicile_estate_effect = yes }
} }
# Apply Law of the Land title succession law if appropriate # Apply Law of the Land title succession law if appropriate

View file

@ -0,0 +1,155 @@

change_to_administrative_hereditary_effect = {
scope:recipient = {
save_scope_as = petition_vassal
every_held_title = {
limit = {
tier = scope:petition_vassal.highest_held_title_tier
is_landless_type_title = no
is_noble_family_title = no
}
custom_tooltip = {
text = petition_liege_house_governorship_rights_tt
set_variable = {
name = petition_house_rights
value = scope:petition_vassal.house
years = 100
}
}
}
}
}
change_to_administrative_effect = {
save_scope_as = governor
if = {
limit = {
NOT = { government_has_flag = government_is_administrative }
}
change_government = administrative_government
save_scope_as = new_admin
}
if = {
limit = {
primary_title.tier >= tier_duchy
liege = {
is_independent_ruler = yes
government_allows = administrative
}
house.house_head = {
NOT = {
any_held_title = { is_noble_family_title = yes }
}
}
}
create_noble_family_effect = yes
}
hidden_effect = {
if = {
limit = {
is_governor = yes
NOT = { has_trait = governor }
}
add_trait = governor
}
}
if = {
limit = { exists = scope:new_admin }
domicile ?= {
set_up_domicile_estate_effect = yes
}
}
}
change_to_administrative_interaction_effect = {
scope:actor = {
pay_short_term_gold = {
target = scope:recipient
gold = {
value = 50
scope:recipient = {
if = {
limit = { highest_held_title_tier >= tier_kingdom }
multiply = 10
}
else_if = {
limit = { highest_held_title_tier >= tier_duchy }
multiply = 6
}
else_if = {
limit = { highest_held_title_tier >= tier_county }
multiply = 3
}
}
if = {
limit = { scope:gold ?= yes }
add = scope:actor.medium_gold_value
}
if = {
limit = {
scope:actor = { has_realm_law_flag = admin_change_vassal_gov_cheaper }
}
multiply = 0.5
}
}
}
}
scope:recipient = { change_to_administrative_effect = yes }
if = {
limit = {
scope:hook = yes
scope:actor = { has_usable_hook = scope:recipient }
}
scope:actor = { use_hook = scope:recipient }
}
if = {
limit = { scope:hereditary = yes }
scope:recipient = { save_scope_as = petition_vassal }
change_to_administrative_hereditary_effect = yes
}
if = {
limit = { scope:influence = yes }
scope:actor = {
change_influence = {
value = massive_influence_loss
}
}
}
}
set_up_domicile_estate_effect = {
if = {
limit = { is_domicile_type = estate }
# Intentionally one level lower than what you can get
if = {
limit = {
NOT = { has_domicile_building_or_higher = estate_main_02 }
owner.culture ?= { has_innovation = innovation_city_planning }
}
add_domicile_building = estate_main_02
}
if = {
limit = {
has_domicile_building = estate_main_02
NOT = { has_domicile_building_or_higher = estate_main_03 }
owner.culture ?= { has_innovation = innovation_manorialism }
}
add_domicile_building = estate_main_03
}
switch = {
trigger = has_domicile_building
estate_main_03 = {
while = {
count = 2
add_random_internal_estate_building = yes
}
}
estate_main_02 = {
add_random_internal_estate_building = yes
}
}
fill_external_estate_building_effect = yes
}
}

View file

@ -364,7 +364,6 @@ is_governor_or_admin_count = {
is_landless_administrative = { is_landless_administrative = {
government_has_flag = government_is_administrative government_has_flag = government_is_administrative
is_landed = no is_landed = no
is_house_head = yes
has_domicile = yes has_domicile = yes
} }

View file

@ -383,7 +383,7 @@ can_keep_acclamation_succession_law_trigger = {
} }
OR = { OR = {
can_have_acclamation_succession_law_trigger = yes can_have_acclamation_succession_law_trigger = yes
has_title = title:e_byzantium has_title = title:e_britannia
} }
} }
} }