Skip to content

Commit

Permalink
feat: up to 20 coaches and do not announce coaches
Browse files Browse the repository at this point in the history
  • Loading branch information
opott authored Apr 13, 2024
1 parent bda2f83 commit 426be3d
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions src/announcement-data/systems/stations/AmeyPhil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4560,11 +4560,18 @@ export default class AmeyPhil extends StationAnnouncementSystem {
const coaches = options.coaches.split(' ')[0]

// Platforms share the same audio as coach numbers
files.push(
{ id: 's.this train is formed of', opts: { delayStart: 250 } },
`platform.s.${coaches}`,
`e.${coaches === '1' ? 'coach' : 'coaches'}`,
)
if (options.coaches !== 'None') {
files.push(
{ id: 's.this train is formed of', opts: { delayStart: 250 } },
`platform.s.${coaches}`,
`e.${coaches === '1' ? 'coach' : 'coaches'}`,
)
}
//files.push(
// { id: 's.this train is formed of', opts: { delayStart: 250 } },
// `platform.s.${coaches}`,
// `e.${coaches === '1' ? 'coach' : 'coaches'}`,
//)
}

files.push(
Expand Down Expand Up @@ -5330,6 +5337,7 @@ export default class AmeyPhil extends StationAnnouncementSystem {
name: 'Coach count',
default: '8 coaches',
options: [
'None',
'1 coach',
'2 coaches',
'3 coaches',
Expand All @@ -5342,6 +5350,14 @@ export default class AmeyPhil extends StationAnnouncementSystem {
'10 coaches',
'11 coaches',
'12 coaches',
'13 coaches',
'14 coaches',
'15 coaches',
'16 coaches',
'17 coaches',
'18 coaches',
'19 coaches',
'20 coaches',
].map(c => ({ title: c, value: c })),
type: 'select',
},
Expand Down Expand Up @@ -5570,6 +5586,7 @@ export default class AmeyPhil extends StationAnnouncementSystem {
name: 'Coach count',
default: '8 coaches',
options: [
'None',
'1 coach',
'2 coaches',
'3 coaches',
Expand All @@ -5582,6 +5599,14 @@ export default class AmeyPhil extends StationAnnouncementSystem {
'10 coaches',
'11 coaches',
'12 coaches',
'13 coaches',
'14 coaches',
'15 coaches',
'16 coaches',
'17 coaches',
'18 coaches',
'19 coaches',
'20 coaches',
].map(c => ({ title: c, value: c })),
type: 'select',
},
Expand Down

0 comments on commit 426be3d

Please sign in to comment.