Files
Bubberstation/code/modules/mob
Jacquerel 2c3e1850b0 Fix some quirks with ghosts (#95169)
## About The Pull Request

I believe this is the night's first "post-maintainer round" PR.
Some people got really confused in a round I just played after they
killed me because I was using the ghost species and I had activated the
ghost wallwalking ability.

Post-death, my corpse still could not be removed from the immediate area
of my gravestone in order to be gibbed or thrown into the supermatter or
whatever it was they were planning to do with it, which greatly confused
them.
Following this, once they dug up my grave the skeleton it spawned had a
different name than me which further led my killers to believe that I
was going to return as a lich, and in fact they weren't even sure if
that skeleton was my corpse at all (technically it wasn't I guess).

Additionally, every item that had been on my person was destroyed, which
I think is mostly just unintended.

Finally, I noticed in testing that if I possessed someone else and dug
up my (former) own grave it would put me back into the dead skeleton,
which we probably don't want.

So:
- Ghosts now automatically return to their grave if they're killed in
passthrough mode, leaving a ghost corpse at the former location of the
gravestone.
- The skeleton that can be dug out of a ghost's grave now has that
ghost's name, and additionally all of their worldly belongings were
buried in the grave and spill out onto the ground.
- You will only have your ghost pulled into the skeleton corpse if your
grave is dug up while you are flying around and alive.

## Changelog

🆑
fix: Dead ghosts will return to the grave upon dying.
fix: When you dig up a ghost's grave you will find the skeleton of that
ghost, not the skeleton of some other random guy.
fix: The grave will also contain all of the ghost's worldly belongings.
/🆑
2026-02-22 14:22:11 -05:00
..