#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 = {
		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 = {
		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 = {
		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 = {
		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 = {
		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 = {
		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_oil
			level > 0
		}
	}

	weight = {
		base = 1
		modifier = {
			has_variable = targeted_sabotage_resources
			add = var:targeted_sabotage_resources
		}
	}

	effect = {
		damage_building = {
			type = synthetic_refinery_oil
			damage = 0.25
		}
	}

	alert_text = building_is_sabotaged
}


sabotage_fuel_silo = {
	available = {
		non_damaged_building_level = {
			building = fuel_silo_industrial
			level > 0
		}
	}

	weight = {
		base = 1
		modifier = {
			has_variable = targeted_sabotage_resouces
			add = var:targeted_sabotage_resouces
		}
	}

	effect = {
		damage_building = {
			type = fuel_silo_industrial
			damage = 0.25
		}
	}

	alert_text = building_is_sabotaged
}

sabotage_fuel_silo_modern = {
	available = {
		non_damaged_building_level = {
			building = fuel_silo_modern
			level > 0
		}
	}

	weight = {
		base = 1
		modifier = {
			has_variable = targeted_sabotage_resouces
			add = var:targeted_sabotage_resouces
		}
	}

	effect = {
		damage_building = {
			type = fuel_silo_modern
			damage = 0.25
		}
	}

	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
}
