Lathe Updates (#6070)

Added some handy things to the Autolathe, with material costs for some objects.
Following items were added: cable coil, hand labeller, basic stock parts, engineering debugger, and the implanter when it's hacked.
This commit is contained in:
DrHobo2
2019-04-24 06:50:18 +01:00
committed by Erki
parent b562ac3a9a
commit a75e9c1428
11 changed files with 130 additions and 3 deletions

View File

@@ -97,6 +97,8 @@
//Build list of multipliers for sheets.
if(R.is_stack)
if(max_sheets && max_sheets > 0)
var/obj/item/stack/R_stack = R.path
max_sheets = min(max_sheets, initial(R_stack.max_amount))
multiplier_string += "<br>"
for(var/i = 5;i<max_sheets;i*=2) //5,10,20,40...
multiplier_string += "<a href='?src=\ref[src];make=[index];multiplier=[i]'>\[x[i]\]</a>"

View File

@@ -456,3 +456,50 @@
name = "miniature cell"
path = /obj/item/weapon/cell/device/emergency_light/empty
category = "Engineering"
/datum/autolathe/recipe/cable_coil
name = "cable coil"
path = /obj/item/stack/cable_coil
category = "Devices and Components"
is_stack = 1
/datum/autolathe/recipe/labeler
name = "hand labeler"
path = /obj/item/weapon/hand_labeler
category = "General"
/datum/autolathe/recipe/destTagger
name = "destination tagger"
path = /obj/item/device/destTagger
category = "General"
/datum/autolathe/recipe/debugger
name = "debugger"
path = /obj/item/device/debugger
category = "Engineering"
// Basic Stock Parts for Engineering
/datum/autolathe/recipe/micromanip
name = "micro-manipulator"
path = /obj/item/weapon/stock_parts/manipulator
category = "Devices and Components"
/datum/autolathe/recipe/matterbin
name = "matter bin"
path = /obj/item/weapon/stock_parts/matter_bin
category = "Devices and Components"
/datum/autolathe/recipe/capacitor
name = "capacitor"
path = /obj/item/weapon/stock_parts/capacitor
category = "Devices and Components"
/datum/autolathe/recipe/scanningmod
name = "scanning module"
path = /obj/item/weapon/stock_parts/scanning_module
category = "Devices and Components"
/datum/autolathe/recipe/microlaser
name = "micro-laser"
path = /obj/item/weapon/stock_parts/micro_laser
category = "Devices and Components"

View File

@@ -6,6 +6,7 @@
throw_speed = 1
throw_range = 5
w_class = 2.0
matter = list(DEFAULT_WALL_MATERIAL = 320, "glass" = 800)
var/obj/item/weapon/implant/imp = null
/obj/item/weapon/implanter/attack_self(var/mob/user)

View File

@@ -163,7 +163,7 @@
name = "tomato"
seed_name = "tomato"
display_name = "tomato plant"
mutants = list("bluetomato","bloodtomato")
mutants = list("bluetomato","bloodtomato") // no killer :(
chems = list("nutriment" = list(1,10), "tomatojuice" = list(10,10))
kitchen_tag = "tomato"

View File

@@ -11,6 +11,8 @@
item_state = "analyzer"
var/form_title
var/last_data
matter = list(DEFAULT_WALL_MATERIAL = 80,"glass" = 20)
origin_tech = list(TECH_MAGNET = 1, TECH_BIO = 1)
/obj/item/device/analyzer/plant_analyzer/proc/print_report_verb()
set name = "Print Plant Report"

View File

@@ -33,6 +33,7 @@
var/label = null
var/labels_left = 30
var/mode = 0 //off or on.
matter = list(DEFAULT_WALL_MATERIAL = 120, "glass" = 80)
/obj/item/weapon/hand_labeler/attack()
return

View File

@@ -329,7 +329,7 @@
desc = "Used to set the destination of properly wrapped packages."
icon_state = "dest_tagger"
var/currTag = 0
matter = list(DEFAULT_WALL_MATERIAL = 250, "glass" = 140)
w_class = 2
item_state = "electronic"
flags = CONDUCT

View File

@@ -441,4 +441,21 @@ other types of metals and chemistry for reagents).
req_tech = list(TECH_MATERIAL = 3, TECH_ENGINEERING = 3, TECH_MAGNET = 4, TECH_ILLEGAL = 4)
materials = list(DEFAULT_WALL_MATERIAL = 5000, "glass" = 2500)
build_path = /obj/item/device/pin_extractor
sort_string = "VCBAA"
sort_string = "VCBAA"
/datum/design/item/plant_analyzer
name = "plant analyzer"
desc = "A hand-held plant scanner for hydroponicists and xenobotanists."
id = "plant_analyzer"
req_tech = list(TECH_MAGNET = 2, TECH_BIO = 3)
materials = list(DEFAULT_WALL_MATERIAL = 80,"glass" = 20)
build_path = /obj/item/device/analyzer/plant_analyzer
sort_string = "VCBAB"
/datum/design/item/implanter
name = "implanter"
desc = "A specialized syringe for inserting implants to subjects."
req_tech = list(TECH_ILLEGAL = 2, TECH_BIO = 5)
materials = list(DEFAULT_WALL_MATERIAL = 320, "glass" = 800)
build_path = /obj/item/weapon/implanter
sort_string = "VCBAC"

View File

@@ -9,6 +9,14 @@
..()
name = "Biotech device prototype ([item_name])"
/datum/design/item/health_analyzer
desc = "A hand-held body scanner able to distinguish vital signs of the subject."
id = "health_analyzer"
req_tech = list(TECH_MAGNET = 2, TECH_BIO = 3)
materials = list(DEFAULT_WALL_MATERIAL = 200)
build_path = /obj/item/device/healthanalyzer
sort_string = "MBCAF"
/datum/design/item/medical/robot_scanner
desc = "A hand-held scanner able to diagnose robotic injuries."
id = "robot_scanner"

View File

@@ -5,6 +5,14 @@
..()
name = "Mining equipment design ([item_name])"
/datum/design/item/analyzer
desc = "A hand-held environmental scanner which reports current gas levels."
id = "analyzer"
req_tech = list(TECH_MAGNET = 2, TECH_ENGINEERING = 3)
materials = list(DEFAULT_WALL_MATERIAL = 30,"glass" = 20)
build_path = /obj/item/device/analyzer
sort_string = "KCAAC"
/datum/design/item/weapon/mining/jackhammer
id = "jackhammer"
req_tech = list(TECH_MATERIAL = 3, TECH_POWER = 2, TECH_ENGINEERING = 2)