-
-
Notifications
You must be signed in to change notification settings - Fork 392
8000
div>
Adventure map, optimize AI behavior of heroes during movement (1.1.0 8733) #8799
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Preliminary checks
Describe the problem requiring a solution
In the example, the green AI player's hero Troyan bypasses a stack of resources to make his move.
This is often the case, from what I've observed in my games.
However, not picking up the stack of resources during the move doesn't benefit the hero's movement points.
By bypassing the stack of resources, the hero makes two diagonal steps, for a total of 2 x 150 movement points, in the case of terrain with no penalty.
A total of 300 movement points.
Collecting the stack of resources as he moves, the hero would spend 100 movement points to pick up the stack of resources, then 2 x 100 movement points to move to the same location on the adventure map.
The same total of 300 movement points as before, with the added bonus of having picked up the stack of resources, thus avoiding an additional displacement to another hero or to the same hero later to pick up the stack of resources.
In fheroes2:
2024-06-02.14-51-05.mp4
Here is the save file:
AI contourne ressource 01.zip
Describe the possible solution
In similar cases to the one presented, make the hero pick up the stack of resources instead of bypassing it.
Additional info
No response
The text was updated successfully, but these errors were encountered: