anchor.diff:  	var/turftype = /turf/open/space
   
   /obj/machinery/door/poddoor/shuttledock/proc/check()
  -	var/turf/T = get_step(src, checkdir)
  -	if(!istype(T, turftype))
  +	var/turf/turf = get_step(src, checkdir)
  +	if(!istype(turf, turftype))
   		INVOKE_ASYNC(src, .proc/open)
   	else
   		INVOKE_ASYNC(src, .proc/close)
  
positive.code: 	damage_deflection = 70
  	var/datum/crafting_recipe/recipe_type = /datum/crafting_recipe/blast_doors
  	var/deconstruction = BLASTDOOR_FINISHED // deconstruction step
  
  /obj/machinery/door/poddoor/attackby(obj/item/W, mob/user, params)
  	. = ..()
  
  	if(W.tool_behaviour == TOOL_SCREWDRIVER)
  		if(density)
  			balloon_alert(user, "open the door first!")
  			return
  		else if(default_deconstruction_screwdriver(user, icon_state, icon_state, W))
  			return TRUE
  
  	if(panel_open)
  		if(W.tool_behaviour == TOOL_MULTITOOL && deconstruction == BLASTDOOR_FINISHED)
  			var/change_id = input("Set the shutters/blast door/blast door controllers ID. It must be a number between 1 and 100.", "ID", id) as num|null
  			if(change_id)
  				id = clamp(round(change_id, 1), 1, 100)
  				to_chat(user, span_notice("You change the ID to [id]."))
  				balloon_alert(user, "ID changed")
  
  		else if(W.tool_behaviour == TOOL_CROWBAR && deconstruction == BLASTDOOR_FINISHED)
  			balloon_alert(user, "removing airlock electronics...")
  			if(W.use_tool(src, user, 100, volume=50))
  				new /obj/item/electronics/airlock(loc)
  				id = null
  				deconstruction = BLASTDOOR_NEEDS_ELECTRONICS
  				balloon_alert(user, "removed airlock electronics")
  			return TRUE
  
  		else if(W.tool_behaviour == TOOL_WIRECUTTER && deconstruction == BLASTDOOR_NEEDS_ELECTRONICS)
  			balloon_alert(user, "removing internal cables...")
  			if(W.use_tool(src, user, 100, volume=50))
  				var/datum/crafting_recipe/recipe = locate(recipe_type) in GLOB.crafting_recipes
  				var/amount = recipe.reqs[/obj/item/stack/cable_coil]
  				new /obj/item/stack/cable_coil(loc, amount)
  				deconstruction = BLASTDOOR_NEEDS_WIRES
  				balloon_alert(user, "removed internal cables")
  			return TRUE
  
  		else if(W.tool_behaviour == TOOL_WELDER && deconstruction == BLASTDOOR_NEEDS_WIRES)
  			if(!W.tool_start_check(user, amount=0))
  				return
  
  			balloon_alert(user, "tearing apart...") //You're tearing me apart, Lisa!
  			if(W.use_tool(src, user, 150, volume=50))
  				var/datum/crafting_recipe/recipe = locate(recipe_type) in GLOB.crafting_recipes
  				var/amount = recipe.reqs[/obj/item/stack/sheet/plasteel]
  				new /obj/item/stack/sheet/plasteel(loc, amount)
  				user.balloon_alert(user, "torn apart")
  				qdel(src)
  			return TRUE
  
  /obj/machinery/door/poddoor/examine(mob/user)
  	. = ..()
  
negative.code: 	desc = "A heavy duty blast door that opens mechanically."
  	icon = 'icons/obj/doors/blastdoor.dmi'
  	icon_state = "closed"
  	layer = BLASTDOOR_LAYER
  	closingLayer = CLOSED_BLASTDOOR_LAYER
  	sub_door = TRUE
  