Skip to content

Commit

Permalink
Changed random lumber wagon to Furness Railway to complete an early F…
Browse files Browse the repository at this point in the history
…R freight setup
  • Loading branch information
audigex committed Jul 25, 2024
1 parent 921b184 commit 9ea9c59
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
Binary file added gfx/Freight/Furness_Lumber_Wagon_Small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed gfx/Freight/Lumber_Wagon_Small.png
Binary file not shown.
8 changes: 4 additions & 4 deletions lang/english.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1122,10 +1122,10 @@ str_BRContainer_usage :Misc. Cargo
str_BRContainer_eos :---
str_BRContainer_liveries :Maersk, Tesco, Random

STR_NAME_SmallLumberWagon :Midland Railway Small Lumber Wagon
str_SmallLumberWagon_usage :Wood
str_SmallLumberWagon_eos :---
str_SmallLumberWagon_liveries :Green
STR_NAME_FurnessLumberWagon :Furness Railway Small Lumber Wagon
str_FurnessLumberWagon_usage :Wood
str_FurnessLumberWagon_eos :---
str_FurnessLumberWagon_liveries :Green

STR_NAME_BRMk1FO :BR Mark 1 Coach (First Open)
str_BRMk1FO_liveries :BR Carmine and Cream, BR Chocolate and Cream, BR Malachite Green, BR Maroon, BR Blue & Grey
Expand Down
2 changes: 1 addition & 1 deletion src/sortpurchase.pnml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ sort(FEAT_TRAINS, [
item_FurnessGoodsVan,
item_FurnessTankWagon,
item_Furness20TonHopper,
item_SmallLumberWagon,
item_FurnessLumberWagon,
item_RS_SWB_Hopper,
item_BRHHA,
item_BRTTA,
Expand Down
26 changes: 13 additions & 13 deletions src/trains/rollingstock/BRSmallLumberWagon.pnml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
spriteset(spriteset_SmallLumberWagon, "gfx/Freight/Lumber_Wagon_Small.png") {
spriteset(spriteset_FurnessLumberWagon, "gfx/Freight/Furness_Lumber_Wagon_Small.png") {
template_purchase(0, 0)
}

spriteset(spriteset_SmallLumberWagon_Empty, "gfx/Freight/Lumber_Wagon_Small.png") {
spriteset(spriteset_FurnessLumberWagon_Empty, "gfx/Freight/Furness_Lumber_Wagon_Small.png") {
template_train20px(0, 13)
}

spriteset(spriteset_SmallLumberWagon_Half, "gfx/Freight/Lumber_Wagon_Small.png") {
spriteset(spriteset_FurnessLumberWagon_Half, "gfx/Freight/Furness_Lumber_Wagon_Small.png") {
template_train20px(0, 33)
}

spriteset(spriteset_SmallLumberWagon_Full, "gfx/Freight/Lumber_Wagon_Small.png") {
spriteset(spriteset_FurnessLumberWagon_Full, "gfx/Freight/Furness_Lumber_Wagon_Small.png") {
template_train20px(0, 53)
}

// Called first, display an empty container if near empty, otherwise display based on percentage full
switch(FEAT_TRAINS,SELF, sw_SmallLumberWagon_Cargo, cargo_count){
0 .. 19: spriteset_SmallLumberWagon_Empty;
20 .. 75: spriteset_SmallLumberWagon_Half;
spriteset_SmallLumberWagon_Full;
switch(FEAT_TRAINS,SELF, sw_FurnessLumberWagon_Cargo, cargo_count){
0 .. 19: spriteset_FurnessLumberWagon_Empty;
20 .. 75: spriteset_FurnessLumberWagon_Half;
spriteset_FurnessLumberWagon_Full;
}

item (FEAT_TRAINS, item_SmallLumberWagon, 582) {
item (FEAT_TRAINS, item_FurnessLumberWagon, 582) {
property {
name: string(STR_NAME_SmallLumberWagon);
name: string(STR_NAME_FurnessLumberWagon);
climates_available: ALL_CLIMATES;
introduction_date: date(1840,1,1);
model_life: 50;
Expand All @@ -44,10 +44,10 @@ item (FEAT_TRAINS, item_SmallLumberWagon, 582) {
bitmask_vehicle_info: 0;
}
graphics {
additional_text: return(string(str_purchase_coach,string(str_SmallLumberWagon_liveries)));
additional_text: return(string(str_purchase_coach,string(str_FurnessLumberWagon_liveries)));
can_attach_wagon: CB_RESULT_ATTACH_ALLOW;
default: sw_SmallLumberWagon_Cargo;
purchase: spriteset_SmallLumberWagon;
default: sw_FurnessLumberWagon_Cargo;
purchase: spriteset_FurnessLumberWagon;
colour_mapping: return PALETTE_CC_FIRST;
cost_factor: return(GetAdjustedCost(20));
running_cost_factor: return(GetAdjustedCost(12));
Expand Down

0 comments on commit 9ea9c59

Please sign in to comment.