A lot of updating, making republics work
This commit is contained in:
parent
09fb57c091
commit
4d6f569e96
99 changed files with 9792 additions and 9342 deletions
|
|
@ -148,14 +148,6 @@ yearly_global_pulse = {
|
|||
}
|
||||
}
|
||||
}
|
||||
#Yearly Imperial Grace Reduction for Hegemonic Tributaries
|
||||
if = {
|
||||
limit = {
|
||||
exists = suzerain
|
||||
suzerain = { highest_held_title_tier = tier_hegemony }
|
||||
NOT = { exists = suzerain.top_participant_group:dynastic_cycle }
|
||||
}
|
||||
}
|
||||
# Empire Faith Gate: multi-empire-same-faith legitimacy (iterate list, not every_independent_ruler).
|
||||
if = {
|
||||
limit = { empire_faith_gate_enabled_trigger = yes }
|
||||
|
|
@ -226,16 +218,15 @@ yearly_global_pulse = {
|
|||
NOT = { this = scope:efg_ruler }
|
||||
efg_same_faith_empire_holder_trigger = yes
|
||||
scope:efg_ruler = {
|
||||
NOR = {
|
||||
NOT = {
|
||||
has_relation_rival = prev
|
||||
has_relation_nemesis = prev
|
||||
}
|
||||
}
|
||||
}
|
||||
scope:efg_ruler = {
|
||||
set_relation_rival = {
|
||||
target = prev
|
||||
reason = efg_contested_empire_rivalry
|
||||
set_relation_rival_effect = {
|
||||
TARGET = prev
|
||||
REASON = efg_contested_empire_rivalry
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -606,23 +597,35 @@ yearly_playable_pulse = {
|
|||
# Yearly house head opinion update: to change into only one log maybe?
|
||||
if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_clan
|
||||
OR = {
|
||||
government_has_flag = government_uses_house_unity
|
||||
government_has_flag = government_uses_company_sentiment
|
||||
}
|
||||
exists = house
|
||||
is_house_head = yes
|
||||
}
|
||||
save_scope_as = unity_target
|
||||
if = {
|
||||
limit = {
|
||||
has_variable = {
|
||||
name = steer_unity_towards_harmonious_passive_gain
|
||||
name = steer_unity_towards_antagonistic_passive_loss
|
||||
OR = {
|
||||
has_character_flag = steer_unity_towards_harmonious_passive_gain
|
||||
has_character_flag = steer_unity_towards_ennobled_passive_gain
|
||||
has_character_flag = steer_unity_towards_antagonistic_passive_loss
|
||||
has_character_flag = steer_unity_towards_rapacious_passive_loss
|
||||
}
|
||||
}
|
||||
house = {
|
||||
add_unity_value = {
|
||||
value = {
|
||||
if = {
|
||||
limit = { root = { has_character_flag = steer_unity_towards_harmonious_passive_gain } }
|
||||
limit = {
|
||||
root = {
|
||||
OR = {
|
||||
has_character_flag = steer_unity_towards_harmonious_passive_gain
|
||||
has_character_flag = steer_unity_towards_ennobled_passive_gain
|
||||
}
|
||||
}
|
||||
}
|
||||
add = medium_unity_gain
|
||||
}
|
||||
else = {
|
||||
|
|
@ -816,6 +819,7 @@ yearly_playable_pulse = {
|
|||
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { government_has_flag = government_has_merchant_company }
|
||||
OR = {
|
||||
NOT = { government_allows = noble_families }
|
||||
AND = {
|
||||
|
|
@ -847,7 +851,7 @@ yearly_playable_pulse = {
|
|||
}
|
||||
admin_change_government_effect = yes
|
||||
}
|
||||
# Failsafe to ensure we don't have a noble family holding land without other titles - Give any held land to liege
|
||||
# Failsafe so a noble family is not left holding only barony or lower landed titles. Any land they hold goes to the liege
|
||||
else_if = {
|
||||
limit = {
|
||||
# They are a Vassal
|
||||
|
|
@ -858,23 +862,11 @@ yearly_playable_pulse = {
|
|||
save_temporary_scope_as = nf_title_temp
|
||||
}
|
||||
# And no other high tier Titles
|
||||
trigger_if = {
|
||||
limit = { government_has_flag = government_has_county_tier_noble_families }
|
||||
NOT = {
|
||||
any_held_title = {
|
||||
tier >= tier_county
|
||||
is_noble_family_title = no
|
||||
is_landless_type_title = no
|
||||
}
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
NOT = {
|
||||
any_held_title = {
|
||||
tier >= tier_duchy
|
||||
is_noble_family_title = no
|
||||
is_landless_type_title = no
|
||||
}
|
||||
NOT = {
|
||||
any_held_title = {
|
||||
tier >= tier_county
|
||||
is_noble_family_title = no
|
||||
is_landless_type_title = no
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -887,6 +879,7 @@ yearly_playable_pulse = {
|
|||
limit = {
|
||||
is_landless_type_title = no
|
||||
is_noble_family_title = no
|
||||
is_capital_barony = no
|
||||
}
|
||||
add_to_list = revoked_titles
|
||||
}
|
||||
|
|
@ -1114,13 +1107,8 @@ yearly_playable_pulse = {
|
|||
is_ai = no
|
||||
has_government = landless_adventurer_government
|
||||
location != domicile.domicile_location
|
||||
is_imprisoned = no
|
||||
is_travelling = no
|
||||
NOT = {
|
||||
exists = involved_activity
|
||||
}
|
||||
should_in_default_location_trigger = yes
|
||||
num_taken_task_contracts <= 0
|
||||
is_commanding_army = no
|
||||
}
|
||||
set_location_to_default = yes
|
||||
}
|
||||
|
|
@ -1128,6 +1116,7 @@ yearly_playable_pulse = {
|
|||
limit = {
|
||||
government_allows = merit
|
||||
}
|
||||
military_service_yearly_merit_effect = yes
|
||||
if = {
|
||||
limit = {
|
||||
is_landed = yes
|
||||
|
|
@ -1139,13 +1128,7 @@ yearly_playable_pulse = {
|
|||
location != root.capital_province
|
||||
}
|
||||
trigger_else = { always = yes }
|
||||
is_imprisoned = no
|
||||
is_travelling = no
|
||||
is_commanding_army = no
|
||||
NOR = {
|
||||
exists = involved_activity
|
||||
exists = knight_army
|
||||
}
|
||||
should_in_default_location_trigger = yes
|
||||
}
|
||||
set_location_to_default = yes
|
||||
}
|
||||
|
|
@ -1161,13 +1144,7 @@ yearly_playable_pulse = {
|
|||
location != root.domicile.domicile_location
|
||||
}
|
||||
trigger_else = { always = yes }
|
||||
is_imprisoned = no
|
||||
is_travelling = no
|
||||
is_commanding_army = no
|
||||
NOR = {
|
||||
exists = involved_activity
|
||||
exists = knight_army
|
||||
}
|
||||
should_in_default_location_trigger = yes
|
||||
}
|
||||
set_location_to_default = yes
|
||||
}
|
||||
|
|
@ -1184,11 +1161,14 @@ yearly_playable_pulse = {
|
|||
}
|
||||
remove_character_modifier = mpo_confederation_member_modifier
|
||||
}
|
||||
# Stray player Herders get turned into Nomads
|
||||
# Stray player Herders get turned into Nomads, as do Herders that have grown past a single county
|
||||
if = {
|
||||
limit = {
|
||||
is_ai = no
|
||||
government_has_flag = government_is_herder
|
||||
OR = {
|
||||
is_ai = no
|
||||
highest_held_title_tier > tier_county
|
||||
}
|
||||
}
|
||||
every_held_title = {
|
||||
limit = {
|
||||
|
|
@ -1203,6 +1183,11 @@ yearly_playable_pulse = {
|
|||
}
|
||||
change_government = nomad_government
|
||||
}
|
||||
#Estate office governor efficiency for house members
|
||||
if = {
|
||||
limit = { is_house_head = yes }
|
||||
house = { refresh_estate_household_clerks_house_modifier_effect = yes }
|
||||
}
|
||||
|
||||
######################
|
||||
# Various safeguarding against realm setups with landless participants
|
||||
|
|
@ -1822,7 +1807,7 @@ yearly_playable_pulse = {
|
|||
rite = { rite_has_parameter = tenet_love_thy_neighbour_county_bonus }
|
||||
any_held_county = {
|
||||
faith = prev.faith
|
||||
county_opinion >= 60
|
||||
popular_opinion >= 60
|
||||
NOT = {
|
||||
has_county_modifier = tenet_love_thy_neighbour_modifier
|
||||
}
|
||||
|
|
@ -1831,7 +1816,7 @@ yearly_playable_pulse = {
|
|||
random_held_county = {
|
||||
limit = {
|
||||
faith = prev.faith
|
||||
county_opinion >= 60
|
||||
popular_opinion >= 60
|
||||
NOT = {
|
||||
has_county_modifier = tenet_love_thy_neighbour_modifier
|
||||
}
|
||||
|
|
@ -2005,6 +1990,27 @@ yearly_playable_pulse = {
|
|||
trigger_event = accolade.0110
|
||||
}
|
||||
}
|
||||
|
||||
# GDP Trade Opportunities
|
||||
if = {
|
||||
limit = {
|
||||
is_landless_merchant = yes
|
||||
trigger_if = {
|
||||
limit = { is_ai = yes }
|
||||
is_available = yes
|
||||
}
|
||||
}
|
||||
random = {
|
||||
chance = {
|
||||
value = 70
|
||||
if = {
|
||||
limit = { has_character_flag = trade_opportunity_frequency_cooldown }
|
||||
subtract = 50
|
||||
}
|
||||
}
|
||||
trigger_event = { on_action = spawn_trade_opportunity_contract_on_action }
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { exists = puppeteer }
|
||||
|
|
@ -2683,12 +2689,7 @@ quarterly_playable_pulse = {
|
|||
realm_maintenance_quarterly_pulse
|
||||
|
||||
# Event pools
|
||||
stewardship_lifestyle_progress_pulse
|
||||
intrigue_lifestyle_progress_pulse
|
||||
diplomacy_lifestyle_progress_pulse
|
||||
martial_lifestyle_progress_pulse
|
||||
learning_lifestyle_progress_pulse
|
||||
wanderer_lifestyle_progress_pulse
|
||||
lifestyle_progress_pulse
|
||||
|
||||
# Relation pulses are spread out across the four quarterly pulses a year
|
||||
lover_quarterly_pulse
|
||||
|
|
@ -2724,6 +2725,18 @@ quarterly_playable_pulse = {
|
|||
}
|
||||
}
|
||||
|
||||
# A character only has one lifestyle, so at most one of these pulses can be valid
|
||||
lifestyle_progress_pulse = {
|
||||
first_valid_on_action = {
|
||||
stewardship_lifestyle_progress_pulse
|
||||
intrigue_lifestyle_progress_pulse
|
||||
diplomacy_lifestyle_progress_pulse
|
||||
martial_lifestyle_progress_pulse
|
||||
learning_lifestyle_progress_pulse
|
||||
wanderer_lifestyle_progress_pulse
|
||||
}
|
||||
}
|
||||
|
||||
# Called from code once a year for all "playable" characters, at a random point that year (individually for each character). Different time from the random_yearly_everyone_pulse (coincides by random 1 time out of 365)
|
||||
# Root is the character
|
||||
random_yearly_playable_pulse = {
|
||||
|
|
@ -2900,7 +2913,6 @@ random_yearly_everyone_pulse = {
|
|||
}
|
||||
on_actions = {
|
||||
yearly_health_pulse
|
||||
stress_pulse
|
||||
prison_maintenance_pulse
|
||||
house_feud_ai_scheme_pulse
|
||||
}
|
||||
|
|
@ -3007,6 +3019,8 @@ five_year_everyone_pulse = {
|
|||
move_budget_gold = { gold = long_term_gold from = budget_long_term to = budget_short_term }
|
||||
}
|
||||
|
||||
purge_excess_baron_gold_effect = yes # keep barons from hoarding gold they won't spend in their lifetime
|
||||
|
||||
# FP2 - Checks to start El Cid's Travels
|
||||
# if = {
|
||||
# limit = { # Am I El Cid?
|
||||
|
|
@ -3391,7 +3405,6 @@ on_yearly_events = {
|
|||
100 = vassal.2001 # Vassal wants liege to educate their child
|
||||
100 = vassal.2101 # No feast in a while, vassal requests it
|
||||
200 = vassal.2201 # You lend money from a vassal
|
||||
400 = vassal.2205 # Vassal reminds you of the money you owe them
|
||||
100 = vassal.2301 # Highly skilled vassal progresses development in province
|
||||
100 = vassal.2401 # Vassal wants gold, offers territory/better Vassal Contract
|
||||
100 = vassal.2451 # Vassal wants better contract, offers territory/gold
|
||||
|
|
@ -4131,8 +4144,12 @@ on_yearly_events = {
|
|||
100 = pam_theocratic_ruler_events.0010 # Theocratic ruler: proven warrior and pilgrim; marshal and chaplain counsel sword or crozier
|
||||
100 = pam_theocratic_ruler_events.0011 # Theocratic ruler: landed subject seeks church burial for fallen crusader kinsman
|
||||
100 = pam_theocratic_ruler_events.0013 # Theocratic ruler: angelic voice at mass; recruit for choir, seduce, or reject worldly song
|
||||
50 = pam_theocratic_ruler_events.0014 # Theocratic ruler: neighbouring convert urges adopting foreign core tenets at sermon
|
||||
50 = pam_theocratic_ruler_events.0014 # Theocratic ruler: neighboring convert urges adopting foreign core tenets at sermon
|
||||
50 = pam_theocratic_ruler_events.0015 # Theocratic ruler: prayer hearing with top two succession candidates
|
||||
50 = pam_theocratic_ruler_events.0016 # Theocratic ruler: two religious subordinates discuss faith over bread
|
||||
50 = pam_theocratic_ruler_events.0017 # Theocratic ruler: head of faith or rite notices ambitious church guidance
|
||||
50 = pam_theocratic_ruler_events.0018 # Theocratic ruler: bishop spends more time with mayors and merchants than at Mass
|
||||
50 = pam_theocratic_ruler_events.0019 # Theocratic ruler: liege and religious superior despise each other
|
||||
|
||||
# PAM Flavor Events
|
||||
50 = pam_generic_events.0001 # Gain Religious Scholar
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue