anchor.diff:  	if(!(flags_1 & NODECONSTRUCT_1))
   		if(!(stat & BROKEN))
   			set_broken()
  -		if(opened != 2)
  -			opened = 2
  +		if(opened != APC_COVER_REMOVED)
  +			opened = APC_COVER_REMOVED
  +			coverlocked = FALSE
   			visible_message("<span class='warning'>The APC cover is knocked down!</span>")
   			update_icon()
   
  
positive.code: 
  //attack with an item - open/close cover, insert cell, or (un)lock interface
  
  /obj/machinery/power/apc/attackby(obj/item/W, mob/living/user, params)
  
  	if(issilicon(user) && get_dist(src,user)>1)
  		return attack_hand(user)
  	if (istype(W, /obj/item/crowbar)) //Using crowbar
  		if (opened) // a) on open apc
  			if (has_electronics==1)
  				if (terminal)
  					to_chat(user, "<span class='warning'>Disconnect the wires first!</span>")
  					return
  				W.play_tool_sound(src)
  				to_chat(user, "<span class='notice'>You are trying to remove the power control board...</span>" )
  				if(W.use_tool(src, user, 50))
  					if (has_electronics==1)
  						has_electronics = 0
  						if (stat & BROKEN)
  							user.visible_message(\
  								"[user.name] has broken the power control board inside [src.name]!",\
  								"<span class='notice'>You break the charred power control board and remove the remains.</span>",
  								"<span class='italics'>You hear a crack.</span>")
  							return
  							//SSticker.mode:apcs-- //XSI said no and I agreed. -rastaf0
  						else if (obj_flags & EMAGGED) // We emag board, not APC's frame
  							obj_flags &= ~EMAGGED
  							user.visible_message(\
  								"[user.name] has discarded emaged power control board from [src.name]!",\
  								"<span class='notice'>You discarded shorten board.</span>")
  							return
  						else if (malfhack) // AI hacks board, not APC's frame
  							user.visible_message(\
  								"[user.name] has discarded strangely programmed power control board from [src.name]!",\
  								"<span class='notice'>You discarded strangely programmed board.</span>")
  							malfai = null
  							malfhack = 0
  							return
  						else
  							user.visible_message(\
  								"[user.name] has removed the power control board from [src.name]!",\
  								"<span class='notice'>You remove the power control board.</span>")
  							new /obj/item/electronics/apc(loc)
  							return
  			else if(integration_cog)
  				user.visible_message("<span class='notice'>[user] starts prying [integration_cog] from [src]...</span>", \
  				"<span class='notice'>You painstakingly start tearing [integration_cog] out of [src]'s guts...</span>")
  				W.play_tool_sound(src)
  				if(W.use_tool(src, user, 100))
  					user.visible_message("<span class='notice'>[user] destroys [integration_cog] in [src]!</span>", \
  					"<span class='notice'>[integration_cog] comes free with a clank and snaps in two as the machinery returns to normal!</span>")
  					playsound(src, 'sound/items/deconstruct.ogg', 50, TRUE)
  					QDEL_NULL(integration_cog)
  				return
  			else if (opened!=2) //cover isn't removed
  				opened = 0
  				coverlocked = TRUE //closing cover relocks it
  				update_icon()
  				return
  		else if (!(stat & BROKEN)) // b) on closed and not broken APC
  			if(coverlocked && !(stat & MAINT)) // locked...
  				to_chat(user, "<span class='warning'>The cover is locked and cannot be opened!</span>")
  				return
  			else if (panel_open) // wires are exposed
  				to_chat(user, "<span class='warning'>Exposed wires prevents you from opening it!</span>")
  				return
  			else
  				opened = 1
  				update_icon()
  				return
  
  	else if	(istype(W, /obj/item/stock_parts/cell) && opened)	// trying to put a cell inside
  		if(cell)
  			to_chat(user, "<span class='warning'>There is a power cell already installed!</span>")
  			return
  
negative.code: 			qdel(W)
  			stat &= ~BROKEN
  			obj_integrity = max_integrity
  			if (opened==APC_COVER_REMOVED)
  				opened = APC_COVER_OPENED
  			update_icon()
  	else if(istype(W, /obj/item/clockwork/integration_cog) && is_servant_of_ratvar(user))
  		if(integration_cog)
  