From 5499d73ac827cd3e714f2589106909648ffd281a Mon Sep 17 00:00:00 2001 From: Dameon Owen Date: Wed, 4 Oct 2023 23:54:44 -0400 Subject: [PATCH] Nothing like testing in prod! --- code/datums/soullink.dm | 15 --------------- code/modules/mob/living/living.dm | 10 ++++++++++ 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/code/datums/soullink.dm b/code/datums/soullink.dm index de73a8e74c6..4dd5101c41a 100644 --- a/code/datums/soullink.dm +++ b/code/datums/soullink.dm @@ -4,21 +4,6 @@ var/list/ownedSoullinks //soullinks we are the owner of var/list/sharedSoullinks //soullinks we are a/the sharer of -/mob/living/Destroy() - for(var/s in ownedSoullinks) - var/datum/soullink/S = s - S.ownerDies(FALSE) - qdel(s) //If the owner is destroy()'d, the soullink is destroy()'d - ownedSoullinks = null - for(var/s in sharedSoullinks) - var/datum/soullink/S = s - S.sharerDies(FALSE) - S.removeSoulsharer(src) //If a sharer is destroy()'d, they are simply removed - sharedSoullinks = null - return ..() - - - //Keeps track of a Mob->Mob (potentially Player->Player) connection //Can be used to trigger actions on one party when events happen to another //Eg: shared deaths diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index f6269b1092d..daab0b25b05 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -28,6 +28,16 @@ med_hud_set_status() /mob/living/Destroy() + for(var/s in ownedSoullinks) + var/datum/soullink/S = s + S.ownerDies(FALSE) + qdel(s) //If the owner is destroy()'d, the soullink is destroy()'d + ownedSoullinks = null + for(var/s in sharedSoullinks) + var/datum/soullink/S = s + S.sharerDies(FALSE) + S.removeSoulsharer(src) //If a sharer is destroy()'d, they are simply removed + sharedSoullinks = null if(mind) mind.RemoveAllSpells() end_parry_sequence()