Skip to content

Commit

Permalink
Change: set tail light for Autocoach
Browse files Browse the repository at this point in the history
  • Loading branch information
andythenorth committed Mar 24, 2024
1 parent de873af commit 3bda89b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file added src/graphics/tail_lights/railcar_20px_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/templates/tail_lights.pynml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</tal:auto_lengths>

<tal:engine_consists repeat="engine [('hst_32px_1', 8), ('metro_32px_1', 8), ('metro_32px_2', 8), ('metro_32px_3', 8),
('railcar_20px_1', 5), ('railcar_20px_2', 5), ('railcar_20px_3', 5),
('railcar_20px_1', 5), ('railcar_20px_2', 5), ('railcar_20px_3', 5), ('railcar_20px_4', 5),
('railcar_24px_1', 6),
('railcar_32px_1', 8), ('railcar_32px_2', 8), ('railcar_32px_3', 8), ('railcar_32px_4', 8), ('railcar_32px_5', 8), ('railcar_32px_6', 8),
('very_high_speed_32px_1', 8), ('very_high_speed_32px_2', 8), ('very_high_speed_32px_3', 8)]">
Expand Down Expand Up @@ -62,7 +62,7 @@ switch (FEAT_TRAINS, SELF, switch_graphics_tail_light, position_in_consist_from_
return 2;
}

<tal:tail_lights repeat="tail_light ['empty', '8px', '12px', '16px', '20px', '24px', '32px', 'hst_32px_1', 'metro_32px_1', 'metro_32px_2', 'metro_32px_3', 'railcar_20px_1', 'railcar_20px_2', 'railcar_20px_3', 'railcar_24px_1', 'railcar_32px_1', 'railcar_32px_2', 'railcar_32px_3', 'railcar_32px_4', 'railcar_32px_5', 'railcar_32px_6', 'very_high_speed_32px_1', 'very_high_speed_32px_2', 'very_high_speed_32px_3']">
<tal:tail_lights repeat="tail_light ['empty', '8px', '12px', '16px', '20px', '24px', '32px', 'hst_32px_1', 'metro_32px_1', 'metro_32px_2', 'metro_32px_3', 'railcar_20px_1', 'railcar_20px_2', 'railcar_20px_3', 'railcar_20px_4', 'railcar_24px_1', 'railcar_32px_1', 'railcar_32px_2', 'railcar_32px_3', 'railcar_32px_4', 'railcar_32px_5', 'railcar_32px_6', 'very_high_speed_32px_1', 'very_high_speed_32px_2', 'very_high_speed_32px_3']">
switch (FEAT_TRAINS, SELF, switch_graphics_layer_tail_light_${tail_light}, [
STORE_TEMP(PALETTE_USE_DEFAULT, 0x100),
switch_graphics_tail_light()
Expand Down
2 changes: 2 additions & 0 deletions src/vehicles/pony/auto_coach_pony_gen_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ def main(roster_id, **kwargs):
type=AutoCoachCombineUnitMail,
weight=16, # capacity bonus vs similar era non-articulated vehicles
chassis="empty_20px",
tail_light="railcar_20px_4",
)

consist.add_unit(
type=AutoCoachCombineUnitPax,
weight=16, # capacity bonus vs similar era non-articulated vehicles
chassis="empty_20px",
tail_light="railcar_20px_4",
)

consist.description = (
Expand Down

0 comments on commit 3bda89b

Please sign in to comment.