fixed train# specific rules. cleaned up display topline and train display on division map

This commit is contained in:
Jesse
2026-08-09 19:44:18 -04:00
parent 4a800a053a
commit 6ead39c530
14 changed files with 316 additions and 57 deletions
+9 -4
View File
@@ -1472,10 +1472,15 @@ function followThrough(
* §6.3's unjam is for a load stranded on MEN|AT|WORK that cannot advance. A green box holding
* a load waiting for a car is not jammed, it is waiting.
*/
// The option has no "end" action, so something must be done. Order by what it costs to lose:
// a load stranded on MEN|AT|WORK is already blocking the pipeline, a red box holds a load
// whose Revenue is banked, and the green box is the only one where discarding destroys work
// that has not been paid for yet. It is last deliberately.
/**
* NOTHING WORTH DOING — SO DO NOTHING.
*
* The option used to have no "end" action, so this fell through to unjamming whichever box
* was least costly to wreck. §6.3 requires no action at all, and it now says so: a wasted
* Stage is strictly better than destroying a load that cost a whole action to stock.
*/
const idle = options.find((i) => i.type === 'freightAgent.end');
if (idle) return because('nothing productive at any facility — leave the Freight Agent idle rather than wreck a working box', idle);
const byCost = (['menAtWork', 'inbound', 'outbound'] as const).map((from) =>
options.find((i) => i.type === 'freightAgent.unjam' && i.from === from),
);