#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 check_variable = { targeted_sabotage_industry > 0 } add = 4 } modifier = { occupation_law = harsh_quotas_occupation add = -0.25 } } effect = { if = { limit = { has_variable = targeted_sabotage_industry check_variable = { targeted_sabotage_industry > 0 } } damage_building = { type = arms_factory damage = 0.5 } subtract_from_variable = { var = targeted_sabotage_industry value = 1 } } else = { 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 check_variable = { targeted_sabotage_infrastructure > 0 } add = 4 } } effect = { if = { limit = { has_variable = targeted_sabotage_infrastructure check_variable = { targeted_sabotage_infrastructure > 0 } } damage_building = { type = infrastructure damage = 1.0 } subtract_from_variable = { var = targeted_sabotage_infrastructure value = 1 } } else = { 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 check_variable = { targeted_sabotage_industry > 0 } add = 4 } modifier = { occupation_law = harsh_quotas_occupation add = -0.25 } } effect = { if = { limit = { has_variable = targeted_sabotage_industry check_variable = { targeted_sabotage_industry > 0 } } damage_building = { type = industrial_complex damage = 0.5 } subtract_from_variable = { var = targeted_sabotage_industry value = 1 } } else = { 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 } effect = { 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 } effect = { 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 } effect = { damage_building = { type = anti_air_building damage = 0.25 } } alert_text = building_is_sabotaged } sabotage_synthetic_refinery = { available = { non_damaged_building_level = { building = synthetic_refinery level > 0 } } weight = { base = 1 } effect = { damage_building = { type = synthetic_refinery damage = 0.25 } } alert_text = building_is_sabotaged } sabotage_fuel_silo = { available = { non_damaged_building_level = { building = fuel_silo level > 0 } } weight = { base = 1 } effect = { 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 } effect = { 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 } 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 } effect = { damage_building = { type = nuclear_reactor damage = 0.15 } } alert_text = building_is_sabotaged } sabotage_nuclear_reactor_heavy_water = { available = { non_damaged_building_level = { building = nuclear_reactor_heavy_water level > 0 } } weight = { base = 1 } effect = { damage_building = { type = nuclear_reactor_heavy_water damage = 0.15 } } alert_text = building_is_sabotaged } sabotage_commercial_nuclear_reactor = { available = { non_damaged_building_level = { building = commercial_nuclear_reactor level > 0 } } weight = { base = 1 } effect = { damage_building = { type = commercial_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 check_variable = { targeted_sabotage_resources > 0 } add = 4 } 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 } } if = { limit = { has_variable = targeted_sabotage_resources check_variable = { targeted_sabotage_resources > 0 } } add_to_variable = { sabotaged_oil = -8 } subtract_from_variable = { var = targeted_sabotage_resources value = 1 } } 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 check_variable = { targeted_sabotage_resources > 0 } add = 4 } 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 } } if = { limit = { has_variable = targeted_sabotage_resources check_variable = { targeted_sabotage_resources > 0 } } add_to_variable = { sabotaged_aluminium = -8 } subtract_from_variable = { var = targeted_sabotage_resources value = 1 } } 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 check_variable = { targeted_sabotage_resources > 0 } add = 4 } 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 } } if = { limit = { has_variable = targeted_sabotage_resources check_variable = { targeted_sabotage_resources > 0 } } add_to_variable = { sabotaged_rubber = -8 } subtract_from_variable = { var = targeted_sabotage_resources value = 1 } } 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 check_variable = { targeted_sabotage_resources > 0 } add = 4 } 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 } } if = { limit = { has_variable = targeted_sabotage_resources check_variable = { targeted_sabotage_resources > 0 } } add_to_variable = { sabotaged_tungsten = -8 } subtract_from_variable = { var = targeted_sabotage_resources value = 1 } } 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 = 0.5 modifier = { has_variable = targeted_sabotage_resources check_variable = { targeted_sabotage_resources > 0 } add = 4 } 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 } } if = { limit = { has_variable = targeted_sabotage_resources check_variable = { targeted_sabotage_resources > 0 } } add_to_variable = { sabotaged_steel = -8 } subtract_from_variable = { var = targeted_sabotage_resources value = 1 } } 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 = 0.5 modifier = { has_variable = targeted_sabotage_resources check_variable = { targeted_sabotage_resources > 0 } add = 4 } 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 } } if = { limit = { has_variable = targeted_sabotage_resources check_variable = { targeted_sabotage_resources > 0 } } add_to_variable = { sabotaged_chromium = -8 } subtract_from_variable = { var = targeted_sabotage_resources value = 1 } } add_dynamic_modifier = { modifier = sabotaged_resources days = duration } } alert_text = resource_is_sabotaged } sabotage_coal = { available = { has_resources_amount = { resource = coal amount > 0 delivered = yes } } weight = { base = 0.5 modifier = { has_variable = targeted_sabotage_resources check_variable = { targeted_sabotage_resources > 0 } add = 4 } modifier = { occupation_law = forced_labor_occupation add = -0.25 } } effect = { clear_sabotaged_resources_if_necesary = yes add_to_variable = { sabotaged_coal = -12 } set_temp_variable = { duration = 180 } if = { limit = { occupation_law = forced_labor_occupation } multiply_temp_variable = { duration = 0.75 } } if = { limit = { has_variable = targeted_sabotage_resources check_variable = { targeted_sabotage_resources > 0 } } add_to_variable = { sabotaged_coal = -8 } subtract_from_variable = { var = targeted_sabotage_resources value = 1 } } add_dynamic_modifier = { modifier = sabotaged_resources days = duration } } alert_text = resource_is_sabotaged }