Skip to content

Commit

Permalink
Merge branch 'main' into deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Jun 7, 2024
2 parents 87b1a86 + 2977af3 commit 00071f3
Show file tree
Hide file tree
Showing 47 changed files with 13 additions and 13 deletions.
Binary file added audio/station/ketech/celia/sfx - fanfare.mp3
Binary file not shown.
Binary file added audio/station/ketech/phil/sfx - fanfare.mp3
Binary file not shown.
26 changes: 13 additions & 13 deletions src/announcement-data/systems/stations/AmeyPhil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3926,22 +3926,22 @@ export default class AmeyPhil extends StationAnnouncementSystem {

if (stopData.position === 'any' || stopData.position === pos) {
if (len === 1) {
files.push(`e.should travel in the ${pos} coach of the train`)
files.push(`e.should join the ${pos} coach only`)
} else {
files.push(`m.should travel in the ${pos}`, `platform.s.${len}`, 'e.coaches of the train')
files.push(`e.should join the ${pos} ${len} coaches`)
}
} else {
if (len === 1) {
files.push(`m.should travel in the ${pos}`, 'm.coach')
} else {
files.push(`m.should travel in the ${pos}`, `platform.s.${len}`, 'm.coaches')
}

if (stopData.length === 1) {
files.push('m.of', 'm.the', `m.${stopData.position}`, 'e.coach of this train')
} else {
files.push('m.of', 'm.the', `m.${stopData.position}`, `platform.s.${stopData.length}`, 'e.coaches of the train')
}
// No short platforms are announced post-split. All this code I've written going to waste!
// if (len === 1) {
// files.push(`m.should join the ${pos} coach only`)
// } else {
// files.push(`e.should join the ${pos} ${len} coaches`)
// }
// if (stopData.length === 1) {
// files.push('m.of', 'm.the', `m.${stopData.position}`, 'e.coach')
// } else {
// files.push('m.of', 'm.the', `m.${stopData.position}`, `platform.s.${stopData.length}`, 'e.coaches')
// }
}

return files
Expand Down

0 comments on commit 00071f3

Please sign in to comment.