make repair ships standby with rest of fleet if there is no one to repair (instead of advancing towards the enemy stations)
This commit is contained in:
16
src/lib/ecs/system/ai/StandbyEvaluator.cpp
Normal file
16
src/lib/ecs/system/ai/StandbyEvaluator.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "StandbyEvaluator.h"
|
||||
|
||||
#include "BehaviorScores.h"
|
||||
#include "EntityAdmin.h"
|
||||
#include "StandbyBehavior.h"
|
||||
#include "tracing.h"
|
||||
|
||||
void StandbyEvaluator::evaluate(EntityAdmin& admin)
|
||||
{
|
||||
TRACE();
|
||||
admin.forEach<StandbyBehavior>(
|
||||
[](entt::entity /*e*/, StandbyBehavior& standby)
|
||||
{
|
||||
standby.score = BehaviorScores::kStandby;
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user