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

fix: BAM: Use lowercase skill names #1377

Merged
merged 1 commit into from
Jun 28, 2024
Merged

Conversation

xyzzy42
Copy link
Contributor

@xyzzy42 xyzzy42 commented Jun 21, 2024

Every use of the skill name, except one, turned it into a lowercase skill slug. And the one that didn't was a bug!

Just make it lowercase in the action data to start with.

The bug was in the getSkills() call, but it didn't matter since none of the actions that use it have MAP. I.e., it would try to look up actor.skills.Crafting and fail for the repair action, but the value would never be used since only the MAP variant code used it and repair has no MAP. The same for Aid and Raise a Shield, the only other call sites.

  • Please check if the PR fulfills these requirements
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

  • What is the current behavior? (You can also link to an open issue here)

  • What is the new behavior (if this is a feature change)?

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this
    PR?)

  • Other information:

Every use of the skill name, except one, turned it into a lowercase
skill slug.  And the one that didn't was a bug!

Just make it lowercase in the action data to start with.

The bug was in the getSkills() call, but it didn't matter since none of the
actions that use it have MAP.  I.e., it would try to look up
`actor.skills.Crafting` and fail for the repair action, but the value would
never be used since only the MAP variant code used it and repair has no MAP.
The same for Aid and Raise a Shield, the only other call sites.
@xdy xdy merged commit 930cd20 into xdy:main Jun 28, 2024
7 checks passed
Copy link

🎉 This PR is included in version 6.6.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@xyzzy42 xyzzy42 deleted the bam-lowercase-skill branch June 29, 2024 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants