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
+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)