Skip to content

Commit

Permalink
Gresley 6ft6 Teak coach - added liveries and adjusted capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
audigex committed Aug 25, 2024
1 parent 6610a7c commit 0952402
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
Binary file modified gfx/Rolling Stock/LNER/LNER_Gresley_61ft6in_TK.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lang/english.lng
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ str_col_Desert :Desert Sands
str_col_GoldenOchre :Golden Ochre
str_col_Maroon :Maroon
str_col_BloodCustard :Blood and Custard
str_col_Teak :Teak

str_var_Named :Named
str_var_Olympics :Olympics
Expand Down
22 changes: 17 additions & 5 deletions src/trains/rolling_stock/LNER/LNER_Gresley_616TK.pnml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,26 @@ spriteset(spriteset_LNER_Gresley_616TK_BloodCustard, "gfx/Rolling Stock/LNER/LNE
template_train32px(0, 39)
}

spriteset(spriteset_LNER_Gresley_616TK_BRMaroon, "gfx/Rolling Stock/LNER/LNER_Gresley_61ft6in_TK.png") {
template_train32px(0, 65)
}

spriteset(spriteset_LNER_Gresley_616TK_BRBlue, "gfx/Rolling Stock/LNER/LNER_Gresley_61ft6in_TK.png") {
template_train32px(0, 91)
}

switch(FEAT_TRAINS,SELF, sw_LNER_Gresley_616TK,cargo_subtype){
0: spriteset_LNER_Gresley_616TK_Teak;
1: spriteset_LNER_Gresley_616TK_BloodCustard;
2: spriteset_LNER_Gresley_616TK_BRMaroon;
3: spriteset_LNER_Gresley_616TK_BRBlue;
}

switch(FEAT_TRAINS,SELF,sw_LNER_Gresley_616TK_cargo_subtype_text,cargo_subtype){
0: return string(str_LNERTeak);
0: return string(STR_LIVERY, string(str_abbr_LNER), string(str_col_Teak));
1: return string(STR_LIVERY, string(str_abbr_LNER), string(str_col_BloodCustard));
2: return string(STR_LIVERY, string(str_abbr_BR), string(str_col_Maroon));
3: return string(STR_LIVERY, string(str_abbr_BR), string(str_col_Blue));
return CB_RESULT_NO_TEXT;
}

Expand All @@ -38,7 +50,7 @@ item (FEAT_TRAINS, item_LNER_Gresley_616TK, 693) {
running_cost_base: RUNNING_COST_STEAM;
default_cargo_type: PASS;
cargo_capacity: 1;
weight: 34 ton;
weight: 38 ton;
length: 8;
bitmask_vehicle_info: 0;
}
Expand All @@ -49,8 +61,8 @@ item (FEAT_TRAINS, item_LNER_Gresley_616TK, 693) {
default: sw_LNER_Gresley_616TK;
purchase: spriteset_LNER_Gresley_616TK_Purchase;
colour_mapping: return PALETTE_CC_FIRST;
cargo_capacity: return(35 * param_pax);
cost_factor: return(GetAdjustedCost(27));
running_cost_factor: return(GetAdjustedCost(28));
cargo_capacity: return(48 * param_pax);
cost_factor: return(GetAdjustedCost(30));
running_cost_factor: return(GetAdjustedCost(31));
}
}

0 comments on commit 0952402

Please sign in to comment.