<commit_before>/obj/structure/borer_egg
	anchored = 1
	density = 0
	desc = "A strange egg. It glows sometimes."
	name = "egg"
	icon = 'icons/mob/animal.dmi'
	icon_state = "borer_egg"
	var/health = 100
	var/hitnoise = 'sound/items/Welder.ogg'
	var/timeleft
	layer = TURF_LAYER

/obj/structure/borer_egg/New()
	..()
	timeleft = world.time + rand(1800, 3000)
	processing_objects.Add(src)

/obj/structure/borer_egg/process()

	if(timeleft > world.time)
		return

	var/mob/dead/observer/ghost
	for(var/mob/dead/observer/O in src.loc)
		if(!O.client)	continue
		if(O.can_reenter_corpse && O.mind && O.mind.current && O.mind.current.stat != DEAD)	continue
		ghost = O
		break

	var/turf/location = get_turf(src)
	var/datum/gas_mixture/environment = location.return_air()
	if(environment.toxins >= MOLES_PLASMA_VISIBLE && ghost)
		var/response = alert(ghost, "This egg is ready to hatch. Do you want to be a cortical borer?",, "Yes", "No")
		if(!src || src.gc_destroyed)
			return
		if(response == "Yes")
			var/mob/living/simple_animal/borer/B = new /mob/living/simple_animal/borer
			B.loc = src.loc
			B.key = ghost.key
			if(B.evil)
				B.make_special()
			qdel(src)
	else if(environment.toxins >= MOLES_PLASMA_VISIBLE || ghost)
		if(icon_state != "borer_egg_pulsing")<commit_msg>borer compatibility with listmos<commit_after>/obj/structure/borer_egg
	anchored = 1
	density = 0
	desc = "A strange egg. It glows sometimes."
	name = "egg"
	icon = 'icons/mob/animal.dmi'
	icon_state = "borer_egg"
	var/health = 100
	var/hitnoise = 'sound/items/Welder.ogg'
	var/timeleft
	layer = TURF_LAYER

/obj/structure/borer_egg/New()
	..()
	timeleft = world.time + rand(1800, 3000)
	processing_objects.Add(src)

/obj/structure/borer_egg/process()

	if(timeleft > world.time)
		return

	var/mob/dead/observer/ghost
	for(var/mob/dead/observer/O in src.loc)
		if(!O.client)	continue
		if(O.can_reenter_corpse && O.mind && O.mind.current && O.mind.current.stat != DEAD)	continue
		ghost = O
		break

	var/turf/location = get_turf(src)
	var/datum/gas_mixture/environment = location.return_air()
	if(PLASMA in environment.gasses && environment.gasses[PLASMA] >= MOLES_PLASMA_VISIBLE && ghost)
		var/response = alert(ghost, "This egg is ready to hatch. Do you want to be a cortical borer?",, "Yes", "No")
		if(!src || src.gc_destroyed)
			return
		if(response == "Yes")
			var/mob/living/simple_animal/borer/B = new /mob/living/simple_animal/borer
			B.loc = src.loc
			B.key = ghost.key
			if(B.evil)
				B.make_special()
			qdel(src)
	else if((PLASMA in environment.gasses && environment.gasses[PLASMA] >= MOLES_PLASMA_VISIBLE) || ghost)
		if(icon_state != "borer_egg_pulsing")
{'fraction_non_alphanumeric': 0.14172634753109686, 'fraction_numerical': 0.00980022615906521, 'mean_word_length': 3.951492537313433, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2138778', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1036, 'n_words': 200}