Blackstone-SS13 / BLACKSTONE

GNU Affero General Public License v3.0
29 stars 189 forks source link

Fixes wrong limbs given after using bodypart miracle #1417

Closed Ambrose997 closed 1 week ago

Ambrose997 commented 1 week ago

About The Pull Request

This change maintains the function of the spell whilst fixing an issue that often happens where when using body part miracle to replace someone's arms, it will give the wrong limbs for that species (i.e, drow will get human arms). Since the torso of a species determines how big clothes are on the actual sprite, this caused clothes to outright not fit properly.

It does this by regenerating the limbs using regenerate_limbs() instead of the attachment stuff used before and deletes the corresponding detached limbs nearby to simulate re-attachment whilst ensuring they get the correct limb types.

Why It's Good For The Game

Stops people looking fucking retarded by having huge ass human arms disproportionate to their body with clothes that don't fit.