Событие

Бесконечная засуха

little_ice_age.10in_game/events/situations/little_ice_age.txt:759
Бесконечная засуха

Новые земли вселяют надежду на новые начинания, однако холодный и сухой климат положил конец всем этим чаяниям. Такой была судьба тех, кто решил попытать удачу и поселился в LR PREP Target Charter. Наши поселенцы ожидали найти там плодородную почву и зелёные луга, но их ждало горькое разочарование.

ТребуетЗасухаСтатический модификаторimmediate, trigger

Определениеin_game/events/situations/little_ice_age.txt:759

760type = country_event
761category = situation_event
762title = winter_events.10.title Бесконечная засуха
763desc = winter_events.10.desc Новые земли вселяют надежду на новые начинания, однако холодный и сухой климат положил конец всем этим чаяниям. Такой была судьба тех, кто решил попытать удачу и поселился в LR PREP Target Charter. Наши поселенцы ожидали найти там плодородную почву и зелёные луга, но их ждало горькое разочарование.
764outcome = neutral
765image = "gfx/interface/illustrations/situation/little_ice_age.dds"
766trigger = {
767has_colonial_charters = yes
768capital ?= {
768area = {
768has_extended_winter = yes
}
}
769any_colonial_charter = {
770province_definition = {
771any_province_in_province_definition = {
772owner = root
773any_location_in_province = {
774NOR = {
775has_location_modifier = dry_spell_modifier
776continent = root.capital.continent
777is_connected_to = root.capital
}
779OR = {
780winter_level = severe
781winter_level = mild
782winter_level = normal
}
}
}
}
}
}
790immediate = {
791random_province = {
792limit = {
793any_location_in_province = {
794OR = {
795winter_level = severe
796winter_level = mild
797winter_level = normal
}
799NOR = {
800has_location_modifier = dry_spell_modifier
801continent = root.capital.continent
802is_connected_to = root.capital
}
}
}
806save_scope_as = target_charter
}
808if = {
809limit = {
810scope:target_charter.province_definition = {
811any_neighbor_province_definition = {
812root = {
812own_entire_province = prev
}
813any_province_in_province_definition = {
814owner = root
815province_food_percentage > 0.75
}
}
}
}
820random_province = {
821limit = {
822province_food_percentage > 0.75
823province_definition = {
824any_neighbor_province_definition = {
825this = scope:target_charter.province_definition
}
}
}
829save_scope_as = target_province
}
}
832else_if = {
833limit = {
834any_province = {
835province_food_percentage > 0.75
836area = scope:target_charter.area
}
}
839ordered_province = {
840limit = {
841province_food_percentage > 0.75
842area = scope:target_charter.area
}
844order_by = {
845value = population
846if = {
847limit = {
847province_food_percentage > 0
}
848divide = province_food_percentage
}
850else = {
850divide = 0.01
}
}
852max = 1
853check_range_bounds = no
854save_scope_as = target_province
}
}
}

Варианты

AТакова жизнь.
862scope:target_charter = {
863custom_tooltip = {
864text = every_location_in_province_gets_dry_spell_modifier_tt На все районы в Concept Target Charter будет влиять ослабляющий Concept «Засуха»
865every_location_in_province = {
866add_location_modifier = {
867modifier = dry_spell_modifier
868years = 2
869mode = add_and_extend
}
}
}
875every_location_in_province = {
876ordered_pop = {
877max = 1
878order_by = pop_size
879check_range_bounds = no
880add_pop_size = {
881value = pop_size
882if = {
883limit = {
884location = {
884winter_level = severe
}
}
886multiply = -0.25
}
888else_if = {
889limit = {
890location = {
890winter_level = normal
}
}
892multiply = -0.15
}
894else_if = {
895limit = {
896location = {
896winter_level = mild
}
}
898multiply = -0.05
}
900else = {
901multiply = -0.02
}
}
}
}
}
BВыделим запасы продовольствия из LR GEN Target Province!
912trigger = {
912exists = scope:target_province
}
914scale = -4
}
916scope:target_province = {
917change_province_food_percentage = -0.33
}
920scope:target_charter = {
921every_location_in_province = {
922ordered_pop = {
923max = 1
924order_by = pop_size
925check_range_bounds = no
926add_pop_size = {
927value = pop_size
928if = {
929limit = {
930location = {
930winter_level = severe
}
}
932multiply = -0.1
}
934else_if = {
935limit = {
936location = {
936winter_level = normal
}
}
938multiply = -0.05
}
940else_if = {
941limit = {
942location = {
942winter_level = mild
}
}
944multiply = -0.01
}
946else = {
947multiply = -0.005
}
}
}
}
}