Loading

Paste #plqkzyzqp

  1. // define the newgrf
  2. grf {
  3.     grfid: "CA\12\1E";
  4.     name: string(STR_GRF_NAME);
  5.     desc: string(STR_GRF_DESCRIPTION);
  6.     version: 1563;
  7.     min_compatible_version: 1449;
  8.     param 0 {
  9.         param_adjust_vehicle_capacity {
  10.             type:    int;
  11.             name:    string(STR_PARAM_ADJUST_VEHICLE_CAPACITY);
  12.             min_value: 0;
  13.             max_value: 2;
  14.             def_value: 1;
  15.             names: {
  16.                 0: string(STR_PARAM_ADJUST_VEHICLE_CAPACITY_OPTION_0);
  17.                 1: string(STR_PARAM_ADJUST_VEHICLE_CAPACITY_OPTION_1);
  18.                 2: string(STR_PARAM_ADJUST_VEHICLE_CAPACITY_OPTION_2);
  19.             };
  20.         }
  21.     }
  22.     param 1 {
  23.         param_roster {
  24.             name: string(STR_PARAM_ROSTER);
  25.             desc: string(STR_PARAM_ROSTER_DESC);
  26.            
  27.             min_value: 0;
  28.             max_value: 2;
  29.             names: {
  30.                
  31.                     2: string(STR_PARAM_ROSTER_OPTION_2);
  32.                
  33.                     0: string(STR_PARAM_ROSTER_OPTION_0);
  34.                
  35.             };
  36.         }
  37.     }
  38. }
  39.  
  40. basecost {
  41.     PR_BUILD_VEHICLE_TRAIN: -2;
  42.     PR_BUILD_VEHICLE_WAGON: 1;
  43.     PR_RUNNING_TRAIN_STEAM: 1;
  44.     PR_RUNNING_TRAIN_DIESEL: 1;
  45.     PR_RUNNING_TRAIN_ELECTRIC: 1;
  46. }
  47.  
  48. // disable default trains
  49. disable_item(FEAT_TRAINS, 00, 115);
  50.  
  51. // sort order
  52. sort(FEAT_TRAINS, [1990, 2060, 2040, 2070, 2050, 2080, 2000, 2010, 1840, 1970, 1800, 1960, 1620, 2030, 1870, 2020, 1980, 1790, 1610, 1590, 1600, 1550, 1540, 1580, 2130, 1560, 1940, 1730, 2120, 1950, 1760, 2090, 1770, 1830, 1820, 1750, 2100, 1740, 1850, 1860, 1630, 1660, 1890, 1670, 1910, 1680, 1920, 1720, 2150, 1690, 1700, 1570, 1900, 2140, 2170, 2180, 1640, 2110, 1650, 1930, 2160, 1780, 1880, 110, 480, 380, 70, 230, 0, 390, 500, 300, 270, 170, 120, 420, 280, 220, 450, 100, 160, 130, 470, 530, 460, 360, 210, 290, 2190, 2200, 490, 240, 140, 430, 740, 770, 750, 760, 920, 950, 930, 940, 1000, 820, 850, 830, 840, 550, 580, 560, 570, 1070, 1080, 1090, 630, 650, 640, 1270, 1230, 1240, 1010, 1030, 1020, 1190, 1200, 730, 720, 1060, 1140, 1170, 1150, 1160, 890, 900, 910, 710, 700, 1530, 1280, 1290]);
  53.  
  54. // fix depot view for trains
  55. traininfo_y_offset = 2;
  56. train_width_32_px = 1;

Comments