mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
[MIRROR] BCI implanters no longer drop their BCI on the floor when opened [MDB IGNORE] (#9885)
* BCI implanters no longer drop their BCI on the floor when opened (#63204) Exactly what it says in the title. Implanters used to drop the BCI they contained when opened up. Now they don't. For good measure I made them drop their contained BCIs when deconstructed as well in case they already did that as a consequence of the BCI being located inside the implanter, which was the cause of the issue in the first place. * BCI implanters no longer drop their BCI on the floor when opened Co-authored-by: Y0SH1M4S73R <legoboyo@earthlink.net>
This commit is contained in:
@@ -339,6 +339,11 @@
|
||||
. = ..()
|
||||
occupant_typecache = typecacheof(/mob/living/carbon)
|
||||
|
||||
/obj/machinery/bci_implanter/on_deconstruction()
|
||||
var/obj/item/organ/cyberimp/bci/bci_to_implant_resolved = bci_to_implant?.resolve()
|
||||
bci_to_implant_resolved?.forceMove(drop_location())
|
||||
bci_to_implant = null
|
||||
|
||||
/obj/machinery/bci_implanter/Destroy()
|
||||
QDEL_NULL(bci_to_implant)
|
||||
return ..()
|
||||
@@ -416,7 +421,7 @@
|
||||
var/obj/item/organ/cyberimp/bci/previous_bci_to_implant = bci_to_implant?.resolve()
|
||||
|
||||
bci_to_implant = WEAKREF(weapon)
|
||||
weapon.forceMove(src)
|
||||
weapon.moveToNullspace()
|
||||
|
||||
if (isnull(previous_bci_to_implant))
|
||||
balloon_alert(user, "inserted bci")
|
||||
@@ -475,7 +480,7 @@
|
||||
|
||||
if (isnull(bci_to_implant_resolved))
|
||||
say("Occupant's previous brain-computer interface has been transferred to internal storage unit.")
|
||||
bci_organ.forceMove(src)
|
||||
bci_organ.moveToNullspace()
|
||||
bci_to_implant = WEAKREF(bci_organ)
|
||||
else
|
||||
say("Occupant's previous brain-computer interface has been ejected.")
|
||||
|
||||
Reference in New Issue
Block a user