[MODULAR] Add circuit cameras and bluespace reagent injector (#27422)

* Ported PR from downstream

* Remove components that were PR'd upstream

* Update modular_skyrat/master_files/code/modules/wiremod/components/action/pathfind.dm

---------

Co-authored-by: Useroth <37159550+Useroth@users.noreply.github.com>
This commit is contained in:
tmyqlfpir
2024-05-18 09:06:46 +10:00
committed by GitHub
parent 7e6fcdccb5
commit 2a07f00fc8
8 changed files with 488 additions and 10 deletions
@@ -9,6 +9,10 @@
display_name = "Reagent Injector"
desc = "A component that can inject reagents from a BCI's reagent storage."
category = "BCI"
//SKYRAT EDIT CHANGE BEGIN - Add container type flag - This is required since we have two reagent components, and the BCI only allows one active
//circuit_flags = CIRCUIT_NO_DUPLICATES - SKYRAT EDIT - ORIGINAL
circuit_flags = CIRCUIT_NO_DUPLICATES|CIRCUIT_REAGENT_CONTAINER_TYPE
//SKYRAT EDIT CHANGE END
circuit_flags = CIRCUIT_NO_DUPLICATES
required_shells = list(/obj/item/organ/internal/cyberimp/bci)
@@ -264,6 +264,13 @@ GLOBAL_LIST_EMPTY_TYPED(integrated_circuits, /obj/item/integrated_circuit)
to_chat(user, span_danger("You can't insert multiple instances of this component into the same circuit!"))
return FALSE
// SKYRAT ADDITION BEGIN - This is required since we have two reagent components, and the BCI only allows one active
if(to_add.circuit_flags & CIRCUIT_REAGENT_CONTAINER_TYPE)
if(shell && shell.reagents)
to_chat(user, span_danger("You can't insert multiple reagent containers into the same circuit!"))
return FALSE
// SKYRAT ADDITION END
var/success = FALSE
if(user)
success = user.transferItemToLoc(to_add, src)