anchor.diff:  	faction = list("mimic")
   	move_to_delay = 9
   	del_on_death = 1
  +	///A cap for items in the mimic. Prevents the mimic from eating enough stuff to cause lag when opened.
  +	var/storage_capacity = 50
  +	///A cap for mobs. Mobs count towards the item cap. Same purpose as above.
  +	var/mob_storage_capacity = 10
   
   // Aggro when you try to open them. Will also pickup loot when spawns and drop it when dies.
   /mob/living/simple_animal/hostile/mimic/crate
  
positive.code: 	. = ..()
  	if(istype(mover, /obj/structure/closet))
  		return FALSE
  
  /mob/living/simple_animal/hostile/mimic/xenobio/proc/toggle_open()
  	if(locked)
  		return
  
negative.code: 		icon_state = "crate"
  		playsound(src, close_sound, 50, TRUE)
  		for(var/atom/movable/AM in get_turf(src))
  			if(AM != src && insert(AM) == -1)
  				playsound(src, full_sound, 50, TRUE)
  				break
  /**
  * Called by toggle_open to put items inside the mimic when it's being closed
  *
  * Will return -1 if the insertion fails due to the storage capacity of the mimic having been reached
  * Will return FALSE if insertion fails
  * Will return TRUE if insertion succeeds
  * Arguments:
  * * AM - item to be inserted
  */
  /mob/living/simple_animal/hostile/mimic/xenobio/proc/insert(atom/movable/AM)
  	if(contents.len >= storage_capacity)
  		return -1
  	if(insertion_allowed(AM))
  		AM.forceMove(src)
  		return TRUE
  	else
  		return FALSE
  
  /mob/living/simple_animal/hostile/mimic/xenobio/proc/insertion_allowed(atom/movable/AM)
  	if(ismob(AM))
  