Skip to content
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

[DamageTypeAPI] Rewrite to use patcher field, instead of il hooks and ConditionalWeakTable #566

Merged

Conversation

KingEnderBrine
Copy link
Contributor

This feels like a good time to do this, since with DamageTypeSource addition people would be likely to update their mods and check that new changes to the api work fine.
I liked the way ProcTypeAPI was done and I think it would be great to do same thing to DamageTypeAPI since with SOTS we also have a struct for all damage type needs. This allows us to remove all the IL hooks leaving only a few necessary On hooks which is always great.

This update should not be a breaking change, despite removing a ModdedTypeDamageHolder class. I checked all non-deprecated mods and none of them reference this class or methods that return this class or have it as a parameter. ModdedTypeDamageHolderComponent is no longer necessary but it is used by mods so it was marked as obsolete and redirected to use new field.

@xiaoxiao921 xiaoxiao921 merged commit 945da60 into risk-of-thunder:master Dec 11, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants