Processing subsystems improvements (#18961)

Refactored the use of the isprocessing var into the datum flag
DF_ISPROCESSING.
Updated SSprocessing and SSmachinery to have a constant fire rate.
Updated gas cooler to be time-constant thanks to the above.
This commit is contained in:
Fluffy
2024-04-20 20:16:08 +02:00
committed by GitHub
parent edd0376490
commit 1f759338d8
15 changed files with 130 additions and 77 deletions
+2 -2
View File
@@ -1118,12 +1118,12 @@ var/list/total_extraction_beacons = list()
return
/obj/item/oremagnet/proc/toggle_on(mob/user)
if(!isprocessing)
if(!(datum_flags & DF_ISPROCESSING))
START_PROCESSING(SSprocessing, src)
else
STOP_PROCESSING(SSprocessing, src)
if(user)
to_chat(user, "<span class='[isprocessing ? "notice" : "warning"]'>You switch [isprocessing ? "on" : "off"] [src].</span>")
to_chat(user, "<span class='[(datum_flags & DF_ISPROCESSING) ? "notice" : "warning"]'>You switch [(datum_flags & DF_ISPROCESSING) ? "on" : "off"] [src].</span>")
/obj/item/oremagnet/Destroy()
STOP_PROCESSING(SSprocessing, src)