Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/systems/probe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ sp::ecs::Entity ProbeSystem::launch(sp::ecs::Entity ship, glm::vec2 target)
probe.addComponent<sp::Transform>(*ship_transform);
probe.addComponent<CallSign>().callsign = probe.toString().split(":", 1)[0] + "P";
probe.addComponent<LifeTime>().lifetime = 600.0f; // 600 sec., 10 min.
auto& hull = probe.addComponent<Hull>();
hull.current = hull.max = 1;

// Apply the launching ship's faction, if any.
if (auto faction = ship.getComponent<Faction>())
Expand Down
Loading