mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 02:57:48 +01:00
Tweak rechargers icon handling so they don't update every process (#18838)
* process why * The panel and charging states preclude the wrench and thus don't need update_icon
This commit is contained in:
@@ -130,9 +130,13 @@
|
||||
/obj/machinery/recharger/process()
|
||||
if(stat & (NOPOWER|BROKEN) || !anchored || panel_open)
|
||||
return
|
||||
if(!charging)
|
||||
return
|
||||
|
||||
var/old_power_state = using_power
|
||||
using_power = try_recharging_if_possible()
|
||||
update_icon()
|
||||
if(using_power != old_power_state)
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/recharger/emp_act(severity)
|
||||
if(stat & (NOPOWER|BROKEN) || !anchored)
|
||||
|
||||
Reference in New Issue
Block a user