
Aktion
Städte abschotten
Indem wir unsere Städte dazu anweisen, ihre Tore zu schließen und den Verkehr in und aus ihnen einzuschränken, sollten wir in der Lage sein, die Auswirkungen der Krankheit zu begrenzen und die dringend benötigte Kontrolle zurückgewinnen.
BeulenpestKrankheitallow
Schwarzer TodSituationselect triggerAbgeschottete StädteStatischer ModifikatorpotentialDefinitionin_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" Die Situation wählen:
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 Alle Concept erhalten „Abgeschottete Städte“. Dieser Modifikator skaliert mit der Kontrolle, die wir über den Ort ausüben
153every_owned_non_rural_location = {
154add_location_modifier = {
156years = -1
157size = {skaliert den Modifikator
158value = {
159desc = game_concept_control Kontrolle
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)"
}
}
}
}