mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-28 18:41:37 +00:00
* Removes Destroy overrides from most circuit components (#60492) Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com> * Removes Destroy overrides from most circuit components Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com>
22 lines
553 B
Plaintext
22 lines
553 B
Plaintext
/**
|
|
* # Self Component
|
|
*
|
|
* Return the current shell.
|
|
*/
|
|
/obj/item/circuit_component/self
|
|
display_name = "Self"
|
|
display_desc = "A component that returns the current shell."
|
|
|
|
/// The shell this component is attached to.
|
|
var/datum/port/output/output
|
|
|
|
/obj/item/circuit_component/self/Initialize()
|
|
. = ..()
|
|
output = add_output_port("Self", PORT_TYPE_ATOM)
|
|
|
|
/obj/item/circuit_component/self/register_shell(atom/movable/shell)
|
|
output.set_output(shell)
|
|
|
|
/obj/item/circuit_component/self/unregister_shell(atom/movable/shell)
|
|
output.set_output(null)
|