Skip to content

Fix the regenerator component (i.e teratomas) sometimes not triggering #5958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2025

Conversation

Absolucy
Copy link
Member

@Absolucy Absolucy commented Mar 17, 2025

About The Pull Request

This makes it so /datum/component/regenerator also registers COMSIG_LIVING_ADJUST_ALL_DAMAGE_TYPES, to ensure it always knows any incoming damage.

Why It's Good For The Game

having to punch yourself to start healing as a teratoma is stupid

Changelog

🆑
fix: Fixed the regenerator component (i.e teratomas) sometimes not triggering.
/:cl:

@Absolucy Absolucy added the Code: Fix fix da bug label Mar 17, 2025
@@ -0,0 +1,12 @@
/datum/component/regenerator/RegisterWithParent()
. = ..()
RegisterSignals(parent, COMSIG_LIVING_ADJUST_ALL_DAMAGE_TYPES, PROC_REF(on_adjust_damage))
Copy link
Member Author

@Absolucy Absolucy Mar 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to register both this and COMSIG_MOB_APPLY_DAMAGE in the original to ensure it catches all incoming damage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code: Fix fix da bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant