summaryrefslogtreecommitdiff
path: root/sim/src
diff options
context:
space:
mode:
Diffstat (limited to 'sim/src')
-rw-r--r--sim/src/BaseBattle.cpp2
-rw-r--r--sim/src/Builder.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/sim/src/BaseBattle.cpp b/sim/src/BaseBattle.cpp
index 448a5d7..945ef89 100644
--- a/sim/src/BaseBattle.cpp
+++ b/sim/src/BaseBattle.cpp
@@ -78,7 +78,7 @@ BaseBattle::keep_at_range()
continue;
const auto target = _registry.get<Transform>(ai.target);
const Point offset = target.position - self.position;
- ai.destination = target.position - offset.normalized().scale(6000.0);
+ ai.destination = target.position - offset.normalized().scale(ai.keep_at_range);
}
}
diff --git a/sim/src/Builder.cpp b/sim/src/Builder.cpp
index dd10326..a5319fd 100644
--- a/sim/src/Builder.cpp
+++ b/sim/src/Builder.cpp
@@ -36,7 +36,7 @@ Builder::operator()(const universe::ShipType& ship_type, const int team) const
ship_type.max_speed * 2.0,
ship_type.max_speed * 3.0,
100.0);
- registry.emplace<AIState>(entity, Point{0.0, 0.0});
+ registry.emplace<AIState>(entity, 6000.0, Point{0.0, 0.0});
registry.emplace<HitPoints>(entity, ship_type.base_health_points);
return entity;
}