#action_type = { # available = { # #trigger to check if action available # } # # weight = { # base = 1 # modifier = { # add = 10 # } # } # # max_amount = 3 # duration = 10 # # effect = { # # } # # state_modifier = { # # } # # #if defined, the game will show up an alert text on map when resistance activity trigerred # alert_text = loc #} sabotage_arms_factory = { available = { non_damaged_building_level = { building = arms_factory level > 0 } } weight = { base = 1 modifier = { has_variable = targeted_sabotage_industry add = var:targeted_sabotage_industry } modifier = { occupation_law = harsh_quotas_occupation add = -0.25 } } effect = { if = { limit = { arms_factory > 0 } damage_building = { type = arms_factory damage = 0.25 } } } alert_text = building_is_sabotaged } sabotage_infrastructure = { available = { non_damaged_building_level = { building = infrastructure level > 0 } } weight = { base = 1 modifier = { has_variable = targeted_sabotage_infrastructure add = var:targeted_sabotage_infrastructure } } effect = { if = { limit = { infrastructure > 0 } damage_building = { type = infrastructure damage = 0.5 } } } alert_text = building_is_sabotaged } sabotage_industrial_complex = { available = { non_damaged_building_level = { building = industrial_complex level > 0 } } weight = { base = 1 modifier = { has_variable = targeted_sabotage_industry add = var:targeted_sabotage_industry } modifier = { occupation_law = harsh_quotas_occupation add = -0.25 } } effect = { if = { limit = { industrial_complex > 0 } damage_building = { type = industrial_complex damage = 0.25 } } } alert_text = building_is_sabotaged } sabotage_air_base = { available = { non_damaged_building_level = { building = air_base level > 0 } } weight = { base = 1 modifier = { has_variable = targeted_sabotage_infrastructure add = var:targeted_sabotage_infrastructure } } effect = { if = { limit = { air_base > 0 } damage_building = { type = air_base damage = 0.25 } } } alert_text = building_is_sabotaged } sabotage_dockyard = { available = { non_damaged_building_level = { building = dockyard level > 0 } } weight = { base = 1 modifier = { has_variable = targeted_sabotage_infrastructure add = var:targeted_sabotage_infrastructure } } effect = { if = { limit = { dockyard > 0 } damage_building = { type = dockyard damage = 0.25 } } } alert_text = building_is_sabotaged } sabotage_anti_air_building = { available = { non_damaged_building_level = { building = anti_air_building level > 0 } } weight = { base = 1 modifier = { has_variable = targeted_sabotage_infrastructure add = var:targeted_sabotage_infrastructure } } effect = { if = { limit = { anti_air_building > 0 } damage_building = { type = anti_air_building damage = 0.25 } } } alert_text = building_is_sabotaged } sabotage_renewable_energy_infra = { available = { non_damaged_building_level = { building = renewable_energy_infra level > 0 } } weight = { base = 1 modifier = { has_variable = targeted_sabotage_resources add = var:targeted_sabotage_resources } } effect = { if = { limit = { renewable_energy_infra > 0 } damage_building = { type = renewable_energy_infra damage = 0.25 } } } alert_text = building_is_sabotaged } sabotage_fuel_silo = { available = { non_damaged_building_level = { building = fuel_silo level > 0 } } weight = { base = 1 modifier = { has_variable = targeted_sabotage_resouces add = var:targeted_sabotage_resouces } } effect = { if = { limit = { fuel_silo > 0 } damage_building = { type = fuel_silo damage = 0.25 } } } alert_text = building_is_sabotaged } sabotage_radar_station = { available = { non_damaged_building_level = { building = radar_station level > 0 } } weight = { base = 1 modifier = { has_variable = targeted_sabotage_infrastructure add = var:targeted_sabotage_infrastructure } } effect = { if = { limit = { radar_station > 0 } damage_building = { type = radar_station damage = 0.25 } } } alert_text = building_is_sabotaged } # sabotage_rocket_site = { # available = { # non_damaged_building_level = { # building = rocket_site # level > 0 # } # } # weight = { # base = 1 # modifier = { # has_variable = targeted_sabotage_infrastructure # add = var:targeted_sabotage_infrastructure # } # } # effect = { # damage_building = { # type = rocket_site # damage = 0.25 # } # } # alert_text = building_is_sabotaged # } sabotage_nuclear_reactor = { available = { non_damaged_building_level = { building = nuclear_reactor level > 0 } } weight = { base = 1 modifier = { has_variable = targeted_sabotage_industry add = var:targeted_sabotage_industry } } effect = { if = { limit = { nuclear_reactor > 0 } damage_building = { type = nuclear_reactor damage = 0.15 } } } alert_text = building_is_sabotaged } sabotage_oil = { available = { has_resources_amount = { resource = oil amount > 0 delivered = yes } } weight = { base = 1 modifier = { has_variable = targeted_sabotage_resources add = var:targeted_sabotage_resources } modifier = { occupation_law = forced_labor_occupation add = -0.25 } } effect = { clear_sabotaged_resources_if_necesary = yes add_to_variable = { sabotaged_oil = -12 } set_temp_variable = { duration = 180 } if = { limit = { occupation_law = forced_labor_occupation } multiply_temp_variable = { duration = 0.75 } } add_dynamic_modifier = { modifier = sabotaged_resources days = duration } } alert_text = resource_is_sabotaged } sabotage_aluminium = { available = { has_resources_amount = { resource = aluminium amount > 0 delivered = yes } } weight = { base = 1 modifier = { has_variable = targeted_sabotage_resources add = var:targeted_sabotage_resources } modifier = { occupation_law = forced_labor_occupation add = -0.25 } } effect = { clear_sabotaged_resources_if_necesary = yes add_to_variable = { sabotaged_aluminium = -12 } set_temp_variable = { duration = 180 } if = { limit = { occupation_law = forced_labor_occupation } multiply_temp_variable = { duration = 0.75 } } add_dynamic_modifier = { modifier = sabotaged_resources days = duration } } alert_text = resource_is_sabotaged } # sabotage_rubber = { # available = { # has_resources_amount = { # resource = rubber # amount > 0 # delivered = yes # } # } # weight = { # base = 1 # modifier = { # has_variable = targeted_sabotage_resources # add = var:targeted_sabotage_resources # } # modifier = { # occupation_law = forced_labor_occupation # add = -0.25 # } # } # effect = { # clear_sabotaged_resources_if_necesary = yes # add_to_variable = { sabotaged_rubber = -12 } # set_temp_variable = { duration = 180 } # if = { # limit = { occupation_law = forced_labor_occupation } # multiply_temp_variable = { duration = 0.75 } # } # add_dynamic_modifier = { # modifier = sabotaged_resources # days = duration # } # } # alert_text = resource_is_sabotaged # } sabotage_tungsten = { available = { has_resources_amount = { resource = tungsten amount > 0 delivered = yes } } weight = { base = 1 modifier = { has_variable = targeted_sabotage_resources add = var:targeted_sabotage_resources } modifier = { occupation_law = forced_labor_occupation add = -0.25 } } effect = { clear_sabotaged_resources_if_necesary = yes add_to_variable = { sabotaged_tungsten = -12 } set_temp_variable = { duration = 180 } if = { limit = { occupation_law = forced_labor_occupation } multiply_temp_variable = { duration = 0.75 } } add_dynamic_modifier = { modifier = sabotaged_resources days = duration } } alert_text = resource_is_sabotaged } sabotage_steel = { available = { has_resources_amount = { resource = steel amount > 0 delivered = yes } } weight = { base = 1 modifier = { has_variable = targeted_sabotage_resources add = var:targeted_sabotage_resources } modifier = { occupation_law = forced_labor_occupation add = -0.25 } } effect = { clear_sabotaged_resources_if_necesary = yes add_to_variable = { sabotaged_steel = -12 } set_temp_variable = { duration = 180 } if = { limit = { occupation_law = forced_labor_occupation } multiply_temp_variable = { duration = 0.75 } } add_dynamic_modifier = { modifier = sabotaged_resources days = duration } } alert_text = resource_is_sabotaged } # sabotage_chromium = { # available = { # has_resources_amount = { # resource = chromium # amount > 0 # delivered = yes # } # } # weight = { # base = 1 # modifier = { # has_variable = targeted_sabotage_resources # add = var:targeted_sabotage_resources # } # modifier = { # occupation_law = forced_labor_occupation # add = -0.25 # } # } # effect = { # clear_sabotaged_resources_if_necesary = yes # add_to_variable = { sabotaged_chromium = -12 } # set_temp_variable = { duration = 180 } # if = { # limit = { occupation_law = forced_labor_occupation } # multiply_temp_variable = { duration = 0.75 } # } # add_dynamic_modifier = { # modifier = sabotaged_resources # days = duration # } # } # alert_text = resource_is_sabotaged # }