mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
Cloning no longer stops the heart
Also fixes a runtime regarding emptying an EMP'd clone pod
This commit is contained in:
@@ -327,6 +327,10 @@ var/list/organ_cache = list()
|
||||
/obj/item/organ/proc/replaced(var/mob/living/carbon/human/target)
|
||||
return // Nothing uses this, it is always overridden
|
||||
|
||||
// A version of `replaced` that "flattens" the process of insertion, making organs "Plug'n'play"
|
||||
// (Particularly the heart, which stops beating when removed)
|
||||
/obj/item/organ/proc/safe_replace(var/mob/living/carbon/human/target)
|
||||
replaced(target)
|
||||
|
||||
/obj/item/organ/proc/surgeryize()
|
||||
return
|
||||
@@ -370,4 +374,4 @@ I use this so that this can be made better once the organ overhaul rolls out --
|
||||
// The only thing the official proc does is
|
||||
//instantiate the list and call this proc
|
||||
dna.deserialize(data["dna"])
|
||||
..()
|
||||
..()
|
||||
|
||||
@@ -170,6 +170,10 @@
|
||||
if(!owner)
|
||||
Stop()
|
||||
|
||||
/obj/item/organ/internal/heart/safe_replace(mob/living/carbon/human/target)
|
||||
Restart()
|
||||
..()
|
||||
|
||||
/obj/item/organ/internal/heart/proc/Stop()
|
||||
beating = 0
|
||||
update_icon()
|
||||
|
||||
Reference in New Issue
Block a user