From 0f8f79af644423a239686d7547fdd46e05c7aff4 Mon Sep 17 00:00:00 2001 From: Kmc2000 Date: Sun, 29 Jul 2018 00:54:45 +0100 Subject: [PATCH 1/2] morrow wolf forced me to do this at gunpoint --- yogstation.dme | 1 + .../research/departmental_protolathe.dm | 44 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 yogstation/code/modules/research/departmental_protolathe.dm diff --git a/yogstation.dme b/yogstation.dme index 792b1f8e7b30..30c7105158c4 100644 --- a/yogstation.dme +++ b/yogstation.dme @@ -2723,6 +2723,7 @@ #include "yogstation\code\modules\power\lighting.dm" #include "yogstation\code\modules\power\validhunter.dm" #include "yogstation\code\modules\reagents\reagent_containers\hypospray.dm" +#include "yogstation\code\modules\research\departmental_protolathe.dm" #include "yogstation\code\modules\research\rdconsole.dm" #include "yogstation\code\modules\spells\spells.dm" #include "yogstation\code\modules\spells\spell_types\mime.dm" diff --git a/yogstation/code/modules/research/departmental_protolathe.dm b/yogstation/code/modules/research/departmental_protolathe.dm new file mode 100644 index 000000000000..6f20410582dc --- /dev/null +++ b/yogstation/code/modules/research/departmental_protolathe.dm @@ -0,0 +1,44 @@ +/obj/machinery/rnd/production/protolathe/department + name = "department protolathe" + desc = "A special protolathe with a built in interface meant for departmental usage, with built in ExoSync receivers allowing it to print designs researched that match its ROM-encoded department type." + icon_state = "protolathe" + container_type = OPENCONTAINER + circuit = /obj/item/circuitboard/machine/protolathe/department + requires_console = FALSE + consoleless_interface = TRUE + +/obj/machinery/rnd/production/protolathe/department/engineering + name = "department protolathe (Engineering)" + allowed_department_flags = DEPARTMENTAL_FLAG_ENGINEERING + department_tag = "Engineering" + circuit = /obj/item/circuitboard/machine/protolathe/department/engineering + +/obj/machinery/rnd/production/protolathe/department/service + name = "department protolathe (Service)" + allowed_department_flags = DEPARTMENTAL_FLAG_SERVICE + department_tag = "Service" + circuit = /obj/item/circuitboard/machine/protolathe/department/service + +/obj/machinery/rnd/production/protolathe/department/medical + name = "department protolathe (Medical)" + allowed_department_flags = DEPARTMENTAL_FLAG_MEDICAL + department_tag = "Medical" + circuit = /obj/item/circuitboard/machine/protolathe/department/medical + +/obj/machinery/rnd/production/protolathe/department/cargo + name = "department protolathe (Cargo)" + allowed_department_flags = DEPARTMENTAL_FLAG_CARGO + department_tag = "Cargo" + circuit = /obj/item/circuitboard/machine/protolathe/department/cargo + +/obj/machinery/rnd/production/protolathe/department/science + name = "department protolathe (Science)" + allowed_department_flags = DEPARTMENTAL_FLAG_SCIENCE + department_tag = "Science" + circuit = /obj/item/circuitboard/machine/protolathe/department/science + +/obj/machinery/rnd/production/protolathe/department/security + name = "department protolathe (Security)" + allowed_department_flags = DEPARTMENTAL_FLAG_SECURITY + department_tag = "Security" + circuit = /obj/item/circuitboard/machine/protolathe/department/security \ No newline at end of file From d8f4d90c708d268f1a7577eb93da49d2f541bf55 Mon Sep 17 00:00:00 2001 From: Kmc2000 Date: Sun, 29 Jul 2018 00:58:16 +0100 Subject: [PATCH 2/2] lol i changed the wrong thing --- .../research/departmental_protolathe.dm | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/yogstation/code/modules/research/departmental_protolathe.dm b/yogstation/code/modules/research/departmental_protolathe.dm index 6f20410582dc..0b76117e63b0 100644 --- a/yogstation/code/modules/research/departmental_protolathe.dm +++ b/yogstation/code/modules/research/departmental_protolathe.dm @@ -9,36 +9,42 @@ /obj/machinery/rnd/production/protolathe/department/engineering name = "department protolathe (Engineering)" - allowed_department_flags = DEPARTMENTAL_FLAG_ENGINEERING + allowed_department_flags = DEPARTMENTAL_FLAG_ALL|DEPARTMENTAL_FLAG_ENGINEERING department_tag = "Engineering" circuit = /obj/item/circuitboard/machine/protolathe/department/engineering + req_access = list(ACCESS_ENGINE) /obj/machinery/rnd/production/protolathe/department/service name = "department protolathe (Service)" - allowed_department_flags = DEPARTMENTAL_FLAG_SERVICE + allowed_department_flags = DEPARTMENTAL_FLAG_ALL|DEPARTMENTAL_FLAG_SERVICE department_tag = "Service" circuit = /obj/item/circuitboard/machine/protolathe/department/service + req_access = list(ACCESS_HYDROPONICS, ACCESS_JANITOR) /obj/machinery/rnd/production/protolathe/department/medical name = "department protolathe (Medical)" - allowed_department_flags = DEPARTMENTAL_FLAG_MEDICAL + allowed_department_flags = DEPARTMENTAL_FLAG_ALL|DEPARTMENTAL_FLAG_MEDICAL department_tag = "Medical" circuit = /obj/item/circuitboard/machine/protolathe/department/medical + req_access = list(ACCESS_MEDICAL) /obj/machinery/rnd/production/protolathe/department/cargo name = "department protolathe (Cargo)" - allowed_department_flags = DEPARTMENTAL_FLAG_CARGO + allowed_department_flags = DEPARTMENTAL_FLAG_ALL|DEPARTMENTAL_FLAG_CARGO department_tag = "Cargo" circuit = /obj/item/circuitboard/machine/protolathe/department/cargo + req_access = list(ACCESS_CARGO) /obj/machinery/rnd/production/protolathe/department/science name = "department protolathe (Science)" - allowed_department_flags = DEPARTMENTAL_FLAG_SCIENCE + allowed_department_flags = DEPARTMENTAL_FLAG_ALL|DEPARTMENTAL_FLAG_SCIENCE department_tag = "Science" circuit = /obj/item/circuitboard/machine/protolathe/department/science + req_access = list(ACCESS_TOX) /obj/machinery/rnd/production/protolathe/department/security name = "department protolathe (Security)" - allowed_department_flags = DEPARTMENTAL_FLAG_SECURITY + allowed_department_flags = DEPARTMENTAL_FLAG_ALL|DEPARTMENTAL_FLAG_SECURITY department_tag = "Security" - circuit = /obj/item/circuitboard/machine/protolathe/department/security \ No newline at end of file + circuit = /obj/item/circuitboard/machine/protolathe/department/security + req_access = list(ACCESS_SECURITY) \ No newline at end of file