mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-20 12:29:23 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user