<commit_before>/*
Regenerative extracts:
	Work like a legion regenerative core.
	Has a unique additional effect.
*/
/obj/item/slimecross/regenerative
	name = "regenerative extract"
	desc = "It's filled with a milky substance, and pulses like a heartbeat."
	effect = "regenerative"
	icon_state = "regenerative"

/obj/item/slimecross/regenerative/proc/core_effect(mob/living/carbon/human/target, mob/user)
	return
/obj/item/slimecross/regenerative/proc/core_effect_before(mob/living/carbon/human/target, mob/user)
	return

/obj/item/slimecross/regenerative/pre_attack(atom/A, mob/living/user, params, attackchain_flags, damage_multiplier)
	if(!isliving(A))
		return TRUE //returning TRUE preemptively ends the attack chain and thus doesn't call afterattack, this is noteworthy for below as well
	var/mob/living/M = A
	if(M.stat == DEAD)
		to_chat(user, "<span class='warning'>[src] will not work on the dead!</span>")
		return TRUE
	//inform the target that they're about to have a regenerative extract used on them
	if(M != user)
		M.visible_message("<span class='notice'>[user] readies [src], holding it steady near [M] and guiding it to the center of [M.p_their()] mass...</span>",
			"<span class='notice'>[user] readies [src], holding it steady near you and guiding it to the center of your mass...</span>")
	else
		M.visible_message("<span class='notice'>[user] readies [src], holding it steady near [user.p_them()]self and guiding it to the center of [user.p_their()] mass...</span>",
			"<span class='notice'>You ready [src], holding it steady near you and guiding it to the center of your mass...</span>")
	if(!do_after(user, 50, target = M)) //5 seconds
		return TRUE
	. = ..()
<commit_msg>realized I can't place it on tables with how I set it up, woops.<commit_after>/*
Regenerative extracts:
	Work like a legion regenerative core.
	Has a unique additional effect.
*/
/obj/item/slimecross/regenerative
	name = "regenerative extract"
	desc = "It's filled with a milky substance, and pulses like a heartbeat."
	effect = "regenerative"
	icon_state = "regenerative"

/obj/item/slimecross/regenerative/proc/core_effect(mob/living/carbon/human/target, mob/user)
	return
/obj/item/slimecross/regenerative/proc/core_effect_before(mob/living/carbon/human/target, mob/user)
	return

/obj/item/slimecross/regenerative/pre_attack(atom/A, mob/living/user, params, attackchain_flags, damage_multiplier)
	if(isliving(A))
		var/mob/living/M = A
		if(M.stat == DEAD)
			to_chat(user, "<span class='warning'>[src] will not work on the dead!</span>")
			return TRUE //returning TRUE preemptively ends the attack chain and thus doesn't call afterattack, this is noteworthy for below as well
		//inform the target that they're about to have a regenerative extract used on them
		if(M != user)
			M.visible_message("<span class='notice'>[user] readies [src], holding it steady near [M] and guiding it to the center of [M.p_their()] mass...</span>",
				"<span class='notice'>[user] readies [src], holding it steady near you and guiding it to the center of your mass...</span>")
		else
			M.visible_message("<span class='notice'>[user] readies [src], holding it steady near [user.p_them()]self and guiding it to the center of [user.p_their()] mass...</span>",
				"<span class='notice'>You ready [src], holding it steady near you and guiding it to the center of your mass...</span>")
		if(!do_after(user, 50, target = M)) //5 seconds
			return TRUE
		. = ..()
	else
		. = ..()

{'fraction_non_alphanumeric': 0.13110020213687554, 'fraction_numerical': 0.0017326017903551833, 'mean_word_length': 4.437990580847724, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '3401707', 'n_tokens_mistral': 1174, 'n_tokens_neox': 1086, 'n_words': 370}