This commit is contained in:
Magpie490 2025-11-03 17:48:51 +00:00
parent b735c08fb6
commit eebbb7d32c
16 changed files with 222 additions and 99 deletions

View file

@ -58,14 +58,7 @@ republic_government = {
replace_gold_cost_by_treasury = yes replace_gold_cost_by_treasury = yes
admin_allows_holding_multiple_primary_tier_titles = yes admin_allows_holding_multiple_primary_tier_titles = yes
} }
main_administrative_tier = county
ai = {
arrange_marriage = no
use_goals = no
use_scripted_guis = no
perform_religious_reformation = no
use_legends = no
}
vassal_contract_group = republic_vassal vassal_contract_group = republic_vassal
@ -77,6 +70,7 @@ republic_government = {
government_is_settled government_is_settled
government_uses_domain_limit government_uses_domain_limit
government_uses_domicile_but_not_adventurer government_uses_domicile_but_not_adventurer
government_has_house_blocs
} }
mechanic_type = administrative mechanic_type = administrative
@ -427,9 +421,9 @@ administrative_government = {
royal_court = top_liege royal_court = top_liege
domicile_type = estate domicile_type = estate
main_administrative_tier = duchy main_administrative_tier = county
min_appointment_tier = duchy min_appointment_tier = county
minimum_provincial_maa_tier = duchy minimum_provincial_maa_tier = county
fallback = 3 fallback = 3
@ -479,6 +473,7 @@ administrative_government = {
government_uses_domicile_but_not_adventurer government_uses_domicile_but_not_adventurer
government_uses_domain_limit government_uses_domain_limit
government_uses_admin_province_obligations government_uses_admin_province_obligations
government_has_house_blocs
} }
mechanic_type = administrative mechanic_type = administrative

View file

@ -1,123 +1,198 @@
republic_government_obligations = { republic_government_obligations = {
display_mode = radiobutton
is_shown = {
scope:subject.primary_title.tier >= tier_county
}
obligation_levels = { obligation_levels = {
default = { republic_administrative_province_standard = {
levies = { default = yes
scope:liege = { position = { 0 0 }
if = { icon = "gfx/interface/icons/celestial_administration_types/icon_standard_republic_administration.dds"
limit = { gui_tags = { civilian }
scope:vassal = {
primary_title.tier >= tier_county
}
culture = {
has_cultural_parameter = republican_vassals_pay_more
}
}
value = {
add = 0.15
# Add an extra with the right perk
if = {
limit = {
dynasty ?= {
has_dynasty_perk = fp2_urbanism_legacy_3
}
}
add = 0.15
}
}
}
else = {
value = {
add = 0.1
# Add an extra with the right perk
if = {
limit = {
dynasty ?= {
has_dynasty_perk = fp2_urbanism_legacy_3
}
}
add = 0.15
}
}
}
}
}
tax = {
scope:liege = {
if = {
limit = { government_has_flag = government_is_tribal }
value = {
add = 0.05
# Add an extra with the right perk
ai_liege_desire = {
value = 0
if = { if = {
limit = { limit = {
dynasty ?= { scope:subject = { is_ai = yes }
has_dynasty_perk = fp2_urbanism_legacy_3
} }
add = 1
# Cautious AI should tend to have a minor bias towards the default
if = {
limit = {
scope:liege = { ai_has_cautious_personality = yes }
} }
add = 0.15 add = 1
} }
} }
} }
else_if = { ai_subject_desire = 0
score = 0
color = { 0.7 0.7 0.7 1.0 }
enable_title_maa = no
flag = japan_administrative_province_standard
}
republic_administrative_province_trade = {
position = { 1 0 }
icon = "gfx/interface/icons/celestial_administration_types/icon_industrial_republic_administration.dds"
gui_tags = { civilian }
ai_liege_desire = {
value = 0
if = {
limit = { limit = {
scope:subject = { scope:subject = {
primary_title.tier >= tier_county is_ai = yes
} OR = {
culture = { has_trait = education_stewardship
has_cultural_parameter = republican_vassals_pay_more stewardship >= very_high_skill_rating
} }
} }
value = { }
add = 0.3 add = 2
# Add an extra with the right perk
# Economical AI wants more of civic vassals
if = { if = {
limit = { limit = {
dynasty ?= { scope:liege = { ai_has_builder_or_pious_builder_personality = yes }
has_dynasty_perk = fp2_urbanism_legacy_3
} }
} add = 1
add = 0.15
} }
} }
} }
else = { ai_subject_desire = 0
value = {
add = 0.2
# Add an extra with the right perk
if = { score = 0
limit = { color = { 0.2 0.2 0.7 1.0 }
dynasty ?= {
has_dynasty_perk = fp2_urbanism_legacy_3 is_valid = {
trigger_if = {
limit = { exists = this }
# Only for direct vassals of the top liege
scope:liege.top_liege = this
}
# There can only be a limited number of industries at a time
custom_tooltip = {
text = japan_administrative_province_trade_amount_desc
OR = {
scope:liege = {
any_vassal = {
count < japan_administrative_province_trade_max_value
vassal_contract_has_flag = japan_administrative_province_trade
} }
} }
add = 0.15
}
}
}
}
}
contribution_desc = {
first_valid = {
triggered_desc = {
trigger = { scope:liege = { government_has_flag = government_is_tribal } }
desc = "tribal_liege_inefficiency"
}
triggered_desc = {
trigger = {
scope:subject = { scope:subject = {
primary_title.tier >= tier_county OR = {
} vassal_contract_has_flag = japan_administrative_province_trade
scope:liege.culture = { any_sub_realm_county = { is_coastal_county = yes } # Is a coastal province
has_cultural_parameter = republican_vassals_pay_more
}
}
desc = "republican_vassals_pay_more_parameter"
} }
} }
} }
} }
} }
tax_factor = 0.25
enable_title_maa = no
subject_modifier = {
development_growth_factor = 0.15
build_gold_cost = -0.1
build_speed = -0.2
}
flag = admin_ai_is_builder
flag = japan_administrative_province_trade
flag = obligation_high_taxes
}
republic_administrative_province_military = {
position = { 0 1 }
icon = "gfx/interface/icons/celestial_administration_types/icon_military_republic_administration.dds"
gui_tags = { military }
ai_liege_desire = {
value = 0
if = {
limit = {
scope:subject = {
is_ai = yes
OR = {
has_trait = education_martial
martial >= very_high_skill_rating
primary_title = {
any_owned_title_maa_regiment = { count >= 3 }
}
any_sub_realm_county = { # Is a border province
any_neighboring_county = { holder.top_liege != scope:subject.top_liege }
}
}
}
}
add = 2
# Preference for vassals along the border
if = {
limit = {
scope:subject = {
any_sub_realm_county = {
any_neighboring_county = { holder.top_liege != scope:subject.top_liege }
}
}
}
add = 3
}
# Warlike AI wants more military vassals
if = {
limit = {
scope:liege = { ai_has_warlike_personality = yes }
}
add = 1
}
}
}
ai_subject_desire = 0
score = 0
color = { 0.7 0.2 0.2 1.0 }
is_valid = {
trigger_if = {
limit = { exists = this }
# Only for direct vassals of the top liege
scope:liege.top_liege = this
}
# There can only be a limited number of militaries at a time
custom_tooltip = {
text = japan_administrative_province_military_amount_desc
OR = {
scope:liege = {
any_vassal = {
count < japan_administrative_province_military_max_value
vassal_contract_has_flag = japan_administrative_province_military
}
}
scope:subject = { vassal_contract_has_flag = japan_administrative_province_military }
}
}
}
levies_factor = 0.5
subject_modifier = {
development_growth_factor = -0.2
monthly_county_control_growth_factor = 0.1
fort_level = 1
defender_advantage = 2
men_at_arms_maintenance = -0.15
}
flag = japan_administrative_province_military
flag = japan_administrative_military_appointment
flag = obligation_high_levies
}
}
} }

