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