-
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 separate purchasable Mk5a Coach and DVT
- Loading branch information
Showing
10 changed files
with
134 additions
and
6 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
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,25 @@ | ||
spriteset(spriteset_BRMk5DVT_purchase, "gfx/Rolling Stock/Mk5a.png") { | ||
template_purchase(0, 0) | ||
} | ||
|
||
// Show own graphics when facing forward | ||
// WARNING: If editing this, also edit PushPull.pnml in the Spritesets folder | ||
switch(FEAT_TRAINS,SELF, sw_BRMk5DVT,cargo_subtype){ | ||
0: spriteset_br5a_dvt; | ||
} | ||
|
||
// If the front of this consist is a compatible locomotive, call that locomotive's remote sprite call switch | ||
switch(FEAT_TRAINS, PARENT, sw_BRMk5DVT_PushPUll, [STORE_TEMP(0 - position_in_articulated_veh, 0x10F), var[0x61, 0, 0x0000FFFF, 0xC6]]) { | ||
196: sw_PUSHPULL_DVTasBR68; // Class 68 | ||
sw_BRMk5DVT; // No compatible locomotive found, show normal sprites | ||
} | ||
|
||
switch(FEAT_TRAINS, SELF,sw_BRMk5DVT_CheckPosition, position_in_articulated_veh_from_end){ | ||
0: sw_BRMk5DVT_PushPUll; // Attempt push pull | ||
sw_BRMk5DVT; // We aren't at the back of theconsist, show normal sprites | ||
} | ||
|
||
switch(FEAT_TRAINS,PARENT,sw_BRMk5DVT_Sprites ,vehicle_is_reversed){ | ||
0: sw_BRMk5DVT; // We're heading foward, show normal sprites | ||
1: sw_BRMk5DVT_CheckPosition; // Attempt push pull (skipping check position for now for testing) | ||
} |
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,38 @@ | ||
item (FEAT_TRAINS, item_BRMk5DVT, 596) { | ||
property { | ||
name: string(STR_NAME_BRMk5DVT); | ||
climates_available: ALL_CLIMATES; | ||
refittable_cargo_classes: CC_PASSENGERS; | ||
introduction_date: date(1989,1,1); | ||
cargo_allow_refit: [PASS, TOUR]; | ||
loading_speed: 14; | ||
cost_factor: 30; | ||
running_cost_factor: 12; | ||
sprite_id: SPRITE_ID_NEW_TRAIN; | ||
refit_cost: 0; | ||
track_type: RAIL; | ||
speed: 125 mph; | ||
power: 0; | ||
running_cost_base: RUNNING_COST_STEAM; | ||
dual_headed: 0; | ||
default_cargo_type: PASS; | ||
cargo_capacity: 60; | ||
weight: 43 ton; | ||
tractive_effort_coefficient: 0; | ||
air_drag_coefficient: 0; | ||
length: 8; | ||
effect_spawn_model_and_powered: EFFECT_SPAWN_MODEL_NONE; | ||
extra_weight_per_wagon: 0; | ||
bitmask_vehicle_info: 0; | ||
cargo_age_period: 185; | ||
} | ||
graphics { | ||
can_attach_wagon: CB_RESULT_ATTACH_ALLOW; | ||
default: sw_BRMk5DVT_Sprites; | ||
colour_mapping: return PALETTE_CC_FIRST; | ||
purchase: spriteset_BRMk5DVT_purchase; | ||
cargo_capacity: return(60 * param_pax); | ||
cost_factor: return(GetAdjustedCost(30)); | ||
running_cost_factor: return(GetAdjustedCost(17)); | ||
} | ||
} |
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,42 @@ | ||
spriteset(spriteset_BRMk5a_purchase, "gfx/Rolling Stock/Mk5a.png") { | ||
template_purchase(88, 0) | ||
} | ||
|
||
item (FEAT_TRAINS, item_BRMk5a, 545) { | ||
property { | ||
name: string(STR_NAME_BRMk5a); | ||
climates_available: ALL_CLIMATES; | ||
refittable_cargo_classes: CC_PASSENGERS; | ||
introduction_date: date(2019, 08, 04); | ||
cargo_allow_refit: [PASS, TOUR]; | ||
loading_speed: 14; | ||
cost_factor: 52; | ||
running_cost_factor: 17; | ||
sprite_id: SPRITE_ID_NEW_TRAIN; | ||
refit_cost: 0; | ||
track_type: RAIL; | ||
speed: 125 mph; | ||
power: 0; | ||
running_cost_base: RUNNING_COST_STEAM; | ||
dual_headed: 0; | ||
default_cargo_type: PASS; | ||
cargo_capacity: 60; | ||
weight: 40 ton; | ||
tractive_effort_coefficient: 0; | ||
air_drag_coefficient: 0; | ||
length: 8; | ||
effect_spawn_model_and_powered: EFFECT_SPAWN_MODEL_NONE; | ||
extra_weight_per_wagon: 0; | ||
bitmask_vehicle_info: 0; | ||
cargo_age_period: 185; | ||
} | ||
graphics { | ||
can_attach_wagon: CB_RESULT_ATTACH_ALLOW; | ||
default: sw_br_68_5a_middle; | ||
colour_mapping: return PALETTE_CC_FIRST; | ||
purchase: spriteset_BRMk5a_purchase; | ||
cargo_capacity: return(60 * param_pax); | ||
cost_factor: return(GetAdjustedCost(52)); | ||
running_cost_factor: return(GetAdjustedCost(17)); | ||
} | ||
} |