Files
Bubberstation/code/modules/surgery
SkyratBot 0efa9768fc [MIRROR] Fixed paralyzed characters being able to walk post-amputation. (#28758)
* Fixed paralyzed characters being able to walk post-amputation. (#84805)

## About The Pull Request

Fixes #80396.
Fixes #81508.

I suspect this also fixes #74025, but that one was never properly
reproduced.

There has been a bug for quite a long time allowing paraplegic
characters to walk around after the loss of a leg. This was due to the
paraplegic trait being cleared from a removed limb _before_ its owner is
cleared, causing the number of usable legs to incorrectly increment.
Repeatedly removing and reattaching legs could increment usable_legs
arbitrarily high, allowing you to walk around at full speed with no legs
at all.

Things have been rearranged so that the limb's owner gets cleared first,
removing this bug.
## Why It's Good For The Game

As funny as it is for a completely legless person to be "walking" around
the station at full speed, I don't think this is something you should be
able to do freely if you know how.
## Changelog
🆑
fix: Amputating a paraplegic's leg no longer miraculously allows them to
walk.
/🆑

---------

Co-authored-by: Ghom <42542238+Ghommie@ users.noreply.github.com>

* Fixed paralyzed characters being able to walk post-amputation.

---------

Co-authored-by: lizardqueenlexi <105025397+lizardqueenlexi@users.noreply.github.com>
Co-authored-by: Ghom <42542238+Ghommie@ users.noreply.github.com>
2024-07-10 08:59:46 +05:30
..