fixes to govs
This commit is contained in:
parent
88999f79d2
commit
e92b2940f2
6 changed files with 51 additions and 219 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue