-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIRROR] Changes up carbon EMP handling [MDB IGNORE] (#2990)
* Changes up carbon EMP handling (#83857) ## About The Pull Request The organ refactor 6 months ago changed up organs, making them be actually inside bodyparts and the mob. This introduced the bug of all emp effects being called twice on everything thanks to how /mob/living handles it (Fixed in this PR), but also some new stuff: Made bodyparts handle organ EMPs. This also means we can now have support for bodyparts with EMP_PROTECT_CONTENTS protecting the organs inside. Made a new proc for bodyparts once they are successfully hit by an emp. Makes it much easier to add overrides for the behaviour. Fixed emps hitting bodyparts twice ## Why It's Good For The Game It lays a groundwork for some interesting limb concepts, and makes organ emps make a bit more sense. Fixes a bug that laid unnoticed for 6 months. ## Changelog :cl: fix: EMPs on carbons no longer happen twice code: Moves organ emps under bodyparts, changes how bodyparts handle emp effects /:cl: --------- Co-authored-by: Time-Green <[email protected]> * Changes up carbon EMP handling --------- Co-authored-by: Waterpig <[email protected]> Co-authored-by: Time-Green <[email protected]> Co-authored-by: NovaBot13 <[email protected]>
- Loading branch information
1 parent
57df0ee
commit 1c231a9
Showing
3 changed files
with
25 additions
and
18 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
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
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