Fixes assembly shells not using power from the wire/button they are attached to. (#91384)

## About The Pull Request

How did I miss how `COMSIG_SHELL_ATTACH_CIRCUIT` was handled?

## Why It's Good For The Game

Makes a circuit shell actually do what I claim it does.

Fixes #90786

## Changelog

🆑
fix: Fixes assembly shells not taking power from machines/mechs/borgs
instead of needing a cell when attached to such things. Did you know
this was supposed to be a feature, but didn't work for
who-knows-how-long?
/🆑
This commit is contained in:
Y0SH1M4S73R
2025-06-01 00:42:15 +00:00
committed by GitHub
parent dc306dc6f4
commit 73828ecff5
+2 -2
View File
@@ -27,9 +27,9 @@
RegisterSignals(src, list(COMSIG_ASSEMBLY_ATTACHED, COMSIG_ASSEMBLY_ADDED_TO_BUTTON, COMSIG_ASSEMBLY_ADDED_TO_PRESSURE_PLATE), PROC_REF(on_attached))
RegisterSignals(src, list(COMSIG_ASSEMBLY_DETACHED, COMSIG_ASSEMBLY_REMOVED_FROM_BUTTON, COMSIG_ASSEMBLY_REMOVED_FROM_PRESSURE_PLATE), PROC_REF(on_detached))
/obj/item/assembly/wiremod/proc/on_circuit_attached(source, obj/item/integrated_circuit/circuit)
/obj/item/assembly/wiremod/proc/on_circuit_attached(datum/component/shell/source)
SIGNAL_HANDLER
RegisterSignal(circuit, COMSIG_CIRCUIT_PRE_POWER_USAGE, PROC_REF(override_circuit_power_usage))
RegisterSignal(source.attached_circuit, COMSIG_CIRCUIT_PRE_POWER_USAGE, PROC_REF(override_circuit_power_usage))
/obj/item/assembly/wiremod/proc/on_circuit_removed(datum/component/shell/source)
SIGNAL_HANDLER