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)
+7 -7
View File
@@ -99,15 +99,9 @@
. += ..()
. += SPAN_NOTICE("\The condenser switch is set to <b>[refill_enabled ? "ON" : "OFF"]</b>.")
/obj/item/mop/advanced/Initialize()
. = ..()
START_PROCESSING(SSprocessing, src)
/obj/item/mop/advanced/Destroy()
STOP_PROCESSING(SSprocessing, src)
. = ..()
return ..()
/obj/item/mop/advanced/attack_self(mob/user)
refill_enabled = !refill_enabled
@@ -121,3 +115,9 @@
/obj/item/mop/advanced/process()
if(reagents.total_volume < 30)
reagents.add_reagent(refill_reagent, refill_rate)
else STOP_PROCESSING(SSprocessing, src)
/obj/item/mop/advanced/afterattack(atom/A, mob/user, proximity)
. = ..()
if (reagents.total_volume < 30)
START_PROCESSING(SSprocessing, src)