- // define the newgrf
- grf {
- grfid: "CA\12\1E";
- name: string(STR_GRF_NAME);
- desc: string(STR_GRF_DESCRIPTION);
- version: 1563;
- min_compatible_version: 1449;
- param 0 {
- param_adjust_vehicle_capacity {
- type: int;
- name: string(STR_PARAM_ADJUST_VEHICLE_CAPACITY);
- min_value: 0;
- max_value: 2;
- def_value: 1;
- names: {
- 0: string(STR_PARAM_ADJUST_VEHICLE_CAPACITY_OPTION_0);
- 1: string(STR_PARAM_ADJUST_VEHICLE_CAPACITY_OPTION_1);
- 2: string(STR_PARAM_ADJUST_VEHICLE_CAPACITY_OPTION_2);
- };
- }
- }
- param 1 {
- param_roster {
- name: string(STR_PARAM_ROSTER);
- desc: string(STR_PARAM_ROSTER_DESC);
- min_value: 0;
- max_value: 2;
- names: {
- 2: string(STR_PARAM_ROSTER_OPTION_2);
- 0: string(STR_PARAM_ROSTER_OPTION_0);
- };
- }
- }
- }
- basecost {
- PR_BUILD_VEHICLE_TRAIN: -2;
- PR_BUILD_VEHICLE_WAGON: 1;
- PR_RUNNING_TRAIN_STEAM: 1;
- PR_RUNNING_TRAIN_DIESEL: 1;
- PR_RUNNING_TRAIN_ELECTRIC: 1;
- }
- // disable default trains
- disable_item(FEAT_TRAINS, 00, 115);
- // sort order
- 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]);
- // fix depot view for trains
- traininfo_y_offset = 2;
- train_width_32_px = 1;