Чёрная смерть
СитуацияИзменено в этой версии

Чёрная смерть

great_pestilencein_game/common/situations/great_pestilence.txt:1

Из-за границы приходят ужасные новости. Мор и погибель, привезённые загадочными бородатыми чужеземцами, поглощают эти земли. Наши старейшины никогда не слышали о подобной чуме, и среди воспоминаний предков не говорится, что делать, если это бедствие достигнет наших поселений. Грозит ли нашему народу гибель, или же нам каким-то чудом удастся выстоять, когда смерть придёт к нашему порогу?

ТребуетЧёрная смертьЭпидемияcan end, can start, on monthly, visibleПоиск виновныхСтатический модификаторvisibleЗапрет на контакт с чужакамиСтатический модификаторvisibleПокупка лекарствСтатический модификаторvisibleОплата за лекарстваСтатический модификаторvisibleИзоляция заражённыхСтатический модификаторvisibleПризыв духов для защитыСтатический модификаторvisibleОплата за защиту духовСтатический модификаторvisiblehad_great_pestilenceПеременнаяcan end, on endedvar_andes_was_infectedПеременнаяcan end, on monthlyvar_carib_was_infectedПеременнаяcan end, on monthlyvar_mesoamerica_was_infectedПеременнаяcan end, on monthly

Определениеin_game/common/situations/great_pestilence.txt:1

5monthly_spawn_chance = monthly_spawn_chance_unique (1)
6hint_tag = hint_great_pestilence
7can_start = {
8disease_is_active = disease:great_pestilence
}
11can_end = {
13custom_tooltip = {
14text = great_pestilence_regions_infected_tt Великий мор добрался до Карибов, Мезоамерики и Анд
}
21NOT = {
22disease_is_active = disease:great_pestilence
}
25continent:america = {
26any_country_with_capital_in_geography = {
27count <= 30
28country_type = location
29custom_tooltip = {
30text = great_pestilence_americas_spread_tt Пока не столкнулись с великим мором
31NOT = {
31has_variable = had_great_pestilence
}
}
}
}
}
37visible = {
38OR = {
39country_has_disease = disease:great_pestilence
41has_country_modifier = no_contact_with_outsiders
42has_country_modifier = procure_remedies
43has_country_modifier = procure_remedies_cost
44has_country_modifier = segregate_the_infected
45has_country_modifier = blame_the_minorities
46has_country_modifier = sponsor_spiritual_protection_bonus
47has_country_modifier = sponsor_spiritual_protection_cost
}
}
51on_start = {
53set_variable = {
53value = no
}
54set_variable = {
54value = no
}
55set_variable = {
55value = no
}
}
58on_monthly = {
59every_country = {
60limit = {
61country_has_disease = disease:great_pestilence
}
63set_variable = {
63value = yes
}
64random_list = {
651 = {
65trigger_event_non_silently = great_pestilence.3
}
661 = {
66trigger_event_non_silently = great_pestilence.4
}
671 = {
67trigger_event_non_silently = great_pestilence.5
}
681 = {
68trigger_event_non_silently = great_pestilence.6
}
691 = {
69trigger_event_non_silently = great_pestilence.7
}
7050 = {
}
}
}
74if = {
75limit = {
77region:caribbean_region = {
78any_ownable_location_in_region = {
79disease_presence = {
79value > 0
}
}
}
}
83set_variable = {
83value = yes
}
}
85if = {
86limit = {
88region:mesoamerica_region = {
89any_ownable_location_in_region = {
90disease_presence = {
90value > 0
}
}
}
}
94set_variable = {
94value = yes
}
}
96if = {
97limit = {
99region:andes_region = {
100any_ownable_location_in_region = {
101disease_presence = {
101value > 0
}
}
}
}
105set_variable = {
105value = yes
}
}
}
109tooltip = {
110if = {
111limit = {
112disease_presence = {
112value > 0
}
}
114custom_tooltip = "GREAT_PESTILENCE_PRESENT_IN_LOCATION"
}
}
118on_ended = {
119every_country = {
120limit = {
121has_variable = had_great_pestilence
}
123remove_country_modifier = no_contact_with_outsiders
124remove_country_modifier = procure_remedies
125remove_country_modifier = procure_remedies_cost
126remove_country_modifier = segregate_the_infected
127remove_country_modifier = blame_the_minorities
128remove_country_modifier = sponsor_spiritual_protection_bonus
129remove_country_modifier = sponsor_spiritual_protection_cost
131trigger_event_non_silently = great_pestilence.2
}
133every_market_in_world = {
134limit = {
135location.continent = continent:america
136has_temporary_demand = demand:procure_remedies
137has_temporary_demand = demand:procure_remedies_no_liquor
}
139remove_temporary_demand = demand:procure_remedies
140remove_temporary_demand = demand:procure_remedies_no_liquor
}
}
144is_data_map = yes
145map_color = {
146if = {
147limit = {
148disease_presence = {
148value > 0
}
}
150lerp = {
151min_color = rgb {
248
180
194
}
152max_color = rgb {
61
0
0
}
153factor = "disease_presence(disease:great_pestilence)"
}
}
156else = {
157value = define:NMapColors|DEFAULT_COLOR
}
}
161legend_key = {
162desc = "great_pestilence"
163color = rgb {
61
0
0
}
}