anchor.diff:  	attack_vis_effect = ATTACK_EFFECT_CLAW
   	unique_name = TRUE
   	faction = list("rat")
  +	///Whether or not the regal rat is already opening an airlock
  +	var/opening_airlock = FALSE
   	///The spell that the rat uses to generate miasma
   	var/datum/action/cooldown/domain
   	///The Spell that the rat uses to recruit/convert more rats.
  
positive.code: /mob/living/simple_animal/hostile/regalrat
  	name = "feral regal rat"
  	desc = "An evolved rat, created through some strange science. They lead nearby rats with deadly efficiency to protect their kingdom. Not technically a king."
  
negative.code: 		qdel(target)
  	else
  		to_chat(src, span_warning("You feel fine, no need to eat anything!"))
  
  /**
   * Allows rat king to pry open an airlock if it isn't locked.
   *
   * A proc used for letting the rat king pry open airlocks instead of just attacking them.
   * This allows the rat king to traverse the station when there is a lack of vents or
   * accessible doors, something which is common in certain rat king spawn points.
   */
  /mob/living/simple_animal/hostile/regalrat/proc/pry_door(target)
  	var/obj/machinery/door/airlock/prying_door = target
  	if(!prying_door.density || prying_door.locked || prying_door.welded || prying_door.seal)
  		return FALSE
  	opening_airlock = TRUE
  	visible_message(
  		span_warning("[src] begins prying open the airlock..."),
  		span_notice("You begin digging your claws into the airlock..."),
  		span_warning("You hear groaning metal..."),
  	)
  	var/time_to_open = 0.5 SECONDS
  	if(prying_door.hasPower())
  		time_to_open = 5 SECONDS
  		playsound(src, 'sound/machines/airlock_alien_prying.ogg', 100, vary = TRUE)
  	if(do_after(src, time_to_open, prying_door))
  		opening_airlock = FALSE
  		if(prying_door.density && !prying_door.open(2))
  			to_chat(src, span_warning("Despite your efforts, the airlock managed to resist your attempts to open it!"))
  			return FALSE
  		prying_door.open()
  		return FALSE
  	opening_airlock = FALSE
  
  /mob/living/simple_animal/hostile/regalrat/controlled/Initialize(mapload)
  	. = ..()
  