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

Knock off multihit #672

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

ShivaD173
Copy link
Contributor

  • Make Knock off deal with multi-hit moves correctly
  • Make all moves be able to be used multiple times (Needed for calcing other interactions such as 2hko with stamina)

calc/src/mechanics/gen56.ts Show resolved Hide resolved
} else {
moveGroupObj.children(".move-hits").hide();
moveGroupObj.children(".stat-drops").hide();
moveGroupObj.children(".stat-drops").show();
Copy link
Collaborator

Choose a reason for hiding this comment

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

This being in the else block means it won't be shown for multihit moves (is it intentional because of accuracy issues?).

It can be smarter by only showing on moves that do damage, also the class should be renamed because .stat-drops is inaccurate with this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed. This was intentionally not done with multihits because i didn't want to make it too cluttered. This means that there is still at max 1 box active at a time. It is also quite dubious with accuracy, and I can't see where multiple hits and multiple times is useful other than maybe skill link and similar due to the inherent randomness of it.

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