diff --git a/events/wc_events/wc_goblin_loan_events.txt b/events/wc_events/wc_goblin_loan_events.txt index 2dbaac72c4..2af38e699a 100644 --- a/events/wc_events/wc_goblin_loan_events.txt +++ b/events/wc_events/wc_goblin_loan_events.txt @@ -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 = {