Machinery performance tweaks (#1744)

changes:

Machines' process() has been separated from auto_use_power().
Lights no longer process() and instead use auto_use_power() for power calculations.
Computers that didn't really need to process() no longer process().
Airlocks now use the scheduler to auto-close instead of process()ing.
Fixed a bug where clicking on an AI Status display to set its status did not work.
This commit is contained in:
Lohikar
2017-02-15 14:07:47 -06:00
committed by skull132
parent aba694af6c
commit a50d0a8390
21 changed files with 146 additions and 100 deletions

View File

@@ -78,8 +78,7 @@
ui.open()
/obj/machinery/computer/centrifuge/process()
..()
if (stat & (NOPOWER|BROKEN)) return
if (inoperable()) return
if (curing)
curing -= 1

View File

@@ -66,9 +66,7 @@
return
/obj/machinery/computer/curer/process()
..()
if(stat & (NOPOWER|BROKEN))
if (inoperable())
return
use_power(500)

View File

@@ -86,7 +86,7 @@
ui.open()
/obj/machinery/computer/diseasesplicer/process()
if(stat & (NOPOWER|BROKEN))
if (inoperable())
return
if(scanning)