1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00
vcmi/AI/Nullkiller/Behaviors
Xilmi fac18d953e Fixed and improved disband-logic
The score for buying army now scales with the cost of that army.
The cost of the units that need to be disbanded in order to hire the new units is subtracted from the army-hiring-score so the AI will prefer hiring armies where the amount of troops to disband is low or non-existent.
Fixed a bug that also disbanded troops when there still were free slots available.
2024-12-13 00:09:10 +01:00
..
BuildingBehavior.cpp Update BuildingBehavior.cpp 2024-09-10 23:42:51 +02:00
BuildingBehavior.h NKAI: remove static ai field 2024-03-31 21:11:25 +03:00
BuyArmyBehavior.cpp Fixed and improved disband-logic 2024-12-13 00:09:10 +01:00
BuyArmyBehavior.h NKAI: remove static ai field 2024-03-31 21:11:25 +03:00
CaptureObjectsBehavior.cpp expose safeAttackRatio to AI config 2024-11-28 11:53:51 +00:00
CaptureObjectsBehavior.h NKAI: port exploration from VCAI 2024-05-20 23:50:13 +03:00
ClusterBehavior.cpp NKAI: port exploration from VCAI 2024-05-20 23:50:13 +03:00
ClusterBehavior.h NKAI: remove static ai field 2024-03-31 21:11:25 +03:00
DefenceBehavior.cpp Update DefenceBehavior.cpp 2024-12-01 23:05:56 +01:00
DefenceBehavior.h NKAI: remove static ai field 2024-03-31 21:11:25 +03:00
ExplorationBehavior.cpp Update ExplorationBehavior.cpp 2024-07-24 15:40:20 +02:00
ExplorationBehavior.h NKAI: port exploration from VCAI 2024-05-20 23:50:13 +03:00
GatherArmyBehavior.cpp expose safeAttackRatio to AI config 2024-11-28 11:53:51 +00:00
GatherArmyBehavior.h NKAI: remove static ai field 2024-03-31 21:11:25 +03:00
RecruitHeroBehavior.cpp Hero hiring adjustments 2024-12-02 15:11:39 +01:00
RecruitHeroBehavior.h NKAI: remove static ai field 2024-03-31 21:11:25 +03:00
StartupBehavior.cpp NKAI: rewardables 2024-07-07 21:58:39 +03:00
StartupBehavior.h NKAI: remove static ai field 2024-03-31 21:11:25 +03:00
StayAtTownBehavior.cpp Going to town when nothing to do. 2024-09-06 22:14:59 +02:00
StayAtTownBehavior.h NKAI: remove static ai field 2024-03-31 21:11:25 +03:00