Circuit printers print uncharged batteries (#23003)

Having to manually open closed circuits and install a battery in each
individual one was pain when cloning large volumes.

Now the circuit printer spawns the circuit with an uncharged battery.

If you want a better battery, or a charged one you still have to take it
out.
This commit is contained in:
FenodyreeAv
2026-08-16 16:13:08 +00:00
committed by GitHub
parent be17521156
commit e489e77a7b
3 changed files with 14 additions and 0 deletions
@@ -37,6 +37,11 @@
maxcharge = 250
matter = list(MATERIAL_STEEL = 70, MATERIAL_GLASS = 5)
/obj/item/cell/device/empty/Initialize()
. = ..()
charge = 0
update_icon()
/obj/item/cell/device/high
name = "advanced power cell"
desc = "A small, advanced power cell designed to power more energy demanding handheld devices."
@@ -42,6 +42,8 @@
. = ..()
if (!printed)
battery = new /obj/item/cell/device(src)
else
battery = new /obj/item/cell/device/empty(src)
START_PROCESSING(SSelectronics, src)
access_card = new /obj/item/card/id(src)
if (!matter) //Matter amounts might be set during the cloning process.
+7
View File
@@ -0,0 +1,7 @@
author: Fenodyree
delete-after: True
changes:
- qol: "Cloned circuit assemblies now spawn with uncharged batteries."