[MIRROR] APC and SSmachines hotfixes [NO GBP] (#28930)

* APC and SSmachines hotfixes [NO GBP]

* Update apc_main.dm

* Update apc_main.dm

* Update apc_main.dm

* Update machines.dm

---------

Co-authored-by: Andrew <mt.forspam@gmail.com>
Co-authored-by: SpaceLoveSs13 <68121607+SpaceLoveSs13@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-07-20 18:08:22 +02:00
committed by GitHub
parent e95fcec1fc
commit c4ebe3da2a
7 changed files with 79 additions and 29 deletions
+3 -1
View File
@@ -60,6 +60,8 @@
/obj/machinery/power/emitter/Initialize(mapload)
. = ..()
//Add to the early process queue to prioritize power draw
SSmachines.processing_early += src
RefreshParts()
set_wires(new /datum/wires/emitter(src))
if(welded)
@@ -187,7 +189,7 @@
togglelock(user)
return SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN
/obj/machinery/power/emitter/process(seconds_per_tick)
/obj/machinery/power/emitter/process_early(seconds_per_tick)
var/power_usage = active_power_usage * seconds_per_tick
if(machine_stat & (BROKEN))
return