Files
Bubberstation/code/modules/surgery
sushi ffd3357f6f Fix implant removal bug that allowed you to remove them from a mob multiple times. (#92913)
## About The Pull Request

Sets `implant` to `null` in
`/datum/surgery_step/extract_implant/success()` after removing it.
Surgery steps are global objects, so the cached implant object would
still exist upon entering `/datum/surgery_step/extract_implant/preop()`.
`preop()` was also changed to set the `implant` member to `null` if no
implant is found, so that the implant state is always valid as soon as
the step is started.

## Why It's Good For The Game

Prevents removing the same implant from a mob several times.

The bug also allowed you to attempt to remove the same implant from a
_different_ mob, which can cause a runtime if the mob does not have an
implants list.

I don't believe this was actually duplicating the implant, however I was
able to get the same implant to appear in multiple implant cases, which
I think were just holding a reference to the same implant.
## Changelog
🆑 sushi
fix: implants can no longer be removed from the same mob (or other
mobs!) multiple times
/🆑
2025-09-12 00:45:34 +02:00
..
2025-09-07 09:24:34 +02:00