anchor.diff:  	icon = 'icons/obj/doors/mineral_doors.dmi'
   	icon_state = "metal"
   
  -	var/mineralType = "metal"
  +	var/initial_state
   	var/state = 0 //closed, 1 == open
   	var/isSwitchingStates = 0
   	var/close_delay = -1 //-1 if does not auto close.
   	var/hardness = 1
  -	var/oreAmount = 7
  +	var/sheetType = /obj/item/stack/sheet/metal
  +	var/sheetAmount = 7
   	var/openSound = 'sound/effects/stonedoor_openclose.ogg'
   	var/closeSound = 'sound/effects/stonedoor_openclose.ogg'
   
   /obj/structure/mineral_door/New(location)
   	..()
  -	icon_state = mineralType
  -	name = "[mineralType] door"
  -	air_update_turf(1)
  -	return
  +	initial_state = icon_state
  +	air_update_turf(1)
   
   /obj/structure/mineral_door/Destroy()
   	density = 0
  
positive.code: /obj/structure/mineral_door/proc/Open()
  	isSwitchingStates = 1
  	playsound(loc, openSound, 100, 1)
  	flick("[mineralType]opening",src)
  	sleep(10)
  	density = 0
  	opacity = 0
  
negative.code: 	isSwitchingStates = 0
  
  	if(close_delay != -1)
  		addtimer(src, "Close", close_delay)
  
  /obj/structure/mineral_door/proc/Close()
  	if(isSwitchingStates || state != 1)
  		return
  	var/turf/T = get_turf(src)
  	for(var/mob/living/L in T)
  		return
  	isSwitchingStates = 1
  	playsound(loc, closeSound, 100, 1)
  	flick("[initial_state]closing",src)
  	sleep(10)
  	density = 1
  	opacity = 1
  