From 86bf8c1f8b9ebdf03b3b8a55842c351b60deb448 Mon Sep 17 00:00:00 2001 From: VMSolidus Date: Sat, 11 Apr 2026 08:10:16 -0400 Subject: [PATCH] Posibrain Fixes (#22196) closes #21982 closes #21705 image This PR fixes the longstanding IPC med rework bug whereby surgically removing a posibrain would just delete it. Also fixes a bug where it wasn't possible to join as a posibrain ghost role. --- code/modules/mob/living/carbon/brain/posibrain.dm | 2 +- code/modules/organs/internal/species/machine/posibrain.dm | 1 + html/changelogs/hellfirejag-posibrain-fixes.yml | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 html/changelogs/hellfirejag-posibrain-fixes.yml diff --git a/code/modules/mob/living/carbon/brain/posibrain.dm b/code/modules/mob/living/carbon/brain/posibrain.dm index f4a47bef7a3..1e11b4f98eb 100644 --- a/code/modules/mob/living/carbon/brain/posibrain.dm +++ b/code/modules/mob/living/carbon/brain/posibrain.dm @@ -57,7 +57,7 @@ brainmob.client.init_verbs() - return src + return brainmob /obj/item/mmi/digital/posibrain/update_name() var/new_name = tgui_input_text(brainmob, "Choose your name.", "Name Selection", brainmob.real_name, MAX_NAME_LEN) diff --git a/code/modules/organs/internal/species/machine/posibrain.dm b/code/modules/organs/internal/species/machine/posibrain.dm index 41c964adf86..58d4b6897be 100644 --- a/code/modules/organs/internal/species/machine/posibrain.dm +++ b/code/modules/organs/internal/species/machine/posibrain.dm @@ -140,6 +140,7 @@ stored_mmi.forceMove(get_turf(src)) if(owner.mind) owner.mind.transfer_to(stored_mmi.brainmob) + stored_mmi = null . = ..() diff --git a/html/changelogs/hellfirejag-posibrain-fixes.yml b/html/changelogs/hellfirejag-posibrain-fixes.yml new file mode 100644 index 00000000000..d4df9ac0b9a --- /dev/null +++ b/html/changelogs/hellfirejag-posibrain-fixes.yml @@ -0,0 +1,5 @@ +author: Hellfirejag +delete-after: True +changes: + - bugfix: "Fixed surgically removing a positronic brain deleting it and ghosting the player, you now correctly get a sentient cube." + - bugfix: "Fixed posibrains despawning instantly when joined as a ghostrole. They have souls, this is proof!"