This commit is contained in:
Fishedotjpg 2026-11-18 14:01:14 +00:00
parent eaf472631b
commit 60fbfc1893
15 changed files with 2845 additions and 1349 deletions

View file

@ -168,6 +168,15 @@ convert_to_administrative_from_feudalism_effect = {
}
}
}
every_vassal = { # If we are republic make sure to convert patricians to admin noble families
limit = {
government_has_flag = government_is_republic
is_landed = no
}
add_character_flag = government_republic_conversion_protection
change_to_administrative_effect = yes
remove_character_flag = government_republic_conversion_protection
}
every_vassal = {
limit = {
highest_held_title_tier >= tier_duchy
@ -206,6 +215,11 @@ convert_to_administrative_from_feudalism_effect = {
convert_to_administrative_from_feudalism_game_start_effect = {
if = {
limit = { has_dlc_feature = roads_to_power }
# Vassals should not start the game grateful for holdings converted at game start.
save_scope_value_as = {
name = feudalize_without_opinion
value = yes
}
# Because we run this twice, since folks can change in the lobby.
if = {
limit = {
@ -241,6 +255,24 @@ convert_to_administrative_from_feudalism_game_start_effect = {
}
}
convert_to_administrative_from_tribalism_game_start_effect = {
if = {
limit = { has_dlc_feature = roads_to_power }
save_scope_as = actor
convert_to_administrative_from_feudalism_game_start_effect = yes
# Administrative governments cannot use tribal holdings
# change_to_administrative_effect only converts capitals, so we convert the rest here
every_realm_province = {
limit = {
has_holding_type = tribal_holding
province_owner ?= { government_has_mechanic = administrative }
}
holding_convert_tribal_keeping_buildings_effect = { HOLDING = castle_holding }
}
}
}
apply_historic_administrative_game_rule_effect = {
# We'll be doing some excessive triggers below in a bid to lightly future-proof + error-spam mods less, don't worry about it.
## We also do player-specific realms separately — we need to know what their realm is so we do it after the lobby exclusively.
@ -276,7 +308,7 @@ apply_historic_administrative_game_rule_effect = {
}
if = {
limit = { has_game_rule = historicity_extra_admin_ghana_historic_always }
title:k_ghana.holder ?= { convert_to_administrative_from_feudalism_game_start_effect = yes }
title:k_ghana.holder ?= { convert_to_administrative_from_tribalism_game_start_effect = yes }
}
}
# Kabulistan/the Ghaznivids.