1 parent e94cbd2 commit bf8f16aCopy full SHA for bf8f16a
1 file changed
src/systems/probe.cpp
@@ -27,6 +27,8 @@ sp::ecs::Entity ProbeSystem::launch(sp::ecs::Entity ship, glm::vec2 target)
27
probe.addComponent<sp::Transform>(*ship_transform);
28
probe.addComponent<CallSign>().callsign = probe.toString().split(":", 1)[0] + "P";
29
probe.addComponent<LifeTime>().lifetime = 600.0f; // 600 sec., 10 min.
30
+ auto& hull = probe.addComponent<Hull>();
31
+ hull.current = hull.max = 1;
32
33
// Apply the launching ship's faction, if any.
34
if (auto faction = ship.getComponent<Faction>())
0 commit comments