Skip to content

Commit

Permalink
Added GCR Robinson 50ft coach
Browse files Browse the repository at this point in the history
  • Loading branch information
audigex committed Sep 4, 2024
1 parent a1aae77 commit b995a98
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
- Added Class 93
- Added Class 99
- Added LNER Gresley 61 Ft 6 teak coach
- Added BR VGA and VKA vans
- Added GCR Robinson 50 ft mahogany coach
- Added BR VGA and VKA goods vans
- Adjusted EyeCandy engine to hopefully discourage AI use
- Reworked Southern Region CC Class (OG BR Class 70)
- Added a pile of liveries for Class 66
Expand Down
Binary file added gfx/Rolling Stock/GCR/GCR_Robinson_50_CLSO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion lang/english.lng
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ str_abbr_BR :BR
str_abbr_FR :FR
str_abbr_DRS :DRS
str_abbr_EMR :EMR
str_abbr_GCR :GCR
str_abbr_GWR :GWR
str_abbr_HNR :HNR
str_abbr_LNER :LNER
Expand All @@ -54,9 +55,10 @@ str_abbr_WMR :WMR
# Companies
str_comp_Avanti :Avanti West Coast
str_comp_BR :British Rail
str_comp_DRS :Direct Rail Services
str_comp_DRS :Direct Rail Services
str_comp_Furness :Furness Railway
str_comp_Freightliner :Freightliner
str_comp_GCR :Great Central Railway
str_comp_GWR :Great Western Railway
str_comp_HarryNeedle :Harry Needle Railroad
str_comp_Northern :Northern
Expand Down Expand Up @@ -86,6 +88,7 @@ str_col_BloodCustard :Blood and Custard
str_col_Teak :Teak
str_col_Orange :Orange
str_col_Grey :Grey
str_col_Mahogany :Mahogany

str_var_Named :Named
str_var_Olympics :Olympics
Expand Down Expand Up @@ -1477,6 +1480,9 @@ str_BR370_DTS_liveries :InterCity
STR_NAME_LMS_StanierP3_50BG :LMS Stanier Period 3 50 ft BG Coach
str_LMS_StanierP3_50BG_liveries :LMS Red

STR_NAME_GCR_Robinson_50_CLSO :GCR Robinson 50 ft Semi-Corridor Lavatory Composite
str_GCR_Robinson_50_CLSO_liveries :GCR Mahogany

STR_NAME_LNERTK :LNER Gresley Coach (Third Corridor)
str_LNERTK_liveries :GNR/LNER Teak, BR Maroon, BR Carmine and Cream

Expand Down
1 change: 1 addition & 0 deletions src/sortpurchase.pnml
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ header_CoveredVan,
item_BRVGA,
item_BRContainer,
item_RMTPO,
item_GCR_Robinson_50_CLSO,
item_LNERTK,
item_LNERBCK,
item_LNERPV,
Expand Down
51 changes: 51 additions & 0 deletions src/trains/rolling_stock/GCR/GCR_Robinson_50_CLSO.pnml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
spriteset(spriteset_GCR_Robinson_50_CLSO_Purchase, "gfx/Rolling Stock/GCR/GCR_Robinson_50_CLSO.png") {
template_purchase(0, 0)
}

spriteset(spriteset_GCR_Robinson_50_CLSO_Teak, "gfx/Rolling Stock/GCR/GCR_Robinson_50_CLSO.png") {
template_train24px(0, 13)
}

switch(FEAT_TRAINS,SELF, sw_GCR_Robinson_50_CLSO,cargo_subtype){
0: spriteset_GCR_Robinson_50_CLSO_Teak;
}

switch(FEAT_TRAINS,SELF,sw_GCR_Robinson_50_CLSO_cargo_subtype_text,cargo_subtype){
0: return string(STR_LIVERY, string(str_abbr_GCR), string(str_col_Mahogany));
return CB_RESULT_NO_TEXT;
}

item (FEAT_TRAINS, item_GCR_Robinson_50_CLSO, 702) {
property {
name: string(STR_NAME_GCR_Robinson_50_CLSO);
climates_available: ALL_CLIMATES;
introduction_date: date(1903,1,1);
model_life: 10;
vehicle_life: 50;
cargo_allow_refit: [PASS];
loading_speed: 8;
cost_factor: 1;
running_cost_factor: 1;
power: 0;
sprite_id: SPRITE_ID_NEW_TRAIN;
speed: 60 mph;
refit_cost: 0;
running_cost_base: RUNNING_COST_STEAM;
default_cargo_type: PASS;
cargo_capacity: 1;
weight: 30 ton;
length: 6;
bitmask_vehicle_info: 0;
}
graphics {
additional_text: return(string(str_purchase_coach,string(str_GCR_Robinson_50_CLSO_liveries)));
can_attach_wagon: CB_RESULT_ATTACH_ALLOW;
cargo_subtype_text: sw_GCR_Robinson_50_CLSO_cargo_subtype_text;
default: sw_GCR_Robinson_50_CLSO;
purchase: spriteset_GCR_Robinson_50_CLSO_Purchase;
colour_mapping: return PALETTE_CC_FIRST;
cargo_capacity: return(40 * param_pax);
cost_factor: return(GetAdjustedCost(27));
running_cost_factor: return(GetAdjustedCost(29));
}
}

0 comments on commit b995a98

Please sign in to comment.