Skip to content

Commit

Permalink
Added War Department "Austerity Tank"
Browse files Browse the repository at this point in the history
  • Loading branch information
audigex committed Apr 15, 2024
1 parent a7fb838 commit 38da2a0
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 0 deletions.
Binary file modified docs/SpriteIDs.xlsx
Binary file not shown.
Binary file added gfx/Steam/WDAusterityTank.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions lang/english.lng
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,11 @@ str_LNERP2_usage :Express Passenger
str_LNERP2_eos :1934-1936
str_LNERP2_liveries :LNER Green

STR_NAME_WDTank :War Department 0-6-0 'Austerity Tank'
str_WDTank_usage :Low speed freight/shunting
str_WDTank_eos :1960
str_WDTank_liveries :Wartime Black

STR_NAME_Standard9F :BR Standard Class 9F
str_Standard9F_usage :Freight/Mixed Traffic
str_Standard9F_eos :1935
Expand Down
1 change: 1 addition & 0 deletions src/sortpurchase.pnml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ sort(FEAT_TRAINS, [
item_GNRA1,
item_LNERP2,
item_LNERA3,
item_WDTank,
item_Standard9F,
item_BR08,
item_BR13,
Expand Down
16 changes: 16 additions & 0 deletions src/trains/_spriteset/Steam_Sprites/WDAusterityTank.pnml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
spriteset(spriteset_WDTank_Purchase, "gfx/Steam/WDAusterityTank.png") {
template_purchase(0, 0)
}

spriteset(spriteset_WDTank_WartimeBlack, "gfx/Steam/WDAusterityTank.png") {
template_train20px(0, 13)
}

switch(FEAT_TRAINS,SELF, sw_WDTank,cargo_subtype){
0: spriteset_WDTank_WartimeBlack;
}

switch(FEAT_TRAINS,SELF,sw_WDTank_cargo_subtype_text,cargo_subtype){
0: return string(str_Wartime);
return CB_RESULT_NO_TEXT;
}
48 changes: 48 additions & 0 deletions src/trains/steam/WDAusterityTank.pnml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
item (FEAT_TRAINS, item_WDTank, 592) {
property {
name: string(STR_NAME_WDTank);
climates_available: ALL_CLIMATES;
introduction_date: date(1943,1,1);
model_life: 20;
retire_early: 1;
vehicle_life: 30;
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: 900 hp;
running_cost_base: RUNNING_COST_STEAM;
dual_headed: 0;
default_cargo_type: GOOD;
cargo_capacity: 1;
weight: 48 ton;
engine_class: ENGINE_CLASS_STEAM;
tractive_effort_coefficient: 0.3;
air_drag_coefficient: 0.1;
length: 6;
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_route_1),string(str_WDTank_usage),string(str_WDTank_eos),string(str_WDTank_liveries)));
can_attach_wagon: CB_RESULT_ATTACH_ALLOW;
cargo_capacity: return 0;
cargo_subtype_text: sw_WDTank_cargo_subtype_text;
default: sw_WDTank;
purchase: spriteset_WDTank_Purchase;
colour_mapping: return PALETTE_CC_FIRST;
create_effect: steam_create_visual_effect;
sound_effect: sw_steam_sound;
cost_factor: return(GetAdjustedCost(6));
running_cost_factor: return(GetAdjustedCost(6));
}
}

0 comments on commit 38da2a0

Please sign in to comment.