-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Bombardier (Metrolink) M5000 tram and updated changelog
- Loading branch information
Showing
6 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
switch(FEAT_ROADVEHS,SELF, sw_TRAM_M5000_Metrolink, position_in_articulated_veh % 2){ | ||
0:spriteset_M5000_front_Metrolink; | ||
1:spriteset_M5000_rear_Metrolink; | ||
} | ||
|
||
switch(FEAT_ROADVEHS,SELF, sw_TRAM_M5000,cargo_subtype){ | ||
0: sw_TRAM_M5000_Metrolink; | ||
} | ||
|
||
switch (FEAT_ROADVEHS, SELF, switch_articulated_TRAM_M5000, extra_callback_info1) { | ||
1: return item_TRAM_M5000; | ||
return CB_RESULT_NO_MORE_ARTICULATED_PARTS; //stop adding vehicle parts | ||
} | ||
|
||
switch(FEAT_ROADVEHS,SELF,sw_TRAM_M5000_cargo_subtype_text,cargo_subtype){ | ||
0: return string(str_MetrolinkYellow); | ||
return CB_RESULT_NO_TEXT; | ||
} | ||
|
||
|
||
item (FEAT_ROADVEHS, item_TRAM_M5000, 637) { | ||
property { | ||
misc_flags: bitmask(ROADVEH_FLAG_TRAM); | ||
name: string(STR_NAME_M5000); | ||
climates_available: ALL_CLIMATES; | ||
introduction_date: date(2007,4,1); | ||
model_life: VEHICLE_NEVER_EXPIRES; | ||
retire_early: 1; | ||
vehicle_life: 50; | ||
reliability_decay: 7; | ||
refittable_cargo_classes: CC_PASSENGERS; | ||
cargo_allow_refit: [PASS, TOUR]; | ||
loading_speed: 29; | ||
cost_factor: 20; | ||
running_cost_factor: 18; | ||
sprite_id: SPRITE_ID_NEW_TRAIN; | ||
speed: 50 mph; | ||
refit_cost: 0; | ||
power: 640 hp; | ||
running_cost_base: RUNNING_COST_ROADVEH; | ||
default_cargo_type: PASS; | ||
cargo_capacity: 200; | ||
weight: 1 ton; | ||
tractive_effort_coefficient: 0.08; | ||
air_drag_coefficient: 0.05; | ||
length: 5; | ||
cargo_age_period: 185; | ||
} | ||
graphics { | ||
cargo_subtype_text: sw_TRAM_M5000_cargo_subtype_text; | ||
articulated_part: switch_articulated_TRAM_M5000; | ||
default: sw_TRAM_M5000; | ||
purchase: spriteset_M5000_purchase; | ||
colour_mapping: return PALETTE_CC_FIRST; | ||
cargo_capacity: return(200 * param_pax); | ||
cost_factor: return(GetAdjustedCostTRAM(20)); | ||
running_cost_factor: return(GetAdjustedCostTRAM(18)); | ||
weight: 80; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
spriteset (spriteset_M5000_purchase, "gfx/Tram/Metrolink_M5000.png") { | ||
template_purchase(0,0) | ||
} | ||
|
||
spriteset (spriteset_M5000_front_Metrolink, "gfx/Tram/Metrolink_M5000.png") { | ||
template_train20px(0, 13) | ||
} | ||
spriteset (spriteset_M5000_rear_Metrolink, "gfx/Tram/Metrolink_M5000.png") { | ||
template_train20px(0, 33) | ||
} |