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

Weight logic to Knockback #544

Merged
merged 18 commits into from
Jan 22, 2020
Merged

Conversation

Vrixyz
Copy link
Contributor

@Vrixyz Vrixyz commented Nov 17, 2019

Related to #291

Impacts would only be "BombPush" ability used on ally Heavy agents.

Features:

  • Weight logic for BombPush
  • Same logic for FlyOff effect
  • Visualization for failed knockback
  • PR for assets/objects.ron definitions : added weight to objects zemeroth_assets#6
  • Tests for Knockback
  • Tests for FlyOff

src/core/battle/effect.rs Outdated Show resolved Hide resolved
src/core/battle/execute.rs Outdated Show resolved Hide resolved
src/core/battle/tests.rs Show resolved Hide resolved
src/core/battle.rs Outdated Show resolved Hide resolved
src/core/battle/state/apply.rs Outdated Show resolved Hide resolved
src/core/battle/tests.rs Outdated Show resolved Hide resolved
src/core/battle/tests.rs Outdated Show resolved Hide resolved
@Vrixyz
Copy link
Contributor Author

Vrixyz commented Dec 14, 2019

Ok tests are not passing now, there must be something not deterministic in there, sometimes is succeeds and sometimes not, I guess the simplest fix is to split the test in 2 : "heavy" and "normal".

I separated tests for "heavy" and "normal", but ❗️ there's no test to actually make sure the movement was indeed applied for "normal", but not applied for "heavy"

src/core/battle.rs Show resolved Hide resolved
src/core/battle.rs Outdated Show resolved Hide resolved
src/core/battle/execute.rs Outdated Show resolved Hide resolved
src/core/battle/state/apply.rs Outdated Show resolved Hide resolved
src/core/battle/tests.rs Show resolved Hide resolved
src/core/battle/tests.rs Show resolved Hide resolved
src/core/battle/state/apply.rs Outdated Show resolved Hide resolved
@ozkriff
Copy link
Owner

ozkriff commented Jan 14, 2020

Could you rebase on top of the master branch (to fix Travis checks), please?

@ozkriff
Copy link
Owner

ozkriff commented Jan 14, 2020

Also, this PR should be paired with a PR to https://github.com/ozkriff/zemeroth_assets/blob/master/objects.ron otherwise the actual game crashes during initialization with a 'Can't parse the prototypes: Message("missing field `weight`")' msg.

@Vrixyz Vrixyz force-pushed the 291-weight-component branch from 9d48c59 to a4b486a Compare January 14, 2020 21:39
@Vrixyz Vrixyz force-pushed the 291-weight-component branch from c7b8aac to e7a0871 Compare January 14, 2020 22:16
src/core/battle/component.rs Show resolved Hide resolved
src/core/battle/tests.rs Show resolved Hide resolved
src/core/battle/tests.rs Show resolved Hide resolved
src/core/battle/execute.rs Outdated Show resolved Hide resolved
src/screen/battle/visualize.rs Show resolved Hide resolved
@ozkriff ozkriff merged commit 2e3a0b8 into ozkriff:master Jan 22, 2020
@ozkriff
Copy link
Owner

ozkriff commented Jan 22, 2020

Added a few final touches.

Thanks for the PR again, @Vrixyz!!

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