-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
98 additions
and
73 deletions.
There are no files selected for viewing
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
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,72 @@ | ||
// ach2 | ||
|
||
#define PROP_apch2_c_CF PROP_ach2_c_CF | ||
#define PROP_apch2_c_RC PROP_ach2_c_RC | ||
#define PROP_apch2_c_SD PROP_ach2_c_SD | ||
#define PROP_apch2_c_WT PROP_ach2_c_WT | ||
#define PROP_apch2_c_TE PROP_ach2_c_TE | ||
#define PROP_apch2_c_PR PROP_ach2_c_PR | ||
#define PROP_apch2_c_CC PROP_ach2_c_CC | ||
|
||
#define IMAGEFILE "src/dmu/apch2.png" | ||
purchase_sprites_with_icon(apch2, 18, 0, diesel) | ||
pass_wagon_sprites(15, apch2, 32, 40) | ||
#undef IMAGEFILE | ||
|
||
long_vehicle(apch2) | ||
|
||
engine_capacity_MU(apch2, PROP_apch2_c_CC, ach2) | ||
|
||
RC_head_check(apch2, ach2) | ||
switch (FEAT_TRAINS, SELF, apch2_running_cost_factor, | ||
[ STORE_TEMP(0, 0), // Моторы | ||
STORE_TEMP(11, 1), // Бригада | ||
STORE_TEMP(29, 2), // Износ | ||
STORE_TEMP(3, 3), // Сопровождение | ||
STORE_TEMP(8, 4), // ТО | ||
STORE_TEMP(1, 5), // Сертификация | ||
|
||
STORE_TEMP(PROP_apch2_c_SD, 6), // Скорость | ||
STORE_TEMP(round(PROP_apch2_c_WT), 7), // Тара | ||
STORE_TEMP(round(PROP_apch2_c_WT + PROP_apch2_c_CC / 16), 8)]) // Максимальная масса | ||
{ apch2_check_running_cost_factor; } // 51 | ||
|
||
name_in_group(apch2, string(STR_NAME_IN_GROUP, string(STR_NAME_ACH2_SERIES), string(STR_NAME_APCH2)), | ||
string(STR_NAME_IN_GROUP, string(STR_NAME_ACH2_SERIES), string(STR_LONGNAME_APCH2))) | ||
|
||
hint_MU(apch2, | ||
calc_loading(123 / (2 * DOUBLE_DOOR)), | ||
STR_PURCHASE_HINT_CAP_00033_VERY_FAST, | ||
STR_PURCHASE_HINT_ENGINE_TYPE_DMU_C, | ||
STR_SECTIONS_ACH2, | ||
1984, 1989, | ||
fact_skoda()) | ||
|
||
item (FEAT_TRAINS, apch2, 502) { | ||
property { | ||
name: string(STR_NAME_APCH2); | ||
vehicle_dates(1984, 1989, 25, 10, 8, PROP_apch2_c_CF) | ||
vehicle_dmu_wagon(PROP_apch2_c_WT, PROP_apch2_c_CC, 2 * DOUBLE_DOOR, ) | ||
vehicle_group_mu(group_ach2) | ||
} | ||
graphics { | ||
purchase_menu_wagon(PROP_apch2_c_CF, PROP_apch2_c_RC, PROP_apch2_c_SD, PROP_apch2_c_WT, PROP_apch2_c_TE, PROP_apch2_c_PR, PROP_apch2_c_CC) | ||
additional_text: apch2_additional_text; | ||
articulated_part: articulated_part_dummy7; | ||
can_attach_wagon: ach2_can_attach_wagon; | ||
cargo_age_period: return CAP_00033_VERY_FAST; | ||
cargo_capacity: apch2_cargo_capacity; | ||
cargo_subtype_text: ach2_cargo_subtype_text; | ||
colour_mapping: ach2_colour_mapping; | ||
default: apch2_sprites; | ||
name: apch2_name; | ||
power: return 0; | ||
purchase: apch2_purchase_sprites; | ||
running_cost_factor: apch2_running_cost_factor; | ||
speed: speed_after25_120to100; | ||
start_stop: return string(STR_START_STOP_HEAD_REQUIRED); | ||
} | ||
} | ||
|
||
long_name_template(apch2, STR_LONGNAME_APCH2) | ||
allow_dmu(apch2) |
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