This repository has been archived by the owner on Sep 19, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR that implements changes discussed in #54
This has to be merged together with minigene PR: AnneKitsune/minigene#3
Basic changes of this PR are:
shotcaller/src/systems/simple_movement.rs
now split intosimple_destination.rs
(which sets target to closest enemy) andmovement_system.rs
(which moves entity one step on AIPath if it has enough action points to do so).minigene/src/systems/ai_movement.rs
functionality moved intomovement_system.rs
minigene/src/systems/ai_pathing.rs
now checks if AIDestination has changed before running A*.This PR didn't do anything with
leader1_simple_movement.rs
andleader2_simple_movement.rs
because currently these two systems are commented out inmain.rs
. To re-enable them they will have to be rewritten by following the example code insimple_destination.rs
.