
Action
Isolate Cities
By ordering our cities to shut their walls, and restrict movement in, and out of them, we think we can limit the impact of the disease and bring about some much-needed control.
Bubonic PlagueDiseaseallow
Black DeathSituationselect triggerIsolating CitiesStatic ModifierpotentialDefinitionin_game/common/generic_actions/black_death.txt:98
99type = situation
101ai_tick = daily
102ai_tick_frequency = 40
103automation_tick = daily
104automation_tick_frequency = 7
106potential = {
107scope:actor ?= {
113num_of_non_rural > 0
}
}
117allow = {
118scope:actor ?= {
119estate_satisfaction:burghers_estate > 0.75
120any_owned_non_rural_location = {
}
}
}
129price = price:isolate_cities_black_death
131select_trigger = {
132looking_for_a = situation
133target_flag = recipient
134name = "choose_situation" Choose the Situation:
135column = {
135data = name
}
136visible = {
138situation_is_active = yes
139scope:actor = {
140country_has_disease_outbreak = root.var:original_outbreak
}
}
}
145effect = {
146scope:actor ?= {
147add_estate_satisfaction = {
}
151custom_tooltip = {
152text = isolate_cities_effect_tt All Urban Locations get Isolating Cities, scaled by how much Control we have at the Location.
153every_owned_non_rural_location = {
154add_location_modifier = {
156years = -1
157size = {scales the modifier
158value = {
159desc = game_concept_control Control
160value = local_control
161multiply = 0.85
162if = {
163limit = {
164scope:actor.num_of_non_rural > 4
}
166divide = scope:actor.num_of_non_rural
167multiply = 4
}
}
}
171mode = add
}
}
}
}
}
178ai_will_do = {
179scope:actor ?= {
180add = "add_estate_satisfaction_utility(burghers_estate|-0.3)"
181every_owned_non_rural_location = {
188add = {
189value = local_control
190multiply = -0.85
191save_temporary_value_as = modifier_scale
192value = "add_static_modifier_utility(isolating_cities|scope:modifier_scale)"
}
}
}
}