anchor.diff:  			dragon.rift.Grant(dragon)
   			dragon.riftTimer = 0
   			dragon.rift_empower(TRUE)
  +		// Early return, nothing to do after this point.
  +		return
  +
  +	// Do we need to give a final warning to the station at the halfway mark?
  +	if(charge_state < CHARGE_FINALWARNING && time_charged >= (max_charge * 0.5))
  +		charge_state = CHARGE_FINALWARNING
  +		var/area/A = get_area(src)
  +		priority_announce("A rift is causing an unnaturally large energy flux in [initial(A.name)].  Stop it at all costs!", "Central Command Spatial Corps", 'sound/ai/spanomalies.ogg')
   
   /**
     * Used to create carp controlled by ghosts when the option is available.
  
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
  