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