anchor.diff:  		if(6)
   			new /obj/item/clothing/gloves/gauntlets(src)
   		if(7)
  -			var/mod = rand(1,4)
  +			mod = rand(1,4)
   			switch(mod)
   				if(1)
   					new /obj/item/disk/design_disk/modkit_disc/resonator_blast(src)
  
positive.code: 			new /obj/item/bedsheet/cult(src)
  		if(20)
  			new /obj/item/clothing/neck/necklace/memento_mori(src)
  	spawned_loot = TRUE
  	qdel(item)
  	to_chat(user, span_notice("You disable the magic lock, revealing the loot."))
  	return TRUE
  
  /obj/structure/closet/crate/necropolis/tendril/can_open(mob/living/user, force = FALSE)
  	if(!spawned_loot)
  
negative.code: 	/// var to check if it got opened by a key
  	var/spawned_loot = FALSE
  
  /obj/structure/closet/crate/necropolis/tendril/attackby(obj/item/item, mob/user, params)
  	if(!istype(item, /obj/item/skeleton_key) || spawned_loot)
  		return ..()
  	var/loot = rand(1,20)
  	var/mod
  	switch(loot)
  		if(1)
  			new /obj/item/shared_storage/red(src)
  