
ActionChanged this version
Sponsor Spiritual Protection
As the Clergy say, illnesses are caused by a spiritual unbalance in the body of the sick or by the breaking of a taboo that allowed foul spirits to take hold of the body of the guilty. We can fight the disease by beckoning the most powerful spirits and making sacrifices that compel them to cast their protections over our people.
Great PestilenceSituationselect triggerFind the culpritsStatic ModifierallowSponsor Spiritual ProtectionStatic ModifierpotentialDefinitionin_game/common/generic_actions/great_pestilence.txt:436
437type = situation
439ai_tick = daily
440ai_tick_frequency = 80
441exclusive_group = bd_social_actions
443automation_tick = never
444automation_tick_frequency = 12
446potential = {
447scope:actor ?= {
}
}
459price = price:sponsor_sin_forgiveness
461select_trigger = {
462looking_for_a = situation
463target_flag = recipient
464name = "choose_situation" Choose the Situation:
465column = {
465data = name
}
}
472effect = {
473scope:actor ?= {
474add_country_modifier = {
}
475add_country_modifier = {
477years = -1
478mode = add_and_extend
479size = {scales the modifier
480value = 1
481multiply = {
482desc = "[income|e] factor"
483value = this.monthly_income_total
}
485multiply = 0.1
}
}
}
}
491ai_will_do = {
492add = "scope:actor.add_static_modifier_utility(sponsor_spiritual_protection_bonus)"
493add = "scope:actor.add_static_modifier_utility(sponsor_spiritual_protection_cost)"
495add = {
496if = {
497limit = {
498scope:actor = {
499country_has_disease = disease:great_pestilence
}
}
502value = 50
}
}
505add = "scope:actor.add_static_modifier_utility(sponsor_spiritual_protection_cost)"
507subtract = {
508desc = "bias against doing stuff"
509value = 1
}
}