1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Nullkiller: temporary hacks to allow army buying

This commit is contained in:
Andrii Danylchenko
2021-05-15 21:57:31 +03:00
committed by Andrii Danylchenko
parent 286d084445
commit 04bf6f536d
5 changed files with 109 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
#include "../AIHelper.h"
#include "../Behaviors/CaptureObjectsBehavior.h"
#include "../Behaviors/RecruitHeroBehavior.h"
#include "../Behaviors/BuyArmyBehavior.h"
#include "../Goals/Invalid.h"
extern boost::thread_specific_ptr<CCallback> cb;
@@ -74,6 +75,7 @@ void Nullkiller::makeTurn()
updateAiState();
Goals::TGoalVec bestTasks = {
choseBestTask(BuyArmyBehavior()),
choseBestTask(CaptureObjectsBehavior()),
choseBestTask(RecruitHeroBehavior())
};