Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIRROR] Fix organs being replaced when not needed (#1074)
* Fix organs being replaced when not needed (#81575) ## About The Pull Request So it seems `regenerate_organs` on species was actually replacing organs not belonging to the species regardless, which was making it so the `HEAL_ORGANS` flag which is supposed to heal your organs and supposedly replace missing ones too. However, this made it so anything using that would also remove and replace all organs not native to your species, including prosthetic organs, cybernetic organs, organs alien to your species, and the nightmare heart itself when you're not a nightmare and it tries to revive and convert you. This just makes it mimic its behaviour when used to convert from one species to another, which is to not replace organs alien to your previous species, and making it also not replace those when `replace_current = FALSE`. ## Why It's Good For The Game Fixes #81546. Fixes ethereal reviving eating your prosthetics. ## Changelog :cl: fix: Ethereal heart revive doesn't delete organs alien to your species, like prosthetics, cybernetics, and possibly itself. fix: Nightmare heart revive doesn't delete organs alien to your species, like itself, upon which it would stop the conversion to shadowperson. /:cl: * Fix organs being replaced when not needed --------- Co-authored-by: _0Steven <[email protected]>
- Loading branch information