
Action
Expand Provincial Food Production
The changing climate demands agricultural innovation. By encouraging local food production, we can mitigate the effects of the cold and ensure a more stable food supply for our population.
Little Ice AgeSituationselect trigger 1Expanded Food ProductionStatic Modifierallow, effect, select trigger 2Definitionin_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" Choose the Situation:
115column = {
115data = name
}
}
122select_trigger = {
123looking_for_a = province
124source = actor
125target_flag = target_province
126name = "choose_province" Choose a 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 The selected Province gains Expanded Food Production for 10 years.
If possible, the Location with the highest Food Raw Material production in the same province also gains Expanded Raw Material Output for 10 years
If possible, the Location with the highest Food Raw Material production in the same province also gains Expanded Raw Material Output for 10 years
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
}
}
}