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

Improved path for intelligent monsters #68492

Merged
merged 2 commits into from
Oct 4, 2023

Conversation

marimarigi
Copy link
Contributor

Summary

Balance "Improved path for intelligent monsters"

Purpose of change

I'd like monsters with some intelligence to move a little more intelligently, so I improve it.

Describe the solution

  • If intelligent monsters have vision, they find routes when moving by following smells and sounds.
    Up until now, any monsters would go straight to the source of the sound.

  • Tiles that cannot be entered are excluded from pathfinding.
    This avoids getting stuck in those inaccessible terrains.

  • Some Monsters exclude nearby Creatures from their pathfinding.
    This somewhat avoids allies getting stuck in the way.

Describe alternatives you've considered

Add an "intelligence" field to monsters and use it.

Testing

I confirmed that the behavior of migos, dogs, etc. has changed, but that zombies have not changed.

Additional context

referenceVideo.mp4

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` Game: Balance Balancing of (existing) in-game features. astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Oct 4, 2023
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Oct 4, 2023
@Maleclypse Maleclypse merged commit f724640 into CleverRaven:master Oct 4, 2023
detahramet pushed a commit to detahramet/Cataclysm-DDA that referenced this pull request Nov 6, 2023
* Improved path for smart monsters

* Change function name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Game: Balance Balancing of (existing) in-game features. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants