fix: compute clouds from planned route so destruction cannot leak (review)

This commit is contained in:
2026-06-12 14:44:24 +00:00
parent f563934314
commit ca32407c43
3 changed files with 33 additions and 4 deletions
+3
View File
@@ -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';