View file

@ -11,3 +11,17 @@
NEOW_religious_decision.0001.aerosaurs:0 "Aerosaurs, Catchers of Stars!" NEOW_religious_decision.0001.aerosaurs:0 "Aerosaurs, Catchers of Stars!"
NEOW_religious_decision.0001.optout:0 "$religious_decision.0101.flavor$" NEOW_religious_decision.0001.optout:0 "$religious_decision.0101.flavor$"
NEOW_religious_decision.0001.flavor:0 "$religious_decision.0101.flavor$" NEOW_religious_decision.0001.flavor:0 "$religious_decision.0101.flavor$"
republic_administrative_province_standard: "@government_type_republic! Standard Administration"
republic_administrative_province_standard_short: "Standard"
republic_administrative_province_standard_text_icon: "@government_type_republic!"
republic_administrative_province_standard_desc: "#low A civil type that attends to the everyday needs of the government and the local inhabitants#!"
republic_administrative_province_trade: "@government_type_republic! Industrial Administration"
republic_administrative_province_trade_short: "Industrial"
republic_administrative_province_trade_text_icon: "@government_type_republic!"
republic_administrative_province_trade_desc: "#low A civil administration that focuses on maritime commerce and long-term development.#!"
republic_administrative_province_trade_amount_desc: "$republic_administrative_province_trade_short$ limit reached"
republic_administrative_province_military: "@government_type_republic! Military Administration"
republic_administrative_province_military_short: "Military"
republic_administrative_province_military_text_icon: "@government_type_republic!"
republic_administrative_province_military_desc: "#low A military administration focused on fortification and recruitment. Providing the realm with the means of protecting itself, or expanding its borders when necessary.#!"
republic_administrative_province_military_amount_desc: "$republic_administrative_province_military_short$ limit reached"