diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-03 13:01:27 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-03 13:01:27 +0100 |
commit | 287bb75d2f987e8646a4a33ffac53958b038d785 (patch) | |
tree | 23e4cd6f0aa6f57581812e89d65d6611efa155c4 /lib/Travel/Status/DE/DBWagenreihung.pm | |
parent | 659caeaefd609ea329404c9faaea0f1b561fb62f (diff) |
Add ICE T in ÖBB 4011 variant
Diffstat (limited to 'lib/Travel/Status/DE/DBWagenreihung.pm')
-rw-r--r-- | lib/Travel/Status/DE/DBWagenreihung.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/DBWagenreihung.pm b/lib/Travel/Status/DE/DBWagenreihung.pm index 3ede0ae..6ec2c70 100644 --- a/lib/Travel/Status/DE/DBWagenreihung.pm +++ b/lib/Travel/Status/DE/DBWagenreihung.pm @@ -3,6 +3,7 @@ package Travel::Status::DE::DBWagenreihung; use strict; use warnings; use 5.020; +use utf8; our $VERSION = '0.09'; @@ -42,6 +43,7 @@ my %is_redesign = ( ); my %model_name = ( + '011' => [ 'ICE T', 'ÖBB 4011' ], '401' => ['ICE 1'], '402' => ['ICE 2'], '403.S1' => [ 'ICE 3', 'BR 403, 1. Serie' ], @@ -453,6 +455,7 @@ sub wagongroup_subtype { } my %ml = ( + '011' => 0, '401' => 0, '402' => 0, '403.S1' => 0, @@ -594,6 +597,9 @@ sub wagongroup_subtype { elsif ( $self->train_type eq 'IC' and $wagon->is_dosto ) { $ml{'IC2.TWIN'}++; } + elsif ( substr( $wagon->uic_id, 4, 4 ) eq '4011' ) { + $ml{'011'}++; + } } my @likelihood = reverse sort { $ml{$a} <=> $ml{$b} } keys %ml; |