[MIRROR] Adds boards for the book binder and scanner (#28371)

* Adds boards for the book binder and scanner (#83863)

## About The Pull Request
Adds boards for the book binder and scanner. The scanner requires one
scanning module while the binder requires one servo to make. Research
for the board was added to the computer tech research node as that's
where the other book related research was. Boards are available to print
at the service techfab.

![libraryboards](https://github.com/tgstation/tgstation/assets/126099705/ce6f4174-9939-4020-a7d4-c0c6593479f3)

## Why It's Good For The Game
Being able to (re)make the library is good. Irreparable machine is bad.
Writing down your work and being unable to scan it into the archive is
not good. Also allows the machine to be moved if needed.

* Adds boards for the book binder and scanner

---------

Co-authored-by: Goat <126099705+Goat-Real@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-06-25 16:22:32 +05:30
committed by GitHub
co-authored by Goat
parent b775ad8ffb
commit 55dfa4dee2
5 changed files with 58 additions and 3 deletions
@@ -733,6 +733,22 @@
/datum/stock_part/micro_laser = 1,
/datum/stock_part/servo = 1,)
/obj/item/circuitboard/machine/bookbinder
name = "Book Binder"
greyscale_colors = CIRCUIT_COLOR_GENERIC
build_path = /obj/machinery/bookbinder
req_components = list(
/datum/stock_part/servo = 1,
)
/obj/item/circuitboard/machine/libraryscanner
name = "Book Scanner"
greyscale_colors = CIRCUIT_COLOR_GENERIC
build_path = /obj/machinery/libraryscanner
req_components = list(
/datum/stock_part/scanning_module = 1,
)
//Medical
/obj/item/circuitboard/machine/chem_dispenser
+20 -3
View File
@@ -688,11 +688,22 @@ GLOBAL_VAR_INIT(library_table_modified, 0)
icon = 'icons/obj/service/library.dmi'
icon_state = "bigscanner"
desc = "It's an industrial strength book scanner. Perfect!"
circuit = /obj/item/circuitboard/machine/libraryscanner
density = TRUE
var/obj/item/book/held_book
///Our scanned-in book
var/datum/book_info/cache
/obj/machinery/libraryscanner/screwdriver_act(mob/living/user, obj/item/tool)
. = ..()
if(default_deconstruction_screwdriver(user, "bigscanner2", "bigscanner", tool))
return ITEM_INTERACT_SUCCESS
/obj/machinery/libraryscanner/crowbar_act(mob/living/user, obj/item/tool)
. = ..()
if(default_deconstruction_crowbar(tool))
return ITEM_INTERACT_SUCCESS
/obj/machinery/libraryscanner/Destroy()
held_book = null
cache = null
@@ -760,6 +771,7 @@ GLOBAL_VAR_INIT(library_table_modified, 0)
icon = 'icons/obj/service/library.dmi'
icon_state = "binder"
desc = "Only intended for binding paper products."
circuit = /obj/item/circuitboard/machine/bookbinder
density = TRUE
/// Are we currently binding a book?
@@ -768,10 +780,15 @@ GLOBAL_VAR_INIT(library_table_modified, 0)
/// Name of the author for the book, set by scanning your ID.
var/scanned_name
/obj/machinery/bookbinder/wrench_act(mob/living/user, obj/item/tool)
/obj/machinery/bookbinder/screwdriver_act(mob/living/user, obj/item/tool)
. = ..()
default_unfasten_wrench(user, tool)
return ITEM_INTERACT_SUCCESS
if(default_deconstruction_screwdriver(user, "binder2", "binder", tool))
return ITEM_INTERACT_SUCCESS
/obj/machinery/bookbinder/crowbar_act(mob/living/user, obj/item/tool)
. = ..()
if(default_deconstruction_crowbar(tool))
return ITEM_INTERACT_SUCCESS
/obj/machinery/bookbinder/attackby(obj/hitby, mob/user, params)
if(istype(hitby, /obj/item/paper))
@@ -1177,3 +1177,23 @@
RND_CATEGORY_MACHINE + RND_SUBCATEGORY_MACHINE_ENGINEERING
)
departmental_flags = DEPARTMENT_BITFLAG_SCIENCE | DEPARTMENT_BITFLAG_ENGINEERING
/datum/design/board/bookbinder
name = "Book Binder"
desc = "The circuit board for a book binder"
id = "bookbinder"
build_path = /obj/item/circuitboard/machine/bookbinder
category = list(
RND_CATEGORY_MACHINE + RND_SUBCATEGORY_MACHINE_SERVICE
)
departmental_flags = DEPARTMENT_BITFLAG_SERVICE
/datum/design/board/libraryscanner
name = "Book Scanner"
desc = "The circuit board for a book scanner"
id = "libraryscanner"
build_path = /obj/item/circuitboard/machine/libraryscanner
category = list(
RND_CATEGORY_MACHINE + RND_SUBCATEGORY_MACHINE_SERVICE
)
departmental_flags = DEPARTMENT_BITFLAG_SERVICE
@@ -82,6 +82,8 @@
"idcard",
"c-reader",
"libraryconsole",
"libraryscanner",
"bookbinder",
"barcode_scanner",
"vendor",
"custom_vendor_refill",
Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 23 KiB