mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
* Fixing some bugs. Security belts can hold holobadges. Not really a bug, but sood listed it under the bug fix milestone so whatever. Fixes #10844 Borer eggs don't break if nobody was found anymore. Fixes #10696 Can't leave the derelict as MoMMI in a locker through a teleporter anymore. Fixes #10049 Airlocks without power don't blink the access denied animation and sound. Fixes #9484 Fixes goonchat gaining focus when clicking on links. Fixes #9112 Cloning console sprite correctly updates when losing power now. Fixes #9015 Pathogenic incubator caps at 100% growth. Note that it still consumes virus food. Fixes #7402 Protolathe reagents are gone, not like it had any designs that took reagents anyways. Fixes #8365 Cryo tubes don't break ventcrawling anymore, and correctly have an internal atmosphere so a raging plasmafire can be avoided inside them. Fixes #6257 Fixes #11689 * More fixes and some cleanup. You can no longer use the bluespace tunneler to get to Central Command, fixes #11836 Setting frequency on a digital valve no longer makes it impossible to unwrench the valve. Forever. Fixes #11837 Holomaps don't appear above everything anymore, back to how it was before waffle pipes. Fixes #11830 * Forgot the changelog. * Fixing vents and scrubbers, fixes #11838 * Teleports cleanup
72 lines
1.7 KiB
Plaintext
72 lines
1.7 KiB
Plaintext
/*
|
|
Protolathe
|
|
|
|
Similar to an autolathe, you load glass and metal sheets (but not other objects) into it to be used as raw materials for the stuff
|
|
it creates. All the menus and other manipulation commands are in the R&D console.
|
|
*/
|
|
|
|
#define PROTOLATHE_BUILD_TIME 1
|
|
|
|
/obj/machinery/r_n_d/fabricator/protolathe
|
|
name = "Protolathe"
|
|
icon_state = "protolathe"
|
|
desc = "A fabricator capable of producing prototypes from research schematics."
|
|
flags = OPENCONTAINER
|
|
|
|
start_end_anims = 1
|
|
|
|
build_time = PROTOLATHE_BUILD_TIME
|
|
build_number = 2
|
|
|
|
light_color = LIGHT_COLOR_CYAN
|
|
|
|
research_flags = CONSOLECONTROL | HASOUTPUT | TAKESMATIN | HASMAT_OVER | LOCKBOXES
|
|
|
|
part_sets = list(
|
|
"Stock Parts" = list(),
|
|
"Bluespace" = list(),
|
|
"Anomaly" = list(),
|
|
"Data" = list(),
|
|
"Engineering" = list(),
|
|
"Medical" = list(),
|
|
"Mining" = list(),
|
|
"Robotics" = list(),
|
|
"Weapons" = list(),
|
|
"Armor" = list(),
|
|
"Misc" = list(),
|
|
)
|
|
|
|
/obj/machinery/r_n_d/fabricator/protolathe/power_change()
|
|
..()
|
|
if(!(stat & (BROKEN|NOPOWER)))
|
|
set_light(2)
|
|
else
|
|
set_light(0)
|
|
|
|
/obj/machinery/r_n_d/fabricator/protolathe/New()
|
|
. = ..()
|
|
|
|
component_parts = newlist(
|
|
/obj/item/weapon/circuitboard/protolathe,
|
|
/obj/item/weapon/stock_parts/matter_bin,
|
|
/obj/item/weapon/stock_parts/matter_bin,
|
|
/obj/item/weapon/stock_parts/manipulator,
|
|
/obj/item/weapon/stock_parts/manipulator,
|
|
)
|
|
|
|
RefreshParts()
|
|
|
|
/obj/machinery/r_n_d/fabricator/protolathe/Destroy()
|
|
if(linked_console && linked_console.linked_lathe == src)
|
|
linked_console.linked_lathe = null
|
|
|
|
. = ..()
|
|
|
|
/obj/machinery/r_n_d/fabricator/protolathe/setup_part_sets()
|
|
return
|
|
|
|
/obj/machinery/r_n_d/fabricator/protolathe/attackby(var/obj/item/O as obj, var/mob/user as mob)
|
|
..()
|
|
if (O.is_open_container())
|
|
return 1
|