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
+14
View File
@@ -459,6 +459,20 @@ function render(): void {
}
lastPhase = f.phaseKey;
/**
* A train completing its run pays every player and nobody took a turn to cause it, so it is said
* out loud rather than left in the log. Drained, so it shows once and does not re-fire on a redraw.
*/
const announcement = session.takeAnnouncement();
if (announcement) {
const el = $('announce');
el.textContent = announcement;
el.className = 'shown';
window.setTimeout(() => {
if (el.textContent === announcement) el.className = '';
}, 4200);
}
renderDistrict(f);
renderActions(menu, f, justSet);
renderUndo();