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
+1
View File
@@ -51,6 +51,7 @@
#include "card_mismatch.dm"
#include "chain_pull_through_space.dm"
#include "chat_filter.dm"
#include "circuit_component_category.dm"
#include "closets.dm"
#include "combat.dm"
#include "component_tests.dm"
@@ -0,0 +1,11 @@
/// Tests to make sure each circuit component that could potentially be available to a player has a category
/datum/unit_test/circuit_component_category
/datum/unit_test/circuit_component_category/Run()
for(var/datum/design/design in subtypesof(/datum/design/component))
var/obj/item/circuit_component/path = initial(design.build_path)
if(!path)
continue
if(initial(path.category) == COMPONENT_DEFAULT_CATEGORY)
Fail("[path] has a category of '[COMPONENT_DEFAULT_CATEGORY]' when it has a research design that players can potentially access!")