mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 09:05:11 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user