switch (FEAT_TRAINS, SELF, switch_railjet_position_default, position_in_articulated_veh) {
0: set_railjet_taurus;
1: set_railjet_bmpvz;
2: set_railjet_bmpz;
3: set_railjet_bmpz;
4: set_railjet_bmpz;
5: set_railjet_arbmpz;
6: set_railjet_ampz;
7: set_railjet_afmpz;
}
switch (FEAT_TRAINS, SELF, switch_railjet_position_skiaustria, position_in_articulated_veh) {
0: set_railjet_taurus;
1: set_railjet_bmpvz_skiaustria;
2: set_railjet_bmpz_skiaustria;
3: set_railjet_bmpz_skiaustria;
4: set_railjet_bmpz_skiaustria;
5: set_railjet_arbmpz_skiaustria;
6: set_railjet_ampz_skiaustria;
7: set_railjet_afmpz_skiaustria;
}
switch (FEAT_TRAINS, SELF, switch_railjet, cargo_subtype) {
0: switch_railjet_position_default;
1: switch_railjet_position_skiaustria;
}
switch (FEAT_TRAINS, SELF, switch_railjet_text, cargo_subtype) {
0: return string(STR_RAILJET_LIVERY_DEFAULT);
1: return string(STR_RAILJET_LIVERY_SKIAUSTRIA);
return CB_RESULT_NO_TEXT;
}
item (FEAT_TRAINS, i_railjet) {
property {
default_cargo_type: PASS;
refittable_cargo_classes: bitmask(PASS);
}
graphics {
default: switch_railjet;
cargo_subtype_text: switch_railjet_text;
}
}