Allows robot organs to die (#22739)

Fixes robot organs continuing to process after death.

Stops this:
<img width="790" height="331" alt="image"
src="https://github.com/user-attachments/assets/5f8db817-0a8d-4263-90f4-74a18da78d9a"
/>
This commit is contained in:
FenodyreeAv
2026-06-22 14:52:28 +01:00
committed by GitHub
parent 246ddc9730
commit 012a05ff79
3 changed files with 8 additions and 0 deletions
+2
View File
@@ -128,6 +128,8 @@ INITIALIZE_IMMEDIATE(/obj/item/organ)
/obj/item/organ/proc/die()
if(status & ORGAN_ROBOT)
damage = max_damage
STOP_PROCESSING(SSprocessing, src)
return
damage = max_damage
status |= ORGAN_DEAD
+1
View File
@@ -156,6 +156,7 @@
user.visible_message("<b>[user]</b> repairs [target]'s [I.name] with [tool].", \
SPAN_NOTICE("You repair [target]'s [I.name] with [tool].") )
I.surgical_fix(user)
START_PROCESSING(SSprocessing, I)
if(istype(tool, /obj/item/stack/nanopaste))
var/obj/item/stack/nanopaste/nanopaste = tool
nanopaste.use(1)