# Pod Mechanics
## Overview
When a ship is destroyed, the game places the pilotâs escape pod in a sector determined by two distinct rules:
1. **Selfâdestruction** â the pod is sent to the shipâs **previous sector**.
2. **Killed by another player** â the pod follows the **safeâpath algorithm**.
Understanding both mechanisms enables precise control of pod placement during invasions, retreats, and other risky maneuvers.
---
## Previous Sector
The game tracks a *previousâsector* field that is updated whenever the ship changes location. The value stored is used as the pod destination if the pilot kills himself (e.g., by blowing up on a quasar, hitting a naval hazard, or any other selfâinflicted fatal event).
| Movement Type | Effect on Previous Sector |
|---------------|---------------------------|
| Manual warp or retreat (e.g., `1234 â 2345`) | Set to the sector departed from (`1234`). |
| Transport from ship A to ship B (`1234 â 2345`) | Set to the origin sector (`1234`). |
| Transport between two ships located in the same sector (`2345 â 2345`) | Set to that sector (`2345`). |
| **Pâwarp** (`1234 â 2345`) | Historically set to sectorâŻ1; recent versions leave it unchanged. |
| Teammateâpâwarp you into the same sector (`1234 â 2345`) | Updated to the destination sector (`2345`). |
| **Tâwarp** (`1234 â 2345`) | Updated to the destination sector (`2345`). |
| **Bâwarp** (`1234 â 2345`) | **Does not change** the previousâsector field. |
| **Bâwarp fusion** (failed bâwarp while pod is active) | Pod is placed in the sector from which the bâwarp was attempted, **ignoring** the stored previous sector. |
*Note:* The previous sector is only relevant for selfâdestruction. If another player eliminates you, the safeâpath algorithm overrides this value.
---
## SafeâPath Algorithm
When killed by another player, the pod searches for a *safe* sector to flee to. A sector qualifies as **safe** if it contains only your own fighters, belongs to your corporation, or is empty.
The algorithm proceeds as follows:
1. **Select Random Targets** â generate a set of candidate sectors 3 to 20 hops away (exact range may vary by version).
2. **Path Planning** â compute a route from the current sector to each candidate.
3. **Safe Advancement** â follow each route as far as possible, stopping when the next hop would enter an unsafe sector.
The pod then materializes at the farthest reachable safe sector along the chosen route. If **all** routes encounter unsafe sectors immediately, the pod remains in the sector where it was destroyed.
### Typical Outcomes
- **At least one adjacent safe sector** â the pod will move at least one hop away, often traveling many sectors if you own multiple contiguous sectors.
- **Surrounded by enemy fighters** â no safe adjacent sector exists; the pod stays in the death sector, making it vulnerable to immediate capture.
- **Deadâend or gate** â if the current sector is a deadâend surrounded by unsafe sectors, the pod cannot escape and remains in place (example diagram below).