- Creates a global list of items which have pwr_drain() called every powernet tick
- Makes powersink use this list
- Adds scheck
This commit is contained in:
Atlantiscze
2015-05-12 07:49:31 +02:00
parent 37c16ff6e2
commit 51043bc84a
4 changed files with 19 additions and 7 deletions

View File

@@ -22,8 +22,11 @@
powernets.Remove(powerNetwork)
for(var/obj/item/device/powersink/S in processing_objects)
S.drain()
// Currently only used by powersinks. These items get priority processed before machinery
for(var/obj/item/I in processing_power_items)
if(!I.pwr_drain()) // 0 = Process Kill, remove from processing list.
processing_power_items.Remove(I)
scheck()
for(var/obj/machinery/M in machines)
if(M && !M.gcDestroyed)