Skip to content

Commit

Permalink
Class 70 - added Freightliner Orange livery
Browse files Browse the repository at this point in the history
  • Loading branch information
audigex committed Oct 3, 2024
1 parent 3531762 commit 3748c24
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
- Improved Class 89 sprites
- Improved Class 68/88
- Added Harry Needle Orange livery for Class 37
- Added Freightliner Orange livery for Class 70
- Improved steam train naming conventions and consistency
- Fixed some animated pixels on HST rear power car
- Fixed some tram capacities
Expand Down
Binary file modified gfx/Diesel/70.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lang/english.lng
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ str_BR70OG_liveries :BR Green, BR Blue
STR_NAME_BR70 :BR Class 70 "Powerhaul"
str_BR70_usage :Heavy Freight
str_BR70_eos :---
str_BR70_liveries :Freightliner, Colas Rail
str_BR70_liveries :Freightliner Powerhaul, Colas Rail, Freightliner Orange

STR_NAME_BR71 :BR Class 71
str_BR71_usage :Mixed Traffic
Expand Down
10 changes: 8 additions & 2 deletions src/trains/diesel_loco/BR070.pnml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,28 @@ spriteset(spriteset_BR70_Purchase, "gfx/Diesel/70.png") {
template_purchase(0, 0)
}

spriteset(spriteset_BR70_Freightliner, "gfx/Diesel/70.png") {
spriteset(spriteset_BR70_FreightlinerPowerhaul, "gfx/Diesel/70.png") {
template_train32px(0, 13)
}

spriteset(spriteset_BR70_ColasRail, "gfx/Diesel/70.png") {
template_train32px(0, 39)
}

spriteset(spriteset_BR70_FreightlinerOrange, "gfx/Diesel/70.png") {
template_train32px(0, 65)
}

switch(FEAT_TRAINS,SELF, sw_BR70,cargo_subtype){
0: spriteset_BR70_Freightliner;
0: spriteset_BR70_FreightlinerPowerhaul;
1: spriteset_BR70_ColasRail;
2: spriteset_BR70_FreightlinerOrange;
}

switch(FEAT_TRAINS,SELF,sw_BR70_cargo_subtype_text,cargo_subtype){
0: return string(str_Freightliner);
1: return string(str_ColasRail);
2: return string(str_FreightlinerOrange);
return CB_RESULT_NO_TEXT;
}

Expand Down

0 comments on commit 3748c24

Please sign in to comment.