From f0ca907bfd1b882d6bb4fadc7ec4b896e10425df Mon Sep 17 00:00:00 2001 From: Lucy Date: Mon, 26 May 2025 08:59:07 -0400 Subject: [PATCH] heretic sacrifices no longer spawn and then delete a human just to spawn gib effects (#91294) ## About The Pull Request this makes it so heretic sacrificing actually uses the sac target as the reference for the `/obj/effect/gibspawner/human/bodypartless`, instead of spawning a human, calling `get_blood_dna_list()` on it, then immediately deleting said human. ## Why It's Good For The Game this was a waste of performance without a shadow of a doubt. ## Changelog no player-facing changes. --- .../knowledge/sacrifice_knowledge/sacrifice_knowledge.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/antagonists/heretic/knowledge/sacrifice_knowledge/sacrifice_knowledge.dm b/code/modules/antagonists/heretic/knowledge/sacrifice_knowledge/sacrifice_knowledge.dm index 657bed68399..9e9cc36c948 100644 --- a/code/modules/antagonists/heretic/knowledge/sacrifice_knowledge/sacrifice_knowledge.dm +++ b/code/modules/antagonists/heretic/knowledge/sacrifice_knowledge/sacrifice_knowledge.dm @@ -426,7 +426,7 @@ var/obj/item/organ/to_give = new organ_path to_give.Insert(sac_target) - new /obj/effect/gibspawner/human/bodypartless(get_turf(sac_target)) + new /obj/effect/gibspawner/human/bodypartless(get_turf(sac_target), sac_target) sac_target.visible_message(span_boldwarning("Several organs force themselves out of [sac_target]!")) /** @@ -632,7 +632,7 @@ span_userdanger("Your organs are violently pulled out of your chest by shadowy hands!") ) - new /obj/effect/gibspawner/human/bodypartless(get_turf(sac_target)) + new /obj/effect/gibspawner/human/bodypartless(get_turf(sac_target), sac_target) #undef SACRIFICE_SLEEP_DURATION #undef SACRIFICE_REALM_DURATION