Make chargers reflect cell charge from roundstart. (#32468)

* Make chargers reflect cell charge from roundstart.

* Fix CI reference.
This commit is contained in:
Alan
2026-08-23 14:20:14 +00:00
committed by GitHub
parent 9fecdb1a17
commit 581ef727a1
5 changed files with 49 additions and 48 deletions
+2
View File
@@ -37,6 +37,8 @@
// State of charge is in kJ so we multiply it by 1000 to get Joules
desc += SPAN_NOTICE("It can store [DisplayJoules(maxcharge * 1000)]. Doctors recommend that you do not swallow it.")
update_icon(UPDATE_OVERLAYS)
if(istype(loc, /obj/machinery/cell_charger))
loc.update_icon(UPDATE_OVERLAYS)
/obj/item/stock_parts/cell/Destroy()
STOP_PROCESSING(SSobj, src)