anchor.diff:  					//electrify door for 30 seconds
   					if(wires.is_cut(WIRE_SHOCK))
   						to_chat(usr, text("The electrification wire has been cut.<br>\n"))
  -					else if(src.secondsElectrified==-1)
  +					else if(secondsElectrified==ELECTRIFIED_PERMANENT)
   						to_chat(usr, text("The door is already indefinitely electrified. You'd have to un-electrify it before you can re-electrify it with a non-forever duration.<br>\n"))
  -					else if(src.secondsElectrified!=0)
  +					else if(isElectrified())
   						to_chat(usr, text("The door is already electrified. You can't re-electrify it while it's already electrified.<br>\n"))
   					else
   						shockedby += "\[[time_stamp()]\][usr](ckey:[usr.ckey])"
   						add_logs(usr, src, "electrified")
   						set_electrified(30)
   						spawn(10)
  -							while (src.secondsElectrified>0)
  -								src.secondsElectrified-=1
  -								if(src.secondsElectrified<0)
  -									set_electrified(0)
  -								src.updateUsrDialog()
  +							while (secondsElectrified > 0)
  +								secondsElectrified--
  +								if(secondsElectrified <= 0)
  +									set_electrified(NOT_ELECTRIFIED)
  +								updateUsrDialog()
   								sleep(10)
   				if(6)
   					//electrify door indefinitely
   					if(wires.is_cut(WIRE_SHOCK))
   						to_chat(usr, text("The electrification wire has been cut.<br>\n"))
  -					else if(src.secondsElectrified==-1)
  +					else if(secondsElectrified==ELECTRIFIED_PERMANENT)
   						to_chat(usr, text("The door is already indefinitely electrified.<br>\n"))
  -					else if(src.secondsElectrified!=0)
  +					else if(isElectrified())
   						to_chat(usr, text("The door is already electrified. You can't re-electrify it while it's already electrified.<br>\n"))
   					else
   						shockedby += text("\[[time_stamp()]\][usr](ckey:[usr.ckey])")
   						add_logs(usr, src, "electrified")
  -						set_electrified(-1)
  +						set_electrified(ELECTRIFIED_PERMANENT)
   
   				if (8) // Not in order >.>
   					// Safeties!  Maybe we do need some stinking safeties!
  
positive.code: 	user.Weaken(3)
  
  /obj/machinery/door/airlock/proc/isElectrified()
  	if(src.secondsElectrified != 0)
  		return 1
  	return 0
  
  
negative.code: 		safe = FALSE //DOOR CRUSH
  		close()
  		bolt() //Bolt it!
  		set_electrified(ELECTRIFIED_PERMANENT)  //Shock it!
  		if(origin)
  			shockedby += "\[[time_stamp()]\][origin](ckey:[origin.ckey])"
  
  