mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
[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.  ## 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:
@@ -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
|
||||
|
||||
@@ -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 |
Reference in New Issue
Block a user