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

Vision, aggression, attack rewrite #686

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

brturn
Copy link
Contributor

@brturn brturn commented May 18, 2024

This is an experimental PR to fix #540.
Curious to get some eyes on it.

  • Fixes whip/pike/flail/axe attacking invisible but revealed enemies.
  • Full rewrite of the core mechanics for monster vision, aggression, and willingness to attack.
  • I've verified that they can work as replacements for the original code, with minor tweaks.

Because the new functions consistently apply the 'laws' of Brogue, they also introduce some new behaviors:

  • Player will attack entranced monsters when bumping.
  • Confused player will lunge-attack allies.
  • Confused player will spear-attack allies.
  • Confused player will axe-sweep allies.
  • Confused player will flail allies when passing.

Similar changes in behavior occur when replacing the original code in other areas of the codebase.

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.

None yet

1 participant