forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes organ/implant manipulator creating implants in the void when fa…
…iling to insert (tgstation#76602) ## About The Pull Request When using the organ manipulator, implants that fail implant() would still be created and be left out of the implantee. Now, implants that fail insertion will self-delete and notify the menu operator. This functionality has been extended to organs as well, although I don't know of any cases where they could fail insertion. I also touched up on the variable names while I was here, because they needed a face-lift. ## Why It's Good For The Game Prevents edge cases that could lead to orphaned implants or organs. More readable code is neat too. ## Changelog :cl: Rhials fix: The organ manipulator menu will now delete implants or organs that fail to properly insert. code: The organ manipulator menu code now looks nicer :) /:cl:
- Loading branch information
Showing
1 changed file
with
45 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters