Rechargers no longer flash the charged animation before charging
This commit is contained in:
Regular → Executable
+5
-2
@@ -61,7 +61,7 @@
|
|||||||
G.loc = src
|
G.loc = src
|
||||||
charging = G
|
charging = G
|
||||||
use_power = 2
|
use_power = 2
|
||||||
update_icon()
|
update_icon(scan = TRUE)
|
||||||
else
|
else
|
||||||
to_chat(user, "<span class='notice'>[src] isn't connected to anything!</span>")
|
to_chat(user, "<span class='notice'>[src] isn't connected to anything!</span>")
|
||||||
return 1
|
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)
|
if(stat & (NOPOWER|BROKEN) || !anchored)
|
||||||
icon_state = "rechargeroff"
|
icon_state = "rechargeroff"
|
||||||
return
|
return
|
||||||
|
if(scan)
|
||||||
|
icon_state = "rechargeroff"
|
||||||
|
return
|
||||||
if(panel_open)
|
if(panel_open)
|
||||||
icon_state = "rechargeropen"
|
icon_state = "rechargeropen"
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user