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

Fix monsters attacking across z levels when wandering #3295

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

joveeater
Copy link
Collaborator

Summary

SUMMARY: Bugfixes "Prevent monsters from wandering into an attack across zlevels when fov_3d is off."

Purpose of change

A monster that wanders or scent moves into the player will ignore fov_3d restrictions when attacking them.

Describe the solution

If fov_3d is off it prevents it from attacking across zlevels.

Testing

Spawned a giant wasp above me. It doesn't attack now.

@joveeater joveeater changed the title Fix monsters attacking across z levels when the wandering Fix monsters attacking across z levels when wandering Sep 28, 2023
@github-actions github-actions bot added the src changes related to source code. label Sep 28, 2023
Copy link
Member

@chaosvolt chaosvolt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Compiled and load-tested.
  2. Spawned in and spawned a wasp above me.
  3. Didn't get attacked by an unseen critter.
  4. Turned 3D vision on.
  5. Can now get attacked, but can actually see my attacker and retaliate.

@chaosvolt chaosvolt added this pull request to the merge queue Sep 28, 2023
Merged via the queue into cataclysmbnteam:upload with commit 8545b76 Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
src changes related to source code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants