Processing Audit Part 1 (#22803)

Oh look at that, every modular computer in existence was always
processing at all times, regardless of if it was actually needed.
There's a couple more small examples I caught in my first pass, but all
of the rest are very low incidence. There are of course a very large
number of modular computers at any one point in time.
This commit is contained in:
VMSolidus
2026-07-09 21:03:42 +00:00
committed by GitHub
parent 25d8b2e6ae
commit 30fb0f69a0
7 changed files with 22 additions and 29 deletions
@@ -26,6 +26,7 @@
if(wearer.can_feel_pain())
to_chat(H, SPAN_DANGER("You feel a stabbing sensation in your hands as you slide \the [src] on!"))
wearer.custom_pain("You feel a sharp pain in your hands!",1)
START_PROCESSING(SSprocessing, src)
..()
/obj/item/clothing/gloves/regen/dropped(mob/user)
@@ -37,7 +38,6 @@
wearer = null
/obj/item/clothing/gloves/regen/New()
START_PROCESSING(SSprocessing, src)
..()
/obj/item/clothing/gloves/regen/Destroy()
@@ -47,7 +47,7 @@
/obj/item/clothing/gloves/regen/process()
if(!wearer || wearer.isSynthetic() || wearer.stat == DEAD || wearer.nutrition <= 10)
return // Robots and dead people don't have a metabolism.
return PROCESS_KILL // Robots and dead people don't have a metabolism.
if(wearer.getBruteLoss())
wearer.adjustBruteLoss(-0.1)