
Action
Patronize Orthodox Monastery
By granting patronage to a local Orthodox Monastery, we reaffirm our devotion and strengthen local religious life. Such generosity will surely improve the local quality of life, reminding the faithful that the Actor still stands as protector of the true faith.
Orthodox MonasteryBuildingselect trigger 2
Fate of the PhoenixDisasterselect trigger 1
OrthodoxyReligionallow, effectPatronized Orthodox MonasteryStatic Modifierselect trigger 2Definitionin_game/common/generic_actions/D008_fate_of_the_phoenix_actions.txt:734
735type = disaster
737potential = {
}
739allow = {
740scope:actor = {
742total_effective_building_levels:orthodox_monastery > 0
}
}
746automation_tick = never
747automation_tick_frequency = 12
748price = price:fate_of_phoenix_actions_price
750cooldown = {
751type = patronize_athonite_monastery
752years = 5
}
755select_trigger = {
756looking_for_a = disaster
757name = "choose_disaster" Choose the Disaster:
758target_flag = recipient
759column = {
760data = name
}
}
768select_trigger = {
769looking_for_a = location
770source = actor
771target_flag = target_location
772name = "choose_location" Choose a Location
773none_available_msg_key = "no_locations_available"
774column = {
774data = name
}
775column = {
775data = control
}
776column = {
776data = population
}
}
785effect = {
786if = {
787limit = {
787exists = scope:target_location
}
789scope:target_location = {
790add_location_modifier = {
793mode = replace
}
796ordered_pop = {
801order_by = pop_size
802max = 4
803check_range_bounds = no
}
}
}
809else = {
809custom_tooltip = patronize_orth_monastery_tt The selected Location will receive the Patronized Orthodox Monastery Modifier while many of our Orthodox Pops will receive pop satisfaction mild bonus Pop Satisfaction
}
}
812ai_will_do = {
813value = 10
815if = {
816limit = {
816exists = scope:target_location
}
817add = {
818value = scope:target_location.population
819desc = "[target_location.GetName] total population"
}
821if = {
822limit = {
823scope:target_location = {
823local_cultural_unity > 0
}
}
826add = {
827value = scope:target_location.population
828divide = scope:target_location.local_cultural_unity
829desc = "[target_location.GetName] local cultural unity"
}
}
833else = {
834add = {
835value = scope:target_location.population
836divide = 0.05
837desc = "[target_location.GetName] local cultural unity"
}
}
841if = {
842limit = {
843scope:target_location = {
843local_religious_unity > 0
}
}
846add = {
847value = scope:target_location.population
848divide = scope:target_location.local_religious_unity
849desc = "[target_location.GetName] local religious unity"
}
}
853else = {
854add = {
855value = scope:target_location.population
856divide = 0.05
857desc = "[target_location.GetName] local religious unity"
}
}
}
}