anchor.diff:  				close()
   			src.updateUsrDialog()
   
  +		if(AIRLOCK_WIRE_LIGHT)
  +			lights = 1
  +			src.updateUsrDialog()
  +
   
   /obj/machinery/door/airlock/proc/isElectrified()
   	if(src.secondsElectrified != 0)
  
positive.code: //This generates the randomized airlock wire assignments for the game.
  /proc/RandomAirlockWires()
  	//to make this not randomize the wires, just set index to 1 and increment it in the flag for loop (after doing everything else).
  	var/list/wires = list(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
  	airlockIndexToFlag = list(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
  	airlockIndexToWireColor = list(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
  	airlockWireColorToIndex = list(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
  	var/flagIndex = 1
  	for (var/flag=1, flag<2048, flag+=flag)
  		var/valid = 0
  		while (!valid)
  			var/colorIndex = rand(1, 11)
  			if(wires[colorIndex]==0)
  				valid = 1
  				wires[colorIndex] = flag
  				airlockIndexToFlag[flagIndex] = flag
  				airlockIndexToWireColor[flagIndex] = colorIndex
  				airlockWireColorToIndex[colorIndex] = flagIndex
  		flagIndex+=1
  	return wires
  
  
negative.code: /obj/machinery/door/airlock/update_icon()
  	if(overlays) overlays = null
  	if(density)
  		if(locked && lights)
  			icon_state = "door_locked"
  		else
  			icon_state = "door_closed"
  