mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Update recharger.dm (#17919)
This commit is contained in:
@@ -126,7 +126,7 @@
|
||||
if(stat & (NOPOWER|BROKEN) || !anchored)
|
||||
return PROCESS_KILL
|
||||
|
||||
if(charging)
|
||||
if(charging && charging.loc == src)
|
||||
var/obj/item/stock_parts/cell/C = charging.get_cell()
|
||||
if(C)
|
||||
if(C.charge < C.maxcharge)
|
||||
@@ -153,6 +153,10 @@
|
||||
update_icon()
|
||||
return
|
||||
else
|
||||
if(charging)
|
||||
charging.update_icon()
|
||||
charging.forceMove(drop_location())
|
||||
setCharging(null)
|
||||
return PROCESS_KILL
|
||||
|
||||
/obj/machinery/recharger/emp_act(severity)
|
||||
|
||||
Reference in New Issue
Block a user