From d0b22a371bdd4e8f09df8ba63c6206208c244c86 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sun, 30 Jun 2019 21:26:41 +0000 Subject: [PATCH] Use Composer's PSR-0 autoloader --- lib/vehicle_types.php | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/lib/vehicle_types.php b/lib/vehicle_types.php index 0c7092a..63b42c8 100644 --- a/lib/vehicle_types.php +++ b/lib/vehicle_types.php @@ -11,9 +11,16 @@ ]; } } - return []; + return [ + 'num' => '??'.$id, + 'type' => '?', + 'low' => NULL, + ]; } function numToTypeT($id) { + if((int)$id == 250) { + $id = 410; + } $data = <<<'END' 101 107 HW E1 0 108 113 RW E1 0 @@ -36,16 +43,16 @@ 160 174 HW E1 0 201 245 RZ 105N 0 246 299 HZ 105N 0 -301 312 RF GT8S 0 +301 310 RF GT8S 0 +311 311 RF GT8N 1 +312 312 RF GT8S 0 313 313 RF GT8C 1 -314 322 RF GT8S 0 -323 323 RF GT8N 1 -324 324 RF GT8S 0 -325 328 RF GT8N 1 +314 317 RF GT8S 0 +318 329 RF GT8N 1 401 440 HL EU8N 1 -451 456 HK N8C-NF 0 +451 456 HK N8C-NF 1 457 461 HK N8S-NF 1 -462 462 HK N8C-NF 0 +462 462 HK N8C-NF 1 601 614 RP NGT6 (1) 2 615 626 RP NGT6 (2) 2 627 650 RP NGT6 (3) 2 -- Gitblit v1.9.1