Skip to content

Commit

Permalink
Added LNER J70/GER C53
Browse files Browse the repository at this point in the history
  • Loading branch information
audigex committed Aug 9, 2024
1 parent 5c10712 commit 7605abb
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 0 deletions.
Binary file modified docs/SpriteIDs.xlsx
Binary file not shown.
Binary file added gfx/Steam/LNER_J70.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions lang/english.lng
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,12 @@ str_StephensonPlanet_usage :Mixed Traffic
str_StephensonPlanet_eos :1830
str_StephensonPlanet_liveries :Teak


STR_NAME_LNER_J70 :GER 0-6-0T "C53" (LNER "J70") Tank
str_LNER_J70_usage :Light freight and shunting
str_LNER_J70_eos :1903-1921
str_LNER_J70_liveries :GER/LNER Teak

STR_NAME_Coppernob :Furness Railway 0-4-0 "Coppernob"
str_Coppernob_usage :Mixed Traffic
str_Coppernob_eos :1848
Expand Down
1 change: 1 addition & 0 deletions src/sortpurchase.pnml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ sort(FEAT_TRAINS, [
item_Coppernob,
item_CaledonianSingle,
item_FurnessK2,
item_LNER_J70,
item_LNWRWebb,
item_LSWR_AdamsRadial,
item_SRZClass,
Expand Down
16 changes: 16 additions & 0 deletions src/trains/_spriteset/Steam_Sprites/LNER_J70.pnml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
spriteset(spriteset_LNER_J70_Purchase, "gfx/Steam/LNER_J70.png") {
template_purchase(0, 0)
}

spriteset(spriteset_LNER_J70_LNERTeak, "gfx/Steam/LNER_J70.png") {
template_train16px(0, 13)
}

switch(FEAT_TRAINS,SELF, sw_LNER_J70,cargo_subtype){
0: spriteset_LNER_J70_LNERTeak;
}

switch(FEAT_TRAINS,SELF,sw_LNER_J70_cargo_subtype_text,cargo_subtype){
0: return string(str_LNERTeak);
return CB_RESULT_NO_TEXT;
}
48 changes: 48 additions & 0 deletions src/trains/steam/LNER/LNER_J70.pnml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
item (FEAT_TRAINS, item_LNER_J70, 688) {
property {
name: string(STR_NAME_LNER_J70);
climates_available: ALL_CLIMATES;
introduction_date: date(1903,1,1);
model_life: 18;
retire_early: 1;
vehicle_life: 25;
reliability_decay: 7;
refittable_cargo_classes: 0;
cargo_allow_refit: [GOOD, FOOD];
loading_speed: 3;
cost_factor: 6;
running_cost_factor: 6;
sprite_id: SPRITE_ID_NEW_TRAIN;
speed: 30 mph;
misc_flags: TRAIN_FLAG_NO_BREAKDOWN_SMOKE;
refit_cost: 0;
track_type: RAIL;
ai_special_flag: AI_FLAG_CARGO;
power: 200 hp;
running_cost_base: RUNNING_COST_STEAM;
dual_headed: 0;
default_cargo_type: GOOD;
cargo_capacity: 1;
weight: 27 ton;
engine_class: ENGINE_CLASS_STEAM;
tractive_effort_coefficient: 0.148;
air_drag_coefficient: 0.1;
length: 4;
effect_spawn_model_and_powered: EFFECT_SPAWN_MODEL_STEAM;
extra_weight_per_wagon: 0;
bitmask_vehicle_info: 0;
}
graphics {
additional_text: return(string(str_purchase_loco_with_liveries,string(str_purchase_type_steam),string(str_LNER_J70_usage),string(str_LNER_J70_eos),string(str_LNER_J70_liveries)));
can_attach_wagon: CB_RESULT_ATTACH_ALLOW;
cargo_capacity: return 0;
cargo_subtype_text: sw_LNER_J70_cargo_subtype_text;
default: sw_LNER_J70;
purchase: spriteset_LNER_J70_Purchase;
colour_mapping: return PALETTE_CC_FIRST;
create_effect: steam_create_visual_effect;
sound_effect: sw_steam_sound;
cost_factor: return(GetAdjustedCost(4));
running_cost_factor: return(GetAdjustedCost(3));
}
}

0 comments on commit 7605abb

Please sign in to comment.