Loading

Paste #po6klicuv

  1.     // -- smoke etc -- //
  2.     switch (FEAT_TRAINS, SELF, shoebox_switch_visual_effect_and_powered_by_variant_unreversed, current_railtype) {
  3.                 ELRL: return visual_effect_and_powered(VISUAL_EFFECT_ELECTRIC, 0, DISABLE_WAGON_POWER);
  4.         return visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER);
  5.     }
  6.     switch (FEAT_TRAINS, SELF, shoebox_switch_visual_effect_and_powered_by_variant_reversed, current_railtype) {
  7.                 ELRL: return visual_effect_and_powered(VISUAL_EFFECT_ELECTRIC, 0, DISABLE_WAGON_POWER);
  8.         return visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER);
  9.     }
  10.     random_switch (FEAT_TRAINS, SELF, shoebox_switch_visual_effect_and_powered_variants) {
  11.         dependent: shoebox_switch_graphics_vehicle;
  12.             1: shoebox_switch_visual_effect_and_powered_by_variant_unreversed;
  13.             1: shoebox_switch_visual_effect_and_powered_by_variant_reversed;
  14.     }
  15.     // -- power -- //
  16.     switch (FEAT_TRAINS, SELF, shoebox_switch_power, current_railtype) {
  17.                 RAIL: return 950;
  18.                 ELRL: return 1800;
  19.         return 950;
  20.     }

Comments