
DiseaseChanged this version
Great Pestilence
Terrible news reaches us from abroad. Misery and plague sweep the land, and death runs with them, apparently brought by mysterious bearded foreigners. This plague is not something our elders have ever heard of, and no answers in our ancestors' memories could help us face the catastrophe if it reaches our settlements. Will our people perish, or will we somehow resist when this walking death reaches us?
EntrepôtBuildingr0
Market VillageBuildingr0
MarketplaceBuildingr0
Slave MarketBuildingr0
Stock ExchangeBuildingr0
Trading HubBuildingr0
Rural SettlementLocation Ranklocation stagnation chance, r0
TownLocation Ranklocation stagnation chance, r0
Great PestilenceSituationmonthly spawn chance, spawnNo Contact with OutsidersStatic Modifierlocation stagnation chance
MountainsTopographylocation spread threshold, location stagnation chance, r0
DesertVegetationlocation spread threshold, location stagnation chance, r0Modifiers
Definitionin_game/common/diseases/great_pestilence.txt:1
2monthly_spawn_chance = {
3if = {
4limit = {
}
14if = {
23value = 0
}
25else = {
28value = 0.1
}
}
31else = {
32value = 0
}
}
36spawn = {
38if = {
}
49else_if = {
58continent:america = {
59random_location_in_continent = {
60limit = {
61population > 0
63disease_resistance(scope:disease) < 0.5
}
69spawn_disease = {
70disease = scope:disease
71value = 1
73save_scope_as = outbreak
}
}
}
}
79else = {
80continent:america = {
81random_location_in_continent = {
82limit = {
83population > 0
85disease_resistance(scope:disease) < 0.5
}
91spawn_disease = {
92disease = scope:disease
93value = 1
95save_scope_as = outbreak
}
98if = {
99limit = {
}
}
}
}
}
}
}
121r0 = {
135else = {
136value = {
5
10
}
}
139if = {
140limit = {
141OR = {
}
}
150multiply = 1.2
}
154if = {
155limit = {
156OR = {
157disease_has_stagnated = scope:disease
158disease_resistance(scope:disease) > 0.5
}
}
161subtract = {
0.2
0.7
}
163if = {
164limit = {
165disease_presence = {
166disease = scope:disease
167value <= 0.2
}
}
170subtract = 0.3
}
}
174if = {
175limit = {
}
183multiply = 0.25
}
185if = {
186limit = {
187NOT = {
187continent = continent:america
}
}
189multiply = 0.0
}
}
198location_spread_threshold = {
199if = {
200limit = {
}
208value = 0.85
}
210else = {
211value = 0.60
}
}
218calc_interval_days = {
4
16
}
220location_stagnation_chance = {
232else = {
233value = 0.01
}
236if = {
237limit = {
}
245multiply = 3
}
248if = {
249limit = {
250disease_resistance(scope:disease) > 0.5
}
252add = {
253value = "disease_resistance(scope:disease)"
254subtract = 0.4
}
}
258if = {
259limit = {
260disease_resistance(scope:disease) > 0.95
}
262add = 0.1
}
264if = {
265limit = {
266disease_resistance(scope:disease) > 0.98
}
268add = 0.2
}
270if = {
271limit = {
272is_ownable = yes
273has_owner = yes
}
278add = 0.5
}
280if = {
281limit = {
282NOT = {
282continent = continent:america
}
}
284value = 1.0
}
}
288percentage_to_meet_their_fate_on_calc = {
289value = 0.10
}
293location_modifier = {
}
308mortality_rate = {
0.75
0.9
}
311character_mortality_chance = {
312value = 0.04
313multiply = "disease_presence(scope:disease)"
}
322map_color = {
323lerp = {
324min_color = rgb {
248
180
194
}
325max_color = rgb {
61
0
0
}
326factor = "disease_presence(scope:disease)"
}
}
330secondary_map_color = {
331if = {
332limit = {
333disease_affects_pops_here = scope:disease
}
335value = rgb {
100
120
188
}
}
}






