Skip to content

Commit

Permalink
Merge pull request #3283 from ARF-SS13/try-something-crazy
Browse files Browse the repository at this point in the history
Nothing like testing in prod!
  • Loading branch information
DameonOwen authored Oct 5, 2023
2 parents a6fb2e2 + 5499d73 commit 127b383
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
15 changes: 0 additions & 15 deletions code/datums/soullink.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions code/modules/mob/living/living.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 127b383

Please sign in to comment.