- switch (FEAT_TRAINS, SELF, capacity, position_in_vehid_chain % 3) {
- 1: 33;
- return 0; }
- switch (FEAT_TRAINS, SELF, arti_88, extra_callback_info1) {
- 1..2: item_test_88;
- CB_RESULT_NO_MORE_ARTICULATED_PARTS; }
- item (FEAT_TRAINS, item_test_88) {
- property {
- sprite_id: SPRITE_ID_NEW_TRAIN;
- misc_flags: bitmask(TRAIN_FLAG_FLIP);
- name: string(TEST_88);
- climates_available: ALL_CLIMATES;
- introduction_date: date(0, 1, 1);
- speed: 100km/h;
- power: 1000 hpM;
- weight: 50 ton;
- tractive_effort_coefficient: 0.3;
- length: 8;
- refittable_cargo_classes: bitmask(CC_PASSENGERS);
- cargo_capacity: 1;
- }
- graphics {
- articulated_part: arti_88;
- default: spr_8_def;
- cargo_capacity: capacity;
- }
- }
- switch (FEAT_TRAINS, SELF, arti_99, extra_callback_info1) {
- 1..2: item_test_99;
- CB_RESULT_NO_MORE_ARTICULATED_PARTS; }
- item (FEAT_TRAINS, item_test_99) {
- property {
- sprite_id: SPRITE_ID_NEW_TRAIN;
- misc_flags: bitmask(TRAIN_FLAG_FLIP);
- name: string(TEST_88);
- climates_available: ALL_CLIMATES;
- introduction_date: date(0, 1, 1);
- speed: 100km/h;
- power: 1000 hpM;
- weight: 50 ton;
- tractive_effort_coefficient: 0.3;
- length: 8;
- refittable_cargo_classes: bitmask(CC_PASSENGERS);
- cargo_capacity: 1;
- }
- graphics {
- articulated_part: arti_99;
- default: spr_8_def;
- cargo_capacity: capacity;
- purchase_cargo_capacity: 33;
- }
- }