Del The World: Unit testing for hard deletes (#59612)

Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
LemonInTheDark
2021-08-15 21:09:26 -07:00
committed by GitHub
co-authored by SteelSlayer
parent 0304206af3
commit cd576ab519
91 changed files with 788 additions and 168 deletions
@@ -89,6 +89,9 @@
/obj/item/phylactery/Initialize(mapload, datum/mind/newmind)
. = ..()
if(!mind)
stack_trace("A phylactery was created with no target mind")
return INITIALIZE_HINT_QDEL
mind = newmind
name = "phylactery of [mind.name]"
@@ -145,7 +145,8 @@
source = _source
shape = loc
if(!istype(shape))
CRASH("shapeshift holder created outside mob/living")
stack_trace("shapeshift holder created outside mob/living")
return INITIALIZE_HINT_QDEL
stored = caster
if(stored.mind)
stored.mind.transfer_to(shape)
@@ -12,7 +12,7 @@
if(action?.owner)
var/mob/guy_who_needs_to_know = action.owner
to_chat(guy_who_needs_to_know, span_notice("The power of the spell dissipates from your hand."))
..()
return ..()
/obj/effect/proc_holder/spell/targeted/touch/proc/remove_hand(recharge = FALSE)
QDEL_NULL(attached_hand)