-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(combat): auto-combat can use items / spells
- add `chooseMove` helper to determine which actions to select. - use heal spell when party members are injured if it's owned - use push spell to damage enemies if there are no injured party members and it's owned - use a potion on injured party members if one is owned - attack the enemy with the least HP as a final resort - add tests
- Loading branch information
1 parent
88f4999
commit c1c7ed8
Showing
2 changed files
with
190 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters