diff --git a/docs/SpriteIDs.xlsx b/docs/SpriteIDs.xlsx index 5a173650..185a9726 100644 Binary files a/docs/SpriteIDs.xlsx and b/docs/SpriteIDs.xlsx differ diff --git a/docs/changelog.txt b/docs/changelog.txt index d35d1a69..bfd95112 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -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) diff --git a/gfx/Rolling Stock/LMS/LMS_Stanier_P3_50ft_BG.png b/gfx/Rolling Stock/LMS/LMS_Stanier_P3_50ft_BG.png new file mode 100644 index 00000000..d6641165 Binary files /dev/null and b/gfx/Rolling Stock/LMS/LMS_Stanier_P3_50ft_BG.png differ diff --git a/lang/english.lng b/lang/english.lng index 8b15ce5b..66571e90 100644 --- a/lang/english.lng +++ b/lang/english.lng @@ -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 diff --git a/src/sortpurchase.pnml b/src/sortpurchase.pnml index d8a56d88..d427fb3c 100644 --- a/src/sortpurchase.pnml +++ b/src/sortpurchase.pnml @@ -243,6 +243,7 @@ sort(FEAT_TRAINS, [ item_BRTTA, item_BRContainer, item_RMTPO, + item_LMS_StanierP3, item_LNERTK, item_LNERBCK, item_LNERPV, diff --git a/src/trains/rollingstock/LMS_StanierP3.pnml b/src/trains/rollingstock/LMS_StanierP3.pnml new file mode 100644 index 00000000..70a66d5a --- /dev/null +++ b/src/trains/rollingstock/LMS_StanierP3.pnml @@ -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)); +} +}