v0.4.2 fixed passenger trains not stopping at office. changeed revenue for train completing run - 1 point to every player when train exits division

This commit is contained in:
Jesse
2026-08-13 21:29:52 -04:00
parent a7221dcf20
commit 393a669418
21 changed files with 1930 additions and 1531 deletions
+11
View File
@@ -124,6 +124,17 @@ export function playCue(cue: string): void {
return;
}
if (cue === 'completed') {
// A train clearing the Division and whistling off: two long horn notes falling away, with the
// second quieter and lower so it reads as distance rather than repetition. Longer than any other
// cue on purpose — it is the only one that pays every player, and it should land as an event.
tone(t, 392, 0.55, 0.13, 'sawtooth', 370);
tone(t, 262, 0.55, 0.09, 'triangle', 247);
tone(t + 0.42, 330, 0.75, 0.08, 'sawtooth', 300);
tone(t + 0.42, 220, 0.75, 0.055, 'triangle', 200);
return;
}
if (cue === 'day') {
// The grade-crossing bell: two strikes. Inharmonic partials separate a bell from a beep.
for (const at of [t, t + 0.22]) {