
アクション
州内食糧生産の拡大
気候の変化は農業の革新を求めている。地域の食糧生産を奨励することで、寒冷の影響を和らげ、我々の人口に対してより安定した食糧供給を確保できる。
小氷期局面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
}
}
}
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
}
}
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
}
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 選択した州が10年間「食糧生産の拡大」を得る。
可能であれば、同じ州内の最も多くの食糧原材料を生産するロケーションも、10年間「原材料生産の拡大」を得る
可能であれば、同じ州内の最も多くの食糧原材料を生産するロケーションも、10年間「原材料生産の拡大」を得る
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
}
}
}