Укрепление ключевого района
ДействиеНовое в этой версии

Укрепление ключевого района

fortify_key_locationin_game/common/generic_actions/italian_wars.txt:748

Если мы укрепим стратегические позиции и выставим там гарнизоны, врагу будет труднее захватить наши ключевые владения.

ТребуетБалканская лигаМеждународное объединениеpotentialФранцузская лигаМеждународное объединениеpotentialИмперская лигаМеждународное объединениеpotentialИберийская лигаМеждународное объединениеpotentialПервая итальянская лигаМеждународное объединениеpotentialВторая итальянская лигаМеждународное объединениеpotentialТретья итальянская лигаМеждународное объединениеpotentialГородРанг районаselect trigger 2МегалополисРанг районаselect trigger 2Итальянские войныСитуацияpotential, select trigger 1Укреплённая позицияСтатический модификаторselect trigger 2ГорыРельефselect trigger 2

Определениеin_game/common/generic_actions/italian_wars.txt:748

749type = situation
751ai_tick = daily
752ai_tick_frequency = 80
754automation_tick = never
755automation_tick_frequency = 12
757potential = {
758trigger_if = {
759limit = {
760has_variable = iw_tension
}
}
}
764trigger_else = {
764always = no
}
765scope:actor ?= {
766OR = {
767is_member_of_international_organization = international_organization:italian_league_1
768is_member_of_international_organization = international_organization:italian_league_2
769is_member_of_international_organization = international_organization:italian_league_3
770is_member_of_international_organization = international_organization:foreign_league_france
771is_member_of_international_organization = international_organization:foreign_league_hre
772is_member_of_international_organization = international_organization:foreign_league_iberia
773is_member_of_international_organization = international_organization:foreign_league_balkan
774capital.region = region:italy_region
}
}
}
779allow = {
780scope:actor ?= {
781is_during_bankruptcy = no
}
}
785price = price:fortify_key_location_price
786price_modifier = {
787add = {
788value = 1
789desc = BASE_VALUE Базовое значение: Валенсия
}
791subtract = {
793multiply = 0.005
794desc = "[situation_tension|e]"
}
}
798cooldown = {
799type = fortify_key_location
800years = {
801add = {
802value = 10
803desc = BASE_VALUE Базовое значение: Валенсия
}
805subtract = {
807multiply = 0.005
808desc = "[situation_tension|e]"
}
}
}
813select_trigger = {
814looking_for_a = situation
815interaction_source_list = {
817add_to_list = source
}
}
820target_flag = recipient
821name = "choose_situation" Выберите Concept:
822column = {
822data = name
}
823visible = {
825situation_is_active = yes
}
}
829select_trigger = {
830looking_for_a = location
831source = actor
832source_flags = only_actual_locations
833target_flag = target_location
834name = "choose_location" Выбор Concept
835none_available_msg_key = "no_locations_available_fortify_key_location"
836column = {
836data = name
}
837column = {
837data = rank
}
838visible = {
839region = region:italy_region
}
841enabled = {
842owner ?= scope:actor
843OR = {
844is_capital = yes
845location_rank = location_rank:city
846location_rank = location_rank:megalopolis
847topography = mountains
}
849NOT = {
849has_location_modifier = iw_fortify_key_location_modifier
}
}
}
853effect = {
854if = {
855limit = {
855exists = scope:target_location
}
856scope:target_location = {
857add_location_modifier = {
859years = 5
860mode = add_and_extend
}
}
}
864else = {
864custom_tooltip = fortify_key_location_no_target_tt Выбранный Concept получит Concept «Укреплённая позиция» на 5 лет
}
}
867ai_will_do = {
869if = {
870limit = {
870scope:actor ?= {
870at_war = yes
}
}
871add = {
872desc = "IS_AT_WAR"
873value = 20
}
}
876else = {
877add = {
878desc = "IS_AT_PEACE"
879value = -1000
}
}
882if = {
883limit = {
883exists = scope:target_location
}
884add = {
885value = scope:target_location.population
886if = {
887limit = {
887scope:target_location.local_control > 0
}
888multiply = scope:target_location.local_control
}
890else = {
890multiply = 0.05
}
891desc = "population multiplied by control"
}
893add = {
894value = scope:target_location.location_tax_base
895desc = "[target_location.GetName] tax base"
}
897if = {
898limit = {
899scope:target_location = {
900is_border = yes
901is_coastal = no
}
}
904add = {
905value = 50
906desc = "is border"
}
}
}
}