Skip to content

Commit

Permalink
Added Gresley 61ft6 BCK coach
Browse files Browse the repository at this point in the history
  • Loading branch information
audigex committed Sep 5, 2024
1 parent b995a98 commit c0afdec
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 4 deletions.
Binary file modified docs/SpriteIDs.xlsx
Binary file not shown.
5 changes: 3 additions & 2 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
- Conflat A (needs coding)
- Conflat B (needs coding)
- Class 59 (code liveries and add to lang file)
- LNER Gresley BCK
- Coronation Coaches
- More LNER Black 5 and Jubilee liveries
- GWR Great Bear and Hall class rework
- LMS 0-10-0 "Big Bertha" (needs coding)

# v2.13
- Added LNER J70
Expand All @@ -18,7 +18,8 @@
- Added Class 68 + Mk3 rake
- Added Class 93
- Added Class 99
- Added LNER Gresley 61 Ft 6 teak coach
- Added LNER Gresley 61 Ft 6 TK teak coach
- Added LNER Gresley 61 Ft 6 BCK teak coach
- Added GCR Robinson 50 ft mahogany coach
- Added BR VGA and VKA goods vans
- Adjusted EyeCandy engine to hopefully discourage AI use
Expand Down
7 changes: 5 additions & 2 deletions lang/english.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1492,8 +1492,11 @@ str_LNERPV_liveries :GNR/LNER Teak, BR Maroon, BR Carmine and Cream
STR_NAME_LNERBG :LNER Gresley Full Brake Van
str_LNERBG_liveries :GNR/LNER Teak, BR Maroon, BR Carmine and Cream

STR_NAME_LNER_Gresley_616TK :LNER Gresley 61' 6" TK
str_LNER_Gresley_616TK_liveries :LNER "Teak", LNER "Blood and Custard"
STR_NAME_LNER_Gresley_616TK :LNER Gresley 61' 6" TK
str_LNER_Gresley_616TK_liveries :LNER "Teak", LNER "Blood and Custard", BR Maroon, BR Blue

STR_NAME_LNER_Gresley_616BCK :LNER Gresley 61' 6" BCK
str_LNER_Gresley_616BCK_liveries :LNER "Teak", LNER "Blood and Custard", BR Maroon, BR Blue

STR_NAME_LNER_Thompson_61FK :LNER Thompson 61' TK
str_LNER_Thompson_61FK_liveries :LNER "Teak"
Expand Down
1 change: 1 addition & 0 deletions src/sortpurchase.pnml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ item_LNERPV,
item_LNERBG,
item_LMS_StanierP3_50BG,
item_LNER_Gresley_616TK,
item_LNER_Gresley_616BCK,
item_LNER_Thompson_61FK,
item_LNER_Thompson_63TK,
header_BRMk1,
Expand Down
69 changes: 69 additions & 0 deletions src/trains/rolling_stock/LNER/LNER_Gresley_616BCK.pnml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
spriteset(spriteset_LNER_Gresley_616BCK_Purchase, "gfx/Rolling Stock/LNER/LNER_Gresley_61ft6in_BCK.png") {
template_purchase(0, 0)
}

spriteset(spriteset_LNER_Gresley_616BCK_Teak, "gfx/Rolling Stock/LNER/LNER_Gresley_61ft6in_BCK.png") {
template_train32px(0, 13)
}

spriteset(spriteset_LNER_Gresley_616BCK_BloodCustard, "gfx/Rolling Stock/LNER/LNER_Gresley_61ft6in_BCK.png") {
template_train32px(0, 39)
}

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

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

switch(FEAT_TRAINS,SELF, sw_LNER_Gresley_616BCK,cargo_subtype){
0: spriteset_LNER_Gresley_616BCK_Teak;
1: spriteset_LNER_Gresley_616BCK_BloodCustard;
2: spriteset_LNER_Gresley_616BCK_BRMaroon;
3: spriteset_LNER_Gresley_616BCK_BRBlue;
}

switch(FEAT_TRAINS,SELF,sw_LNER_Gresley_616BCK_cargo_subtype_text,cargo_subtype){
0: return string(STR_LIVERY, string(str_abbr_LNER), string(str_col_Teak));
1: return string(STR_LIVERY, string(str_abbr_BR), 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;
}

// Diagram 31/134/175 BCK
item (FEAT_TRAINS, item_LNER_Gresley_616BCK, 702) {
property {
name: string(STR_NAME_LNER_Gresley_616BCK);
climates_available: ALL_CLIMATES;
introduction_date: date(1926,1,1);
model_life: 25;
cargo_allow_refit: [PASS];
loading_speed: 10;
cost_factor: 1;
running_cost_factor: 1;
power: 0;
sprite_id: SPRITE_ID_NEW_TRAIN;
speed: 100 mph;
refit_cost: 0;
running_cost_base: RUNNING_COST_STEAM;
default_cargo_type: PASS;
cargo_capacity: 1;
weight: 38 ton;
length: 8;
bitmask_vehicle_info: 0;
}
graphics {
additional_text: return(string(str_purchase_coach,string(str_LNER_Gresley_616BCK_liveries)));
can_attach_wagon: CB_RESULT_ATTACH_ALLOW;
cargo_subtype_text: sw_LNER_Gresley_616BCK_cargo_subtype_text;
default: sw_LNER_Gresley_616BCK;
purchase: spriteset_LNER_Gresley_616BCK_Purchase;
colour_mapping: return PALETTE_CC_FIRST;
cargo_capacity: return(36 * param_pax);
cost_factor: return(GetAdjustedCost(30));
running_cost_factor: return(GetAdjustedCost(31));
}
}

0 comments on commit c0afdec

Please sign in to comment.