anchor.diff:  #undef DISCONNECTED
   #undef CLAMPED_OFF
   #undef OPERATING
  +#undef FRACTION_TO_RELEASE
  +#undef ALERT
  +#undef MINIMUM_HEAT
  
positive.code: #define CLAMPED_OFF 1
  #define OPERATING 2
  
  // Powersink - used to drain station power
  
  /obj/item/powersink
  	name = "power sink"
  	desc = "A nulling power sink which drains energy from electrical systems."
  	icon = 'icons/obj/device.dmi'
  	icon_state = "powersink0"
  	inhand_icon_state = "electronic"
  
negative.code: 	throw_speed = 1
  	throw_range = 2
  	custom_materials = list(/datum/material/iron=750)
  	var/max_heat = 5e7 // Maximum contained heat before exploding. Not actual temperature.
  	var/internal_heat = 0 // Contained heat, goes down every tick.
  	var/mode = DISCONNECTED // DISCONNECTED, CLAMPED_OFF, OPERATING
  	var/admins_warned = FALSE // Stop spam, only warn the admins once that we are about to boom.
  
  	var/obj/structure/cable/attached
  
  /obj/item/powersink/update_icon_state()
  	icon_state = "powersink[mode == OPERATING]"
  	return ..()
  
  /obj/item/powersink/examine(mob/user)
  	. = ..()
  	if(mode)
  		. += "\The [src] is bolted to the floor."
  	if(in_range(user, src) || isobserver(user) && internal_heat > max_heat * 0.5)
  		. += "<span class='danger'>[src] is warping the air above it. It must be very hot.</span>"
  
  /obj/item/powersink/set_anchored(anchorvalue)
  	. = ..()
  