
行动
赞助东正教修道院
通过赞助地方东正教修道院,我们展现了虔诚,增进了当地的宗教生活。这种慷慨无疑会提高当地的生活质量,提醒信徒们,Actor仍然是正信的保护者。
东正教修道院建筑select trigger 2
凤凰的命运灾难select trigger 1
东正教宗教allow, effect赞助东正教修道院静态修正select trigger 2定义in_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" 选择灾难:
758target_flag = recipient
759column = {
760data = name
}
}
768select_trigger = {
769looking_for_a = location
770source = actor
771target_flag = target_location
772name = "choose_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 所选地点会获得赞助东正教修道院修正,而我们的许多东正教人群将获得pop satisfaction mild bonus人群满意度
}
}
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"
}
}
}
}