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

Added NWNX_ON_ATTACK_TARGET_CHANGE_BEFORE/AFTER events #1683

Merged
merged 2 commits into from
Jul 26, 2023

Conversation

Cjreek
Copy link
Contributor

@Cjreek Cjreek commented Jul 15, 2023

Also added Utils::StringToObjectID() as I did need that.

uint32_t nParamType8, void* pParameter8, uint32_t nParamType9, void* pParameter9, uint32_t nParamType10, void* pParameter10,
uint32_t nParamType11, void* pParameter11, uint32_t nParamType12, void* pParameter12)
{
auto bOriginalCalled = false;
Copy link
Member

Choose a reason for hiding this comment

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

Would like this auto to be explicitly bool. Same for the auto oidXXX ones further below and in the other hook, ObjectID/OBJECT_ID in this case.

auto should only be used when the type is really obvious, due to a cast or a Utils::AsNWSCreature(pObject); like auto *pCreature has below.

@Cjreek
Copy link
Contributor Author

Cjreek commented Jul 25, 2023

Fixed

@Daztek Daztek merged commit e909fb8 into nwnxee:master Jul 26, 2023
5 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