Skip to content

Commit

Permalink
goblins get claim on appropriate county
Browse files Browse the repository at this point in the history
  • Loading branch information
sumankun committed Oct 3, 2023
1 parent 246a80c commit d8e58ee
Showing 1 changed file with 49 additions and 1 deletion.
50 changes: 49 additions & 1 deletion events/wc_events/wc_goblin_loan_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,60 @@ goblin_loan.201 = {
}
}
}

if = {
limit = {
exists = title:e_trade_coalition.holder
}
title:e_trade_coalition.holder = { save_scope_as = my_title_claimer }
}
else_if = {
limit = {
any_ruler = {
has_faith = faith:cult_of_wealth
is_landed = yes
}
}
random_ruler = {
limit = { has_faith = faith:cult_of_wealth is_landed = yes }
save_scope_as = my_title_claimer
}
}
else = {
title:k_goblin_bankers.holder = {
save_scope_as = my_title_claimer
}
}
if = {
limit = {
any_sub_realm_county = {
always = yes
}
}
random_sub_realm_county = {
weight = {
base = 1
modifier = {
add = 50
is_coastal_county = yes
}
modifier = {
add = 500
is_neighbor_to_realm = scope:my_title_claimer
}
}
save_scope_as = claimed_title
}
}
scope:my_title_claimer = {
add_pressed_claim = scope:claimed_title
}

scope:recipient = {
add_opinion = {
modifier = not_repay_loan_opinion
target = root
}
add_pressed_claim = root.capital_county
}
if = { #are we still of the same faith?
limit = {
Expand Down

0 comments on commit d8e58ee

Please sign in to comment.