1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/AI/Nullkiller/Analyzers
Xilmi 94e5b5519c Fixed AI constantly visiting towns thinking they can get a huge upgrade
Due to morale-considerations the AI sometimes calculated that their strongest army after doing an exchange had slightly lower total value than the army they used before.
But by using unsigned "slightly lower" became near infinite.
So they constantly wanted to upgrade their army because they considered it more useful than anything else.
Changing the unsigned into signed fixes this.
2024-07-08 16:53:14 +02:00
..
ArmyManager.cpp #3824 - fix empty army with only commander issues 2024-04-26 23:18:20 +03:00
ArmyManager.h Fixed AI constantly visiting towns thinking they can get a huge upgrade 2024-07-08 16:53:14 +02:00
BuildAnalyzer.cpp Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
BuildAnalyzer.h Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
DangerHitMapAnalyzer.cpp NKAI: object graph fixes 2024-03-25 21:04:08 +02:00
DangerHitMapAnalyzer.h Reduced usage of global variables - removed or made const / constexpr 2024-02-12 13:49:45 +02:00
HeroManager.cpp NKAI: fix patrolling heroes never retreat and town danger evaluation 2024-04-21 14:23:58 +03:00
HeroManager.h NKAI: optimize clusterization and pathfinding for object graph 2024-03-24 09:32:54 +02:00
ObjectClusterizer.cpp AI-variant without fuzzy-logic 2024-07-07 22:44:52 +02:00
ObjectClusterizer.h Review fixes 2024-06-17 09:43:22 +00:00