Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIRROR] Refactors reviver code [MDB IGNORE] (#25691)
* Refactors reviver code (#80386) ## About The Pull Request Cleans up reviver code to overall make it simpler and properly implement the cooldown that it said it had in the code but never really had. Additionally, stops the reviver trying to revive someone that isn't in a revivable state, which fixes tgstation/tgstation#80371. Wasn't sure how long to make the delay but I figured just a 5 second delay after the first heal proc should be fine. About the same as what the original cooldown was from being paired to the heal proc's second iteration. ## Why It's Good For The Game Changes variables and checks used by the reviver to make sure it functions properly with the cooldown that seemed to be intended in the code. Additionally, prevents the reviver from infinitely defibbing a non-revivable corpse. ## Changelog :cl: fix: Reviver no longer attempts to revive impossible to defib mobs. refactor: Cleaned up unnecessary variables and re-arraigned code to have it perform altogether in one tick. Additionally added a proper cooldown to revivers. /:cl: * Refactors reviver code --------- Co-authored-by: Diamond_ <[email protected]>
- Loading branch information