From e489e77a7bd4fc43ab1f95e6b56db9b94875ba00 Mon Sep 17 00:00:00 2001 From: FenodyreeAv Date: Sun, 16 Aug 2026 16:13:08 +0000 Subject: [PATCH] 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. --- code/game/objects/items/weapons/power_cells.dm | 5 +++++ code/modules/integrated_electronics/core/assemblies.dm | 2 ++ html/changelogs/FenodyreeCircuitQOL.yml | 7 +++++++ 3 files changed, 14 insertions(+) create mode 100644 html/changelogs/FenodyreeCircuitQOL.yml diff --git a/code/game/objects/items/weapons/power_cells.dm b/code/game/objects/items/weapons/power_cells.dm index cb8f8624e98..e18a11ebc56 100644 --- a/code/game/objects/items/weapons/power_cells.dm +++ b/code/game/objects/items/weapons/power_cells.dm @@ -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." diff --git a/code/modules/integrated_electronics/core/assemblies.dm b/code/modules/integrated_electronics/core/assemblies.dm index d8ab0538dd0..0f1b69dd869 100644 --- a/code/modules/integrated_electronics/core/assemblies.dm +++ b/code/modules/integrated_electronics/core/assemblies.dm @@ -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. diff --git a/html/changelogs/FenodyreeCircuitQOL.yml b/html/changelogs/FenodyreeCircuitQOL.yml new file mode 100644 index 00000000000..2f571e66980 --- /dev/null +++ b/html/changelogs/FenodyreeCircuitQOL.yml @@ -0,0 +1,7 @@ +author: Fenodyree + + +delete-after: True + +changes: + - qol: "Cloned circuit assemblies now spawn with uncharged batteries."