summaryrefslogtreecommitdiff
path: root/lib/Travel
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-12-26 10:13:28 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-12-26 10:13:28 +0100
commit5c1ab77d24e311c1c613c3a9441bda84cc014c0b (patch)
treeac30b6774261682e14ffbb0d044406e701bf72e3 /lib/Travel
parenta9b5b0a8a3c5b3964e5c89b0e4e58706658b3b44 (diff)
ICE 3 V -> Velaro; actually distinguish between ICE T 411 / 415
Diffstat (limited to 'lib/Travel')
-rw-r--r--lib/Travel/Status/DE/DBWagenreihung.pm9
-rw-r--r--lib/Travel/Status/DE/DBWagenreihung/Wagon.pm2
2 files changed, 7 insertions, 4 deletions
diff --git a/lib/Travel/Status/DE/DBWagenreihung.pm b/lib/Travel/Status/DE/DBWagenreihung.pm
index 9b70f00..2d4d2fe 100644
--- a/lib/Travel/Status/DE/DBWagenreihung.pm
+++ b/lib/Travel/Status/DE/DBWagenreihung.pm
@@ -312,7 +312,7 @@ sub train_subtype {
'ICE 1' => 0,
'ICE 2' => 0,
'ICE 3' => 0,
- 'ICE 3 V' => 0,
+ 'ICE 3 Velaro' => 0,
'ICE 4' => 0,
'ICE T 411' => 0,
'ICE T 415' => 0,
@@ -346,8 +346,11 @@ sub train_subtype {
elsif ( $wagon->model == 412 or $wagon->model == 812 ) {
$ml{'ICE 4'}++;
}
- elsif ( $wagon->model == 411 or $wagon->model == 415 ) {
- $ml{'ICE T'}++;
+ elsif ( $wagon->model == 411 ) {
+ $ml{'ICE T 411'}++;
+ }
+ elsif ( $wagon->model == 415 ) {
+ $ml{'ICE T 415'}++;
}
elsif ( $wagon->model == 475 ) {
$ml{'TGV'}++;
diff --git a/lib/Travel/Status/DE/DBWagenreihung/Wagon.pm b/lib/Travel/Status/DE/DBWagenreihung/Wagon.pm
index 9be8ce5..f95d643 100644
--- a/lib/Travel/Status/DE/DBWagenreihung/Wagon.pm
+++ b/lib/Travel/Status/DE/DBWagenreihung/Wagon.pm
@@ -34,7 +34,7 @@ our %type_attributes = (
['has_family_area'], undef, ['has_bahn_comfort'], # 5 6 7
[ 'has_quiet_area', 'has_phone_area', 'has_bahn_comfort' ], undef # 8 9
],
- 'ICE 3 V' => [
+ 'ICE 3 Velaro' => [
['has_quiet_area'], undef, undef, ['has_family_area'], # 1 2 3 4
['has_bahn_comfort'], ['has_bahn_comfort'], undef, undef, # 5 6 (7) 8
[ 'has_quiet_area', 'has_phone_area' ] # 9