Захват сёгуната
Мирный договор

Захват сёгуната

peace_take_shogunatein_game/common/peace_treaties/take_shogunate.txt:1

Мы возьмём бразды правления Японским сёгунатом в свои руки, и под нашим чутким руководством Япония вступит в новую эпоху процветания.

ТребуетЗахват сёгунатаПовод для войныpotentialИмперияРанг державыeffectЯпонский сёгунатМеждународное объединениеeffect, potentialПризнание сёгуномСтатический модификаторallow

Определениеin_game/common/peace_treaties/take_shogunate.txt:1

3cost = {
4add = {
5desc = "DIPLOREASON_BASE" Базовое значение
6value = 5
}
8add = {
9desc = "game_concept_population" Население
10value = scope:loser.total_population
11multiply = 0.009
}
}
15potential = {
16scope:war = {
}
19scope:winner = {
}
22leader_country = scope:loser
}
}
25allow = {
26scope:winner = {
27has_regent = no
28ruler ?= {
29has_character_modifier = allowed_shogun_title
}
}
}
34effect = {
35scope:loser = {
36if = {
37limit = {
37has_reform = government_reform:shogunate
}
38remove_reform = government_reform:shogunate
}
40if = {
41limit = {
41country_type = building
}
42add_reform = government_reform:japanese_clan
}
44if = {
45limit = {
45country_type = location
}
46add_reform = government_reform:daimyo
}
48if = {
49limit = {
49country_rank = country_rank:rank_empire
}
50set_country_rank = country_rank:rank_kingdom
}
}
53scope:winner = {
54every_international_organizations_member_of = {
55limit = {
55international_organization_type = international_organization_type:japanese_shogunate
}
56set_leader_country = scope:winner
}
58if = {
59limit = {
59has_reform = government_reform:japanese_clan
}
60remove_reform = government_reform:japanese_clan
}
62if = {
63limit = {
63has_reform = government_reform:daimyo
}
64remove_reform = government_reform:daimyo
}
66add_reform = government_reform:shogunate
67set_country_rank = country_rank:rank_empire
}
}
71ai_desire = {
72if = {
73limit = {
74scope:winner = {
75is_rival_of = scope:loser
}
}
78add = {
79desc = "game_concept_rival"
80value = 10
}
}
83if = {
84limit = {
85scope:winner.prestige < scope:loser.prestige
}
87add = {
88desc = "DIPLOREASON_LOWER_PRESTIGE"
89value = scope:loser.prestige
90subtract = scope:winner.prestige
}
}
}