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:
2026-06-18 21:43:55 +02:00
parent abab2bbb6e
commit c371b43a6d
14 changed files with 208 additions and 4 deletions

View 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;
});
}