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