Rechargers no longer flash the charged animation before charging

This commit is contained in:
CitadelStationBot
2017-04-28 20:53:17 -05:00
parent a39b40d879
commit 49c81c8a1d

7
code/game/machinery/recharger.dm Normal file → Executable file
View File

@@ -61,7 +61,7 @@
G.loc = src
charging = G
use_power = 2
update_icon()
update_icon(scan = TRUE)
else
to_chat(user, "<span class='notice'>[src] isn't connected to anything!</span>")
return 1
@@ -162,10 +162,13 @@
..()
/obj/machinery/recharger/update_icon(using_power = 0) //we have an update_icon() in addition to the stuff in process to make it feel a tiny bit snappier.
/obj/machinery/recharger/update_icon(using_power = 0, scan) //we have an update_icon() in addition to the stuff in process to make it feel a tiny bit snappier.
if(stat & (NOPOWER|BROKEN) || !anchored)
icon_state = "rechargeroff"
return
if(scan)
icon_state = "rechargeroff"
return
if(panel_open)
icon_state = "rechargeropen"
return