Введение политики пайков
Действие

Введение политики пайков

enforce_rationing_policiesin_game/common/generic_actions/little_ice_age_actions.txt:1

Дефицит пищи грозит неминуемым голодом, и мы должны ввести строгое нормирование продуктов, чтобы припасов хватало на время суровых зим. Взяв под контроль распределение зерна и ограничив накопление тайных запасов, мы сможем предотвратить голод ценой общественных беспорядков и потенциальной нестабильности.

ТребуетМалый ледниковый периодСитуацияselect trigger 1

Определениеin_game/common/generic_actions/little_ice_age_actions.txt:1

2type = situation
3show_message = yes
5allow = {
6scope:actor = {
7any_market_present_in_country ?= {
8market_food_percentage < 0.3
}
10stability > 0
}
}
14automation_tick = never
15automation_tick_frequency = 12
17cooldown = {
18type = enforce_rationing_policies
19years = 10
}
22price = price:control_the_food_market
24select_trigger = {
25looking_for_a = situation
26target_flag = recipient
27name = "choose_situation" Выберите Concept:
28column = {
28data = name
}
29visible = {
31situation_is_active = yes
}
}
35select_trigger = {
36looking_for_a = market
37source = actor
38target_flag = target_market
39name = "select_market" Выбрать Concept
40none_available_msg_key = "no_markets_available"
41column = {
41data = name
}
42visible = {
43location = {
44owner ?= scope:actor
}
}
}
49effect = {
50custom_tooltip = {
51text = locations_in_designated_market_get_enforced_rationing_policy_tt Каждая Concept на указанном Concept, которой мы владеем, получит модификатор «Введение политики пайков» на 10 лет
52scope:target_market ?= {
53every_location_in_market = {
54limit = {
55has_owner = yes
56owner = scope:actor
57is_province_capital = yes
}
59add_location_modifier = {
61years = 10
62mode = replace
}
}
}
}
}
69ai_will_do = {
70add = -30
71if = {
72limit = {
72exists = scope:target_market
}
73add = {
74value = scope:target_market.market_food_percentage
75multiply = -100
76add = 50
}
}
79add = {
80value = scope:actor.stability
81multiply = 0.1
}
}