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

Improve and refactor auto-targeting when throwing something or using a staff or wand #664

Merged
merged 4 commits into from
Mar 13, 2024

Conversation

zenzombie
Copy link
Collaborator

Replaces PR #658
Fixes #420

Centralizes the player auto-targeting logic and makes many behavior modifications, as described in the changes file. I tried to implement improvements that I think make sense, but let me know if I should back out any of them.

These changes should have no effect on replays because I think only the final selected target is recorded, not the candidate targets and I don't think the method of target selection (auto vs. manual) is relevant.

@tmewett
Copy link
Owner

tmewett commented Mar 4, 2024

Looks good. I guess the concern about being super-specific about targeting rules is that players might not know the rules and they'll see the target cycling as inconsistent/broken.

Thanks for the thorough accounting of changes! LGTM, just needs conflicts fixing

@zenzombie
Copy link
Collaborator Author

Ok conflicts resolved. I think the specificity in targeting is helpful but if there are scenarios where it causes confusion we can make changes. Future changes to targeting rules should be much easier with everything centralized.

@zenzombie zenzombie requested a review from tmewett March 11, 2024 22:29
@tmewett tmewett merged commit b086151 into tmewett:release Mar 13, 2024
2 checks passed
zenzombie added a commit to zenzombie/BrogueCE that referenced this pull request May 25, 2024
* Add functions and enum

* Refactor targeting functions

* Remove creatureIsTargetable

* Add negationWillAffectMonster, fix rethrow, update autotarget logic
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