fix: compute clouds from planned route so destruction cannot leak (review)
This commit is contained in:
@@ -97,6 +97,9 @@ export function planNpc(world, npc) {
|
||||
npc.plan = {
|
||||
id: planId, good: best.good, qty: best.qty,
|
||||
originPlanet: origin.id, destPlanet: best.dest.id,
|
||||
// Planned route (public knowledge for clouds) — unlike legs, never
|
||||
// truncated by a hidden 'destroyed' roll.
|
||||
routeLanes: best.route.lanes, startSys: origin.systemId,
|
||||
startTime: t, ...itin,
|
||||
};
|
||||
npc.state = 'transit';
|
||||
|
||||
Reference in New Issue
Block a user