mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-19 14:12:55 +00:00
## About The Pull Request Closes https://github.com/Bubberstation/Bubberstation/issues/2530 Turns out when we made the autolathe disks we overrode a bunch of stock part printability code, which would have been fine except mechfabs were left out of the new code. ## Why It's Good For The Game Bugs are bad ## Proof Of Testing <details> <summary>Screenshots/Videos</summary>   </details> ## Changelog 🆑 fix: fixed hyper and super cells not being in mechfabs like the rest of the cells /🆑
100 lines
3.7 KiB
Plaintext
100 lines
3.7 KiB
Plaintext
//Disks that let autolathes print upgraded parts!
|
|
/obj/item/disk/design_disk/advanced_parts
|
|
name = "advanced components autolathe design disk"
|
|
|
|
/obj/item/disk/design_disk/advanced_parts/Initialize(mapload)
|
|
. = ..()
|
|
blueprints += new /datum/design/adv_capacitor
|
|
blueprints += new /datum/design/adv_scanning
|
|
blueprints += new /datum/design/nano_servo
|
|
blueprints += new /datum/design/high_micro_laser
|
|
blueprints += new /datum/design/adv_matter_bin
|
|
blueprints += new /datum/design/super_cell
|
|
blueprints += new /datum/design/super_battery
|
|
blueprints += new /datum/design/water_recycler
|
|
blueprints += new /datum/design/card_reader
|
|
|
|
/datum/design/adv_capacitor
|
|
build_type = PROTOLATHE | AWAY_LATHE | AUTOLATHE
|
|
/datum/design/adv_scanning
|
|
build_type = PROTOLATHE | AWAY_LATHE | AUTOLATHE
|
|
/datum/design/nano_servo
|
|
build_type = PROTOLATHE | AWAY_LATHE | AUTOLATHE
|
|
/datum/design/high_micro_laser
|
|
build_type = PROTOLATHE | AWAY_LATHE | AUTOLATHE
|
|
/datum/design/adv_matter_bin
|
|
build_type = PROTOLATHE | AWAY_LATHE | AUTOLATHE
|
|
/datum/design/super_cell
|
|
build_type = PROTOLATHE | AWAY_LATHE | AUTOLATHE | MECHFAB
|
|
/datum/design/water_recycler
|
|
build_type = PROTOLATHE | AWAY_LATHE | AUTOLATHE
|
|
/datum/design/card_reader
|
|
build_type = PROTOLATHE | AWAY_LATHE | AUTOLATHE
|
|
|
|
/obj/item/disk/design_disk/high_tech_parts
|
|
name = "high-tech components autolathe design disk"
|
|
|
|
/obj/item/disk/design_disk/high_tech_parts/Initialize(mapload)
|
|
. = ..()
|
|
blueprints += new /datum/design/super_capacitor
|
|
blueprints += new /datum/design/phasic_scanning
|
|
blueprints += new /datum/design/pico_servo
|
|
blueprints += new /datum/design/ultra_micro_laser
|
|
blueprints += new /datum/design/super_matter_bin
|
|
blueprints += new /datum/design/hyper_cell
|
|
blueprints += new /datum/design/hyper_battery
|
|
|
|
/datum/design/super_capacitor
|
|
build_type = PROTOLATHE | AWAY_LATHE | AUTOLATHE
|
|
/datum/design/phasic_scanning
|
|
build_type = PROTOLATHE | AWAY_LATHE | AUTOLATHE
|
|
/datum/design/pico_servo
|
|
build_type = PROTOLATHE | AWAY_LATHE | AUTOLATHE
|
|
/datum/design/ultra_micro_laser
|
|
build_type = PROTOLATHE | AWAY_LATHE | AUTOLATHE
|
|
/datum/design/super_matter_bin
|
|
build_type = PROTOLATHE | AWAY_LATHE | AUTOLATHE
|
|
/datum/design/hyper_cell
|
|
build_type = PROTOLATHE | AWAY_LATHE | AUTOLATHE | MECHFAB
|
|
/datum/design/hyper_battery
|
|
build_type = PROTOLATHE | AWAY_LATHE | AUTOLATHE | MECHFAB
|
|
|
|
/datum/design/adv_part_disk
|
|
name = "Advanced components design disk"
|
|
desc = "A disk for an autolathe containing advanced component designs."
|
|
id = "adv_part_disk"
|
|
build_type = PROTOLATHE | AWAY_LATHE
|
|
materials = list(/datum/material/iron = SMALL_MATERIAL_AMOUNT*1.5)
|
|
build_path = /obj/item/disk/design_disk/advanced_parts
|
|
category = list(
|
|
RND_CATEGORY_STOCK_PARTS + RND_SUBCATEGORY_STOCK_PARTS_2
|
|
)
|
|
lathe_time_factor = 0.2
|
|
departmental_flags = DEPARTMENT_BITFLAG_ENGINEERING | DEPARTMENT_BITFLAG_SCIENCE | DEPARTMENT_BITFLAG_CARGO | DEPARTMENT_BITFLAG_MEDICAL
|
|
|
|
/datum/design/high_tech_part_disk
|
|
name = "High-tech components design disk"
|
|
desc = "A disk for an autolathe containing high-tech component designs."
|
|
id = "high_tech_part_disk"
|
|
build_type = PROTOLATHE | AWAY_LATHE
|
|
materials = list(/datum/material/iron = SMALL_MATERIAL_AMOUNT*1.5, /datum/material/gold = SMALL_MATERIAL_AMOUNT*1.5, /datum/material/silver = SMALL_MATERIAL_AMOUNT*1.5)
|
|
build_path = /obj/item/disk/design_disk/high_tech_parts
|
|
category = list(
|
|
RND_CATEGORY_STOCK_PARTS + RND_SUBCATEGORY_STOCK_PARTS_2 + RND_SUBCATEGORY_STOCK_PARTS_3
|
|
)
|
|
lathe_time_factor = 0.2
|
|
departmental_flags = DEPARTMENT_BITFLAG_ENGINEERING | DEPARTMENT_BITFLAG_SCIENCE | DEPARTMENT_BITFLAG_CARGO | DEPARTMENT_BITFLAG_MEDICAL
|
|
|
|
/datum/techweb_node/parts_upg/New()
|
|
design_ids += list(
|
|
"adv_part_disk",
|
|
)
|
|
return ..()
|
|
|
|
/datum/techweb_node/parts_adv/New()
|
|
design_ids += list(
|
|
"high_tech_part_disk",
|
|
)
|
|
return ..()
|
|
|