
Peace Treaty
Expand Clan Influence
Our clan shall rise higher still, claiming new rights and lands at the expense of those who opposed us.
GoshoBuildingeffect
KokufuBuildingeffect
ShōenBuildingselect trigger
YakataBuildingeffect
YamashiroBuildingselect trigger
Expand Clan AuthorityCasus Bellipotential
Rebel Against the Shōgun AuthorityCasus Bellipotential
Nanbokuchō JidaiCasus Bellipotential
Sengoku JidaiCasus Bellipotential
Japanese ShogunateInternational OrganizationpotentialDefinitionin_game/common/peace_treaties/expand_clan_influence.txt:1
3cost = {
4add = {
5desc = "DIPLOREASON_BASE" Base
6value = 5
}
8add = {
9desc = "game_concept_population" Population
10value = scope:loser.total_population
11multiply = 0.009
}
}
15base_antagonism = {
16add = {
17desc = "game_concept_population" Population
18value = scope:loser.total_population
19multiply = 0.009
}
}
22antagonism_type = antagonism_peace_expand_clan_influence
24potential = {
25scope:war = {
26OR = {
27is_no_cb_war = yes
}
}
34scope:winner = {
35OR = {
36has_reform = government_reform:japanese_clan
37has_reform = government_reform:japanese_imperial_family
}
}
40scope:loser = {
}
}
43select_trigger = {
44looking_for_a = location
45source = recipient
46target_flag = target
47visible = {
48trigger_if = {
49limit = {
49scope:recipient ?= {
49country_type = building
}
}
50any_foreign_building_countries_in_location = {
50this = scope:recipient
}
}
52trigger_else = {
53owner ?= scope:recipient
54NOT = {
55any_foreign_buildings_in_location = {
56owner = scope:actor
}
}
}
}
}
67allow = {
}
70effect = {
71if = {
72limit = {
73exists = scope:target
}
75if = {
76limit = {
77scope:loser ?= {
77country_type = building
}
78scope:target = {
78any_foreign_building_countries_in_location = {
78this = scope:loser
}
}
}
80custom_tooltip = {
81text = expand_clan_influence_other.tt We will get ownership of Loser's territory in Target
82scope:target = {
83every_foreign_buildings_in_location = {
84limit = {
84owner = scope:loser
}
85if = {
86limit = {
88scope:winner = {
88has_reform = government_reform:japanese_clan
}
}
90location = {
91destroy_building = prev
92construct_building = {
94instant = yes
95owner = scope:winner
96cost_multiplier = 0
97cost_multiplier_reason = "game_concept_event"
}
}
}
101else_if = {
102limit = {
104scope:winner = {
104has_reform = government_reform:japanese_imperial_family
}
}
106location = {
107destroy_building = prev
108construct_building = {
110instant = yes
111owner = scope:winner
112cost_multiplier = 0
113cost_multiplier_reason = "game_concept_event"
}
}
}
117else_if = {
121if = {
122limit = {
123scope:loser = {
}
}
132international_organization_remove_special_status = {
134country = scope:loser
}
}
137location = {
137destroy_building = prev
}
}
}
140else = {
141change_building_owner = scope:winner
}
}
}
}
}
147else = {
148scope:target = {
149construct_building = {
151instant = yes
152owner = scope:winner
153cost_multiplier = 0
154cost_multiplier_reason = "game_concept_event"
}
156construct_building = {
158instant = yes
159owner = scope:winner
160cost_multiplier = 0
161cost_multiplier_reason = "game_concept_event"
}
}
}
}
166else = {
167custom_tooltip = expand_clan_influence_no_target_tt We will get ownership of their territory in the target Location
}
}
171ai_desire = {
172add = {
173desc = "base desire"
174value = 10
}
176if = {
177limit = {
178scope:winner.prestige < scope:loser.prestige
}
180add = {
181desc = "DIPLOREASON_LOWER_PRESTIGE"
182value = scope:loser.prestige
183subtract = scope:winner.prestige
}
}
}