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

Dynamic execution duration for leap #390

Merged
merged 14 commits into from
May 13, 2024
Merged

Dynamic execution duration for leap #390

merged 14 commits into from
May 13, 2024

Conversation

AminArria
Copy link
Contributor

Changes leap from having a fixed duration and dynamic speed to having fixed speed and dynamic duration

@AminArria AminArria force-pushed the leap-dynamic-duration branch from fb1646a to 64d3dfa Compare March 20, 2024 18:39
## so to simplify my life an executive decision was made to take thas as a fact
## When the time comes to have more than one mechanic per skill this function will need to be refactored, good thing
## is that it will crash here so not something we can ignore
defp calculate_duration(%{mechanics: [%{leap: leap}]}, position, direction) do
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is not working. It should be:
defp calculate_duration(%{mechanics: [leap: leap]}, position, direction) do

Copy link
Contributor Author

@AminArria AminArria Mar 22, 2024

Choose a reason for hiding this comment

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

Fixed 7864206

@AminArria AminArria force-pushed the leap-dynamic-duration branch from 98a05ff to ca09cde Compare May 7, 2024 19:57
@AminArria AminArria marked this pull request as ready for review May 7, 2024 20:04
@AminArria AminArria changed the title [WIP] Dynamic execution duration for leap Dynamic execution duration for leap May 7, 2024
@manucamejo manucamejo dismissed their stale review May 7, 2024 20:06

outdated

Copy link
Contributor

@agustinesco agustinesco left a comment

Choose a reason for hiding this comment

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

Screen.Recording.2024-05-09.at.11.36.30.AM.mov

When you execute the leap while you're walking and you don't release the stick you're stuck when you finish the leap, this is not present on main

Copy link
Contributor

@agustinesco agustinesco left a comment

Choose a reason for hiding this comment

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

I've found another error i think that, if you leap with the magic boots the final positions ends up being farther that you intended

Screen.Recording.2024-05-10.at.10.57.19.AM.mov

agustinesco
agustinesco previously approved these changes May 13, 2024
Copy link
Contributor

@agustinesco agustinesco left a comment

Choose a reason for hiding this comment

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

LGTM!

@agustinesco agustinesco merged commit 03211e1 into main May 13, 2024
1 check passed
@agustinesco agustinesco deleted the leap-dynamic-duration branch May 13, 2024 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
champions MOBA game
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants