Skip to content

Commit

Permalink
Added LMS Stanier P3 50ft coach
Browse files Browse the repository at this point in the history
  • Loading branch information
audigex committed Jul 23, 2024
1 parent 1913397 commit 0d86684
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 1 deletion.
Binary file modified docs/SpriteIDs.xlsx
Binary file not shown.
3 changes: 2 additions & 1 deletion docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
# v2.12
- Added LMS Black 5
- Added LMS Jubilee
- Added GWR Dean Goods
- Added Southern Railway Z-Class
- Added GER L77 (LNER N7)
- GWR Dean Goods
- Added LSWR Adams Radial Tank
- Added LMS Stanier P3 coach
- Added Furness Railway Rectangular Tanker Wagon
- Added Furness Railway 20-ton Hopper Wagon
- Added AnsaldoBreda T-68 (Manchester Metrolink tram)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions lang/english.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1289,6 +1289,9 @@ str_370_NDM_liveries :InterCity
STR_NAME_370_DTS :BR Class 370 Driving Trailer Standard
str_BR370_DTS_liveries :InterCity

STR_NAME_LMS_StanierP3 :LMS Stanier P3 50ft BG coach
str_LMS_StanierP3_liveries :LMS Red

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 @@ -243,6 +243,7 @@ sort(FEAT_TRAINS, [
item_BRTTA,
item_BRContainer,
item_RMTPO,
item_LMS_StanierP3,
item_LNERTK,
item_LNERBCK,
item_LNERPV,
Expand Down
50 changes: 50 additions & 0 deletions src/trains/rollingstock/LMS_StanierP3.pnml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
spriteset(spriteset_LMS_StanierP3_Purchase, "gfx/Rolling Stock/LMS/LMS_Stanier_P3_50ft_BG.png") {
template_purchase(0, 0)
}

spriteset(spriteset_LMS_StanierP3_Teak, "gfx/Rolling Stock/LMS/LMS_Stanier_P3_50ft_BG.png") {
template_train24px(0, 13)
}

switch(FEAT_TRAINS,SELF, sw_LMS_StanierP3,cargo_subtype){
0: spriteset_LMS_StanierP3_Teak;
}

switch(FEAT_TRAINS,SELF,sw_LMS_StanierP3_cargo_subtype_text,cargo_subtype){
0: return string(str_LMSRed);
return CB_RESULT_NO_TEXT;
}

item (FEAT_TRAINS, item_LMS_StanierP3, 668) {
property {
name: string(STR_NAME_LMS_StanierP3);
climates_available: ALL_CLIMATES;
introduction_date: date(1933,4,1);
model_life: 30;
cargo_allow_refit: [PASS];
loading_speed: 12;
cost_factor: 15;
running_cost_factor: 7;
power: 0;
sprite_id: SPRITE_ID_NEW_TRAIN;
speed: 90 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_LMS_StanierP3_liveries)));
can_attach_wagon: CB_RESULT_ATTACH_ALLOW;
cargo_subtype_text: sw_LMS_StanierP3_cargo_subtype_text;
default: sw_LMS_StanierP3;
purchase: spriteset_LMS_StanierP3_Purchase;
colour_mapping: return PALETTE_CC_FIRST;
cargo_capacity: return(50 * param_pax);
cost_factor: return(GetAdjustedCost(15));
running_cost_factor: return(GetAdjustedCost(7));
}
}

0 comments on commit 0d86684

Please sign in to comment.