mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
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:
co-authored by
Watermelon914
parent
bfe0fcc601
commit
44a2af780d
@@ -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!")
|
||||
Reference in New Issue
Block a user