- // -- smoke etc -- //
- switch (FEAT_TRAINS, SELF, shoebox_switch_visual_effect_and_powered_by_variant_unreversed, current_railtype) {
- ELRL: return visual_effect_and_powered(VISUAL_EFFECT_ELECTRIC, 0, DISABLE_WAGON_POWER);
- return visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER);
- }
- switch (FEAT_TRAINS, SELF, shoebox_switch_visual_effect_and_powered_by_variant_reversed, current_railtype) {
- ELRL: return visual_effect_and_powered(VISUAL_EFFECT_ELECTRIC, 0, DISABLE_WAGON_POWER);
- return visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER);
- }
- random_switch (FEAT_TRAINS, SELF, shoebox_switch_visual_effect_and_powered_variants) {
- dependent: shoebox_switch_graphics_vehicle;
- 1: shoebox_switch_visual_effect_and_powered_by_variant_unreversed;
- 1: shoebox_switch_visual_effect_and_powered_by_variant_reversed;
- }
- // -- power -- //
- switch (FEAT_TRAINS, SELF, shoebox_switch_power, current_railtype) {
- RAIL: return 950;
- ELRL: return 1800;
- return 950;
- }