
ActionChanged this version
Procure Remedies
This sickness that afflicts our new citizens can be fought and pushed back. Many doctors and shamans claim that many recipes and remedies might improve the health of the sick, it is our duty to procure an ample supply of them.
Fiber CropsGoodseffect
GemsGoodseffect
IncenseGoodseffect
LiquorGoodseffect
LumberGoodseffect
MedicamentsGoodseffect
MercuryGoodseffect
IslamReligion Groupeffect
Great PestilenceSituationselect triggerProcure remediesStatic ModifierpotentialSegregate the infectedStatic ModifierallowExpel the sickStatic ModifierallowDefinitionin_game/common/generic_actions/great_pestilence.txt:1
2type = situation
4ai_tick = daily
5ai_tick_frequency = 40
6automation_tick = daily
7automation_tick_frequency = 7
9exclusive_group = bd_disease_control_actions
11potential = {
12scope:actor ?= {
}
}
18allow = {
19scope:actor ?= {
}
}
25price = price:procure_remedies
27select_trigger = {
28looking_for_a = situation
29target_flag = recipient
30name = "choose_situation" Choose the Situation:
31column = {
31data = name
}
}
38effect = {
39scope:actor ?= {
41if = {
42limit = {
44OR = {}
}
54add_country_modifier = {
56years = -1
57mode = add_and_extend
58size = {scales the modifier
59add = {
60desc = "[income|e] factor"
61value = scope:actor.monthly_income_total
62multiply = 0.10
63min = 1
}
}
}
}
68else = {
69add_country_modifier = {
71years = -1
72mode = add_and_extend
73size = {scales the modifier
74add = {
75desc = "[income|e] factor"
76value = scope:actor.monthly_income_total
77multiply = 0.05
78min = 1
}
}
}
}
85if = {
89every_market_present_in_country = {
90limit = {
91location.continent = continent:america
}
93add_temporary_demand = {
94type = demand:procure_remedies
95scale_with_pop = 0.002
96years = -1
}
}
}
100else = {
101every_market_present_in_country = {
102limit = {
103location.continent = continent:america
}
105add_temporary_demand = {
106type = demand:procure_remedies_no_liquor
107scale_with_pop = 0.002
108years = -1
}
}
}
}
}
117ai_will_do = {
119add = "scope:actor.add_static_modifier_utility(procure_remedies)"
120add = "scope:actor.add_static_modifier_utility(procure_remedies_cost)"
122add = {
123if = {
124limit = {
125scope:actor = {
126OR = {
127country_has_disease = disease:bubonic_plague
128country_has_disease = disease:great_pestilence
}
}
}
132value = 50
}
}
135add = {
136desc = "increased demands"
137value = -10
}
140subtract = {
141desc = "bias against doing stuff"
142value = 1
}
}