Files
Bubberstation/code/datums/mutations
BloopandGitHub 3a1496bb18 [NO GBP] Fixes a mistake with mutation cleanup (#80242)
## About The Pull Request

Fixes https://github.com/tgstation/tgstation/issues/80199

`on_lose()` tends to call the parent first, where the `qdel(src)` was
happening. The issue with that: it returns from the parent call, and now
due to being qdeled the `owner` is set to `null`. Certain mutations try
to access owner to do various things post-removal, cue the runtimes...

---

I just moved the mutation qdeletion out of the proc and into
`force_lose()` instead. There are only two other places where
`on_lose()` gets called, one of which is for unstable mutations and it
already immediately qdels the mutation afterwards.

The other is when hulks get put into crit. I added a qdel to the latter.
This should ensure that mutations always get deleted after removal (but
without breaking anything this time).

Also renamed some abbreviated vars.

Fixes https://github.com/Skyrat-SS13/Skyrat-tg/issues/25543

## Why It's Good For The Game

Fixes a bug that I accidentally introduced.

## Changelog

🆑
fix: fixes a bug which was causing certain mutations to only get
partially removed
/🆑
2023-12-14 17:20:45 +01:00
..
2023-12-09 13:31:50 +01:00
2023-10-31 17:10:15 +00:00