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

Doactionmove war1gus #712

Merged
merged 2 commits into from
Aug 18, 2024
Merged

Doactionmove war1gus #712

merged 2 commits into from
Aug 18, 2024

Conversation

Jarod42
Copy link
Member

@Jarod42 Jarod42 commented Aug 18, 2024

war1gus' move animation is of the form
`{"unbreakable begin", "frame 5", "move N", "wait 2", "wait 1", "unbreakable begin", "frame 0", "wait 1"}`;
//                                           ^^^^ Computation here (unbreakable) :/              ^^^^^ and can be break here
(whereas wargus one is
`{"unbreakable begin", "frame 5", "move N1", "wait 2", "frame 4", "move N2",  "unbreakable begin", "frame 0", "wait 1"}`)
//                                                                                                             ^^^^^ computation here (breakable)
Computation on path (and IX/IY) was done on next (finished) `"wait X"` after reaching the tile (so was done **inside** the `unbreakable` section for war1gus).
Workaround is to do the computation only on new animation cycle.
Alternative:
- Grouping `"wait N1", "wait N2"` into `"wait N1+N2"` would not be enough (but would be fine).
- Compute path on first `"move"` is problematic (for Wait/unreachable).
@Jarod42 Jarod42 merged commit 90b3e15 into master Aug 18, 2024
10 checks passed
@Jarod42 Jarod42 deleted the doactionmove_war1gus branch August 18, 2024 16:44
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.

units attacking and are position in wrong places
1 participant