
Peace TreatyChanged this version
Take over Target Market
The beating heart of their economy shall be ours, seized for the glory and profit of our country.
Definitionin_game/common/peace_treaties/take_over_market_center.txt:1
2cost = {
3add = {
4desc = "DIPLOREASON_BASE" Base
5value = 5
}
8add = {
9desc = "game_concept_trade_income" Trade Income
10value = scope:loser.monthly_trade_income
}
12max = 100
}
15potential = {
16scope:loser = {
17any_market_center_in_country = {
18any_location_in_market = {
19owner ?= scope:winner
20not = {
20integration_level = conquered
}
}
}
}
}
25allow = {
}
28select_trigger = {
29looking_for_a = market
30source = recipient
31target_flag = target_market
32visible = {
33any_location_in_market = {
34owner ?= scope:actor
}
}
}
39effect = {
40scope:target_market = {
41if = {
42limit = {
43any_location_in_market = {
43this = scope:winner.capital
}
}
45relocate_market = scope:winner.capital
}
47else = {
48ordered_location_in_market = {
49limit = {
50has_owner = yes
51owner = scope:winner
52not = {
52integration_level = conquered
}
}
54order_by = population
55max = 1
57save_scope_as = target_location
}
59relocate_market = scope:target_location
}
}
}
64ai_desire = {
66add = -10
}