扩大省份食物生产
行动

扩大省份食物生产

expand_provincial_food_productionin_game/common/generic_actions/little_ice_age_actions.txt:86

气候的变化催生了对农业革新的需求。我们可以鼓励地方食物生产,减轻寒冷的影响,确保民众能得到更稳定的食物供应。

需要NMapColors|DEFAULT_COLOR常量select trigger 2NMapColors|MAP_COLOR_HIGH常量select trigger 2NMapColors|MAP_COLOR_LOW常量select trigger 2小冰期局势select trigger 1扩大粮食生产静态修正allow, effect, select trigger 2

定义in_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
96NOT = {
96has_province_modifier = expanded_food_production_modifier
}
}
}
}
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" 选择局势:
115column = {
115data = name
}
116visible = {
118situation_is_active = yes
}
}
122select_trigger = {
123looking_for_a = province
124source = actor
125target_flag = target_province
126name = "choose_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
}
133NOT = {
133has_province_modifier = expanded_food_production_modifier
}
134province_food_percentage < 0.5
}
136map_color = {
137if = {
138limit = {
139has_owner = yes
140owner ?= scope:actor
}
142value = {
143lerp = {
146factor = {
147value = province.province_food_percentage
}
}
}
}
153else = {
}
}
}
160effect = {
161custom_tooltip = {
162text = province_gains_expanded_food_production_modifier_and_potential_tt 选择的省份获得扩大粮食生产,持续10年。

如果可能的话,同一省份内拥有最高食物原材料产出的地点也会获得扩大原材料产出,持续10年
163scope:target_province ?= {
164if = {
165limit = {
165has_province_modifier = expanded_food_production_modifier
}
166add_province_modifier = {
168months = 6
169mode = add_and_extend
}
}
172else = {
173add_province_modifier = {
175years = 5
176mode = replace
}
}
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 = {
194years = 10
195mode = replace
}
}
}
}
}
}
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
}
}
}
© 2026 Soft Santa Cruz, S.L.U.。保留所有权利。非官方粉丝项目,与Paradox Interactive无关。游戏内容 © Paradox Interactive。 关于 · 隐私 · 法律声明