Integrated the component printer into the integrated circuit UI. You can now link integrated circuits to component printers (#62287)

Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
This commit is contained in:
Watermelon914
2021-10-28 11:42:57 -07:00
committed by GitHub
co-authored by Watermelon914
parent bfe0fcc601
commit 44a2af780d
86 changed files with 571 additions and 34 deletions
@@ -199,6 +199,7 @@
/datum/techweb/proc/add_design(datum/design/design, custom = FALSE)
if(!istype(design))
return FALSE
SEND_SIGNAL(src, COMSIG_TECHWEB_ADD_DESIGN, design, custom)
researched_designs[design.id] = TRUE
if(custom)
custom_designs[design.id] = TRUE
@@ -212,6 +213,7 @@
return FALSE
if(custom_designs[design.id] && !custom)
return FALSE
SEND_SIGNAL(src, COMSIG_TECHWEB_REMOVE_DESIGN, design, custom)
custom_designs -= design.id
researched_designs -= design.id
return TRUE