mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user