anchor.diff: +/// The carp rift is currently charging.
  +#define CHARGE_ONGOING			0
  +/// The carp rift is currently charging and has output a final warning.
  +#define CHARGE_FINALWARNING		1
  +/// The carp rift is now fully charged.
  +#define CHARGE_COMPLETED		2
  +
   /**
     * # Space Dragon
     *
  
positive.code: 	armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 100, BOMB = 50, BIO = 100, RAD = 100, FIRE = 100, ACID = 100)
  	max_integrity = 300
  	icon = 'icons/obj/carp_rift.dmi'
  	icon_state = "carp_rift"
  	light_color = LIGHT_COLOR_BLUE
  	light_range = 10
  	anchored = TRUE
  	density = FALSE
  	layer = MASSIVE_OBJ_LAYER
  	/// The amount of time the rift has charged for.
  	var/time_charged = 0
  	/// The maximum charge the rift can have.  It actually goes to max_charge + 1, as to prevent constantly retriggering the effects on full charge.
  	var/max_charge = 480
  	/// How many carp spawns it has available.
  	var/carp_stored = 0
  	/// A reference to the Space Dragon that created it.
  	var/mob/living/simple_animal/hostile/space_dragon/dragon
  
  /obj/structure/carp_rift/Initialize(mapload)
  	. = ..()
  	carp_stored = 1
  	time_charged = 1
  	START_PROCESSING(SSobj, src)
  
  /obj/structure/carp_rift/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
  	playsound(src, 'sound/magic/lightningshock.ogg', 50, TRUE)
  
negative.code: 	if(S)
  		S.carp += newcarp.mind
  	to_chat(newcarp, "<span class='boldwarning'>You have arrived in order to assist the space dragon with securing the rift.  Do not jeopardize the mission, and protect the rift at all costs!</span>")
  	carp_stored--
  	if(carp_stored <= 0 && charge_state < CHARGE_COMPLETED)
  		icon_state = "carp_rift"
  		set_light_color(LIGHT_COLOR_BLUE)
  		update_light()
  	return TRUE
  
  #undef CHARGE_ONGOING
  #undef CHARGE_FINALWARNING
  #undef CHARGE_COMPLETED
  