-
Notifications
You must be signed in to change notification settings - Fork 377
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
Knock off multihit #672
Conversation
ShivaD173
commented
Dec 31, 2024
- 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)
src/js/shared_controls.js
Outdated
} else { | ||
moveGroupObj.children(".move-hits").hide(); | ||
moveGroupObj.children(".stat-drops").hide(); | ||
moveGroupObj.children(".stat-drops").show(); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will merge this on Monday.
Nice work, thanks! |