mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Nullkiller: defence behavior
This commit is contained in:
committed by
Andrii Danylchenko
parent
f44c3f2aaf
commit
a2ac19e4ec
@@ -15,6 +15,7 @@
|
||||
#include "../Behaviors/RecruitHeroBehavior.h"
|
||||
#include "../Behaviors/BuyArmyBehavior.h"
|
||||
#include "../Behaviors/StartupBehavior.h"
|
||||
#include "../Behaviors/DefenceBehavior.h"
|
||||
#include "../Goals/Invalid.h"
|
||||
|
||||
extern boost::thread_specific_ptr<CCallback> cb;
|
||||
@@ -95,7 +96,8 @@ void Nullkiller::makeTurn()
|
||||
Goals::TGoalVec bestTasks = {
|
||||
choseBestTask(std::make_shared<BuyArmyBehavior>()),
|
||||
choseBestTask(std::make_shared<CaptureObjectsBehavior>()),
|
||||
choseBestTask(std::make_shared<RecruitHeroBehavior>())
|
||||
choseBestTask(std::make_shared<RecruitHeroBehavior>()),
|
||||
choseBestTask(std::make_shared<DefenceBehavior>())
|
||||
};
|
||||
|
||||
if(cb->getDate(Date::DAY) == 1)
|
||||
|
||||
Reference in New Issue
Block a user