mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-31 20:11:56 +00:00
[MIRROR] BCIs now come with an integrated circuit with a bci action which is also now removable (#8258)
* BCIs now come with one bci action (#61521) Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com> * BCIs now come with an integrated circuit with a bci action which is also now removable Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
var/locked = FALSE
|
||||
|
||||
/datum/component/shell/Initialize(unremovable_circuit_components, capacity, shell_flags)
|
||||
/datum/component/shell/Initialize(unremovable_circuit_components, capacity, shell_flags, starting_circuit)
|
||||
. = ..()
|
||||
if(!ismovable(parent))
|
||||
return COMPONENT_INCOMPATIBLE
|
||||
@@ -25,6 +25,9 @@
|
||||
src.capacity = capacity || src.capacity
|
||||
set_unremovable_circuit_components(unremovable_circuit_components)
|
||||
|
||||
if(starting_circuit)
|
||||
attach_circuit(starting_circuit)
|
||||
|
||||
/datum/component/shell/RegisterWithParent()
|
||||
RegisterSignal(parent, COMSIG_PARENT_ATTACKBY, .proc/on_attack_by)
|
||||
RegisterSignal(parent, COMSIG_PARENT_EXAMINE, .proc/on_examine)
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
/obj/item/organ/cyberimp/bci/Initialize()
|
||||
. = ..()
|
||||
|
||||
var/obj/item/integrated_circuit/circuit = new(src)
|
||||
circuit.add_component(new /obj/item/circuit_component/bci_action(null, "One"))
|
||||
|
||||
AddComponent(/datum/component/shell, list(
|
||||
new /obj/item/circuit_component/bci_core,
|
||||
new /obj/item/circuit_component/bci_action(null, "One"),
|
||||
new /obj/item/circuit_component/bci_action(null, "Two"),
|
||||
new /obj/item/circuit_component/bci_action(null, "Three"),
|
||||
), SHELL_CAPACITY_SMALL)
|
||||
), SHELL_CAPACITY_SMALL, starting_circuit = circuit)
|
||||
|
||||
/obj/item/organ/cyberimp/bci/Insert(mob/living/carbon/reciever, special, drop_if_replaced)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user