
Action
Développer la production de nourriture dans les provinces
Les changements climatiques exigent la mise en œuvre d'innovations agricoles. En encourageant la production locale de nourriture, nous pourrons atténuer les effets du froid et assurer un approvisionnement plus stable pour notre population.
Petit âge glaciaireConjonctureselect trigger 1Développement de la production de nourritureModificateur statiqueallow, effect, select trigger 2Définitionin_game/common/generic_actions/little_ice_age_actions.txt:86
87type = situation
88show_message = yes
90allow = {
91scope:actor = {
92stability > 0
93any_province = {
94area = {
94has_extended_winter = yes
}
95province_food_percentage < 0.5
}
}
}
101automation_tick = never
102automation_tick_frequency = 12
104cooldown = {
105type = expand_provincial_food_production
106years = 1
}
109price = price:lia_actions_price
111select_trigger = {
112looking_for_a = situation
113target_flag = recipient
114name = "choose_situation" Sélectionner la Conjoncture :
115column = {
115data = name
}
}
122select_trigger = {
123looking_for_a = province
124source = actor
125target_flag = target_province
126name = "choose_province" Choisir une Province
127none_available_msg_key = "no_provinces_available"
128column = {
128data = name
}
129column = {
129data = province_food_percentage
}
130column = {
130data = province_food
}
131visible = {
132area = {
132has_extended_winter = yes
}
134province_food_percentage < 0.5
}
136map_color = {
137if = {
138limit = {
139has_owner = yes
140owner ?= scope:actor
}
142value = {
143lerp = {
146factor = {
147value = province.province_food_percentage
}
}
}
}
}
}
160effect = {
161custom_tooltip = {
162text = province_gains_expanded_food_production_modifier_and_potential_tt La Province sélectionnée bénéficie du modificateur Développement de la production de nourriture pendant 10 ans.
Si cela est possible, le Lieu avec la production de Matières premières alimentaires la plus élevée dans la même province bénéficie également du modificateur Développement de la production de matières premières pendant 10 ans
Si cela est possible, le Lieu avec la production de Matières premières alimentaires la plus élevée dans la même province bénéficie également du modificateur Développement de la production de matières premières pendant 10 ans
163scope:target_province ?= {
164if = {
166add_province_modifier = {
}
}
172else = {
173add_province_modifier = {
}
}
179if = {
180limit = {
181any_location_in_province = {
182raw_material ?= {
182is_food = yes
}
}
}
185ordered_location_in_province = {
186limit = {
187owner ?= scope:actor
188raw_material ?= {
188is_food = yes
}
}
190order_by = raw_material_output
191max = 1
192add_location_modifier = {
}
}
}
}
}
}
203ai_will_do = {
204add = -10
205if = {
206limit = {
206exists = scope:target_province
}
207add = {
208value = scope:target_province.province_food_percentage
209multiply = -100
210add = 25
}
212if = {
213limit = {
214scope:target_province = {
215any_location_in_province = {
216raw_material ?= {
216is_food = yes
}
}
}
}
220add = 10
}
222if = {
223limit = {
224scope:target_province = {
224is_starving = yes
}
}
226add = 5
}
228else = {
228add = -100
}
}
}