From bd6e957690e68eeb5cfc4386283199be638bd0ea Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Fri, 30 Dec 2022 02:59:09 +0100 Subject: [PATCH] [MIRROR] Admin Subtype of Integrated Circuits [MDB IGNORE] (#18396) * Admin Subtype of Integrated Circuits (#72303) ## About The Pull Request Simply adds an admin only subtype of the integrated circuit because I spawn a lot and this'll save me 30 or so seconds each time I do. ## Why It's Good For The Game When creating a new admin circuit from scratch being able to skip VVing it to change the admin_only var would save a bit of time. ## Changelog :cl: admin: Integrated Circuits now have an admin only subtype, functionally the same as VVed regular circuits. /:cl: * Admin Subtype of Integrated Circuits Co-authored-by: NamelessFairy <40036527+NamelessFairy@users.noreply.github.com> --- code/modules/wiremod/core/integrated_circuit.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/wiremod/core/integrated_circuit.dm b/code/modules/wiremod/core/integrated_circuit.dm index 9d4a42e5ff6..6abd1985899 100644 --- a/code/modules/wiremod/core/integrated_circuit.dm +++ b/code/modules/wiremod/core/integrated_circuit.dm @@ -730,3 +730,9 @@ GLOBAL_LIST_EMPTY_TYPED(integrated_circuits, /obj/item/integrated_circuit) WRITE_FILE(temp_file, convert_to_json()) DIRECT_OUTPUT(saver, ftp(temp_file, "[display_name || "circuit"].json")) return TRUE + +/obj/item/integrated_circuit/admin + name = "administrative circuit" + desc = "The components installed in here are far beyond your comprehension." + + admin_only = TRUE