# cargo_const.h

    00001 /* $Id: cargo_const.h 14268 2008-09-07 22:04:39Z rubidium $ */
    00002
    00003 /* Table of all default cargo types */
    00004
    00005 #define MK(bt, label, c, e, f, g, h, fr, te, ks1, ks2, ks3, ks4, ks5, l, m) \
    00006           {bt, label, 0, c, c, e, f, {g, h}, fr, te, 0, 0, GRFMappedStringID(ks1, 0), GRFMappedStringID(ks2, 0), GRFMappedStringID(ks3, 0), GRFMappedStringID(ks4, 0), GRFMappedStringID(ks5, 0), l, m, NULL}
    00007 static const CargoSpec _default_cargo[] = {
    00008   MK(  0, 'PASS', 152,  1, 3185,  0,  24, false, TE_PASSENGERS,
    00009     STR_000F_PASSENGERS,     STR_002F_PASSENGER,      STR_PASSENGERS, STR_QUANTITY_PASSENGERS,   STR_ABBREV_PASSENGERS,
    00010     SPR_CARGO_PASSENGER,     CC_PASSENGERS  ),
    00011
    00012   MK(  1, 'COAL',  32, 16, 5916,  7, 255, true,  TE_NONE,
    00013     STR_0010_COAL,           STR_0030_COAL,           STR_TONS,       STR_QUANTITY_COAL,         STR_ABBREV_COAL,
    00014     SPR_CARGO_COAL,          CC_BULK        ),
    00015
    00016   MK(  2, 'MAIL',  15,  4, 4550, 20,  90, false, TE_MAIL,
    00017     STR_0011_MAIL,           STR_0031_MAIL,           STR_BAGS,       STR_QUANTITY_MAIL,         STR_ABBREV_MAIL,
    00018     SPR_CARGO_MAIL,          CC_MAIL        ),
    00019
    00020   /* Oil in temperate and arctic */
    00021   MK(  3, 'OIL_', 174, 16, 4437, 25, 255, true,  TE_NONE,
    00022     STR_0012_OIL,            STR_0032_OIL,            STR_LITERS,     STR_QUANTITY_OIL,          STR_ABBREV_OIL,
    00023     SPR_CARGO_OIL,           CC_LIQUID      ),
    00024
    00025   /* Oil in subtropic */
    00026   MK(  3, 'OIL_', 174, 16, 4892, 25, 255, true,  TE_NONE,
    00027     STR_0012_OIL,            STR_0032_OIL,            STR_LITERS,     STR_QUANTITY_OIL,          STR_ABBREV_OIL,
    00028     SPR_CARGO_OIL,           CC_LIQUID      ),
    00029
    00030   MK(  4, 'LVST', 208,  3, 4322,  4,  18, true,  TE_NONE,
    00031     STR_0013_LIVESTOCK,      STR_0033_LIVESTOCK,      STR_ITEMS,      STR_QUANTITY_LIVESTOCK,    STR_ABBREV_LIVESTOCK,
    00032     SPR_CARGO_LIVESTOCK,     CC_PIECE_GOODS ),
    00033
    00034   MK(  5, 'GOOD', 194,  8, 6144,  5,  28, true,  TE_GOODS,
    00035     STR_0014_GOODS,          STR_0034_GOODS,          STR_CRATES,     STR_QUANTITY_GOODS,        STR_ABBREV_GOODS,
    00036     SPR_CARGO_GOODS,         CC_EXPRESS     ),
    00037
    00038   MK(  6, 'GRAI', 191, 16, 4778,  4,  40, true,  TE_NONE,
    00039     STR_0015_GRAIN,          STR_0035_GRAIN,          STR_TONS,       STR_QUANTITY_GRAIN,        STR_ABBREV_GRAIN,
    00040     SPR_CARGO_GRAIN,         CC_BULK        ),
    00041
    00042   MK(  6, 'WHEA', 191, 16, 4778,  4,  40, true,  TE_NONE,
    00043     STR_0022_WHEAT,          STR_0042_WHEAT,          STR_TONS,       STR_QUANTITY_WHEAT,        STR_ABBREV_WHEAT,
    00044     SPR_CARGO_GRAIN,         CC_BULK        ),
    00045
    00046   MK(  6, 'MAIZ', 191, 16, 4322,  4,  40, true,  TE_NONE,
    00047     STR_001B_MAIZE,          STR_003B_MAIZE,          STR_TONS,       STR_QUANTITY_MAIZE,        STR_ABBREV_MAIZE,
    00048     SPR_CARGO_GRAIN,         CC_BULK        ),
    00049
    00050   /* Wood in temperate and arctic */
    00051   MK(  7, 'WOOD',  84, 16, 5005, 15, 255, true,  TE_NONE,
    00052     STR_0016_WOOD,           STR_0036_WOOD,           STR_TONS,       STR_QUANTITY_WOOD,         STR_ABBREV_WOOD,
    00053     SPR_CARGO_WOOD,          CC_PIECE_GOODS ),
    00054
    00055   /* Wood in subtropic */
    00056   MK(  7, 'WOOD',  84, 16, 7964, 15, 255, true,  TE_NONE,
    00057     STR_0016_WOOD,           STR_0036_WOOD,           STR_TONS,       STR_QUANTITY_WOOD,         STR_ABBREV_WOOD,
    00058     SPR_CARGO_WOOD,          CC_PIECE_GOODS ),
    00059
    00060   MK(  8, 'IORE', 184, 16, 5120,  9, 255, true,  TE_NONE,
    00061     STR_0017_IRON_ORE,       STR_0037_IRON_ORE,       STR_TONS,       STR_QUANTITY_IRON_ORE,     STR_ABBREV_IRON_ORE,
    00062     SPR_CARGO_IRON_ORE,      CC_BULK        ),
    00063
    00064   MK(  9, 'STEL',  10, 16, 5688,  7, 255, true,  TE_NONE,
    00065     STR_0018_STEEL,          STR_0038_STEEL,          STR_TONS,       STR_QUANTITY_STEEL,        STR_ABBREV_STEEL,
    00066     SPR_CARGO_STEEL,         CC_PIECE_GOODS ),
    00067
    00068   MK( 10, 'VALU', 202,  2, 7509,  1,  32, true,  TE_NONE,
    00069     STR_0019_VALUABLES,      STR_0039_VALUABLES,      STR_BAGS,       STR_QUANTITY_VALUABLES,    STR_ABBREV_VALUABLES,
    00070     SPR_CARGO_VALUES_GOLD,   CC_ARMOURED    ),
    00071
    00072   MK( 10, 'GOLD', 202,  8, 5802, 10,  40, true,  TE_NONE,
    00073     STR_0020_GOLD,           STR_0040_GOLD,           STR_BAGS,       STR_QUANTITY_GOLD,         STR_ABBREV_GOLD,
    00074     SPR_CARGO_VALUES_GOLD,   CC_ARMOURED    ),
    00075
    00076   MK( 10, 'DIAM', 202,  2, 5802, 10, 255, true,  TE_NONE,
    00077     STR_001D_DIAMONDS,       STR_003D_DIAMOND,        STR_BAGS,       STR_QUANTITY_DIAMONDS,     STR_ABBREV_DIAMONDS,
    00078     SPR_CARGO_DIAMONDS,      CC_ARMOURED    ),
    00079
    00080   MK( 11, 'PAPR',  10, 16, 5461,  7,  60, true,  TE_NONE,
    00081     STR_001F_PAPER,          STR_003F_PAPER,          STR_TONS,       STR_QUANTITY_PAPER,        STR_ABBREV_PAPER,
    00082     SPR_CARGO_PAPER,         CC_PIECE_GOODS ),
    00083
    00084   MK( 12, 'FOOD',  48, 16, 5688,  0,  30, true,  TE_FOOD,
    00085     STR_001E_FOOD,           STR_003E_FOOD,           STR_TONS,       STR_QUANTITY_FOOD,         STR_ABBREV_FOOD,
    00086     SPR_CARGO_FOOD,          CC_EXPRESS     | CC_REFRIGERATED),
    00087
    00088   MK( 13, 'FRUT', 208, 16, 4209,  0,  15, true,  TE_NONE,
    00089     STR_001C_FRUIT,          STR_003C_FRUIT,          STR_TONS,       STR_QUANTITY_FRUIT,        STR_ABBREV_FRUIT,
    00090     SPR_CARGO_FRUIT,         CC_BULK        | CC_REFRIGERATED),
    00091
    00092   MK( 14, 'CORE', 184, 16, 4892, 12, 255, true,  TE_NONE,
    00093     STR_001A_COPPER_ORE,     STR_003A_COPPER_ORE,     STR_TONS,       STR_QUANTITY_COPPER_ORE,   STR_ABBREV_COPPER_ORE,
    00094     SPR_CARGO_COPPER_ORE,    CC_BULK        ),
    00095
    00096   MK( 15, 'WATR',  10, 16, 4664, 20,  80, true,  TE_WATER,
    00097     STR_0021_WATER,          STR_0041_WATER,          STR_LITERS,     STR_QUANTITY_WATER,        STR_ABBREV_WATER,
    00098     SPR_CARGO_WATERCOLA,     CC_LIQUID      ),
    00099
    00100   MK( 16, 'RUBR',  32, 16, 4437,  2,  20, true,  TE_NONE,
    00101     STR_0023_RUBBER,         STR_0043_RUBBER,         STR_LITERS,     STR_QUANTITY_RUBBER,       STR_ABBREV_RUBBER,
    00102     SPR_CARGO_RUBBER,        CC_LIQUID      ),
    00103
    00104   MK( 17, 'SUGR',  32, 16, 4437, 20, 255, true,  TE_NONE,
    00105     STR_0024_SUGAR,          STR_0044_SUGAR,          STR_TONS,       STR_QUANTITY_SUGAR,        STR_ABBREV_SUGAR,
    00106     SPR_CARGO_SUGAR,         CC_BULK        ),
    00107
    00108   MK( 18, 'TOYS', 174,  2, 5574, 25, 255, true,  TE_NONE,
    00109     STR_0025_TOYS,           STR_0045_TOY,            STR_ITEMS,      STR_QUANTITY_TOYS,         STR_ABBREV_TOYS,
    00110     SPR_CARGO_TOYS,          CC_PIECE_GOODS ),
    00111
    00112   MK( 19, 'BATT', 208,  4, 4322,  2,  30, true,  TE_NONE,
    00113     STR_002B_BATTERIES,      STR_004B_BATTERY,        STR_ITEMS,      STR_QUANTITY_BATTERIES,    STR_ABBREV_BATTERIES,
    00114     SPR_CARGO_BATTERIES,     CC_PIECE_GOODS ),
    00115
    00116   MK( 20, 'SWET', 194,  5, 6144,  8,  40, true,  TE_GOODS,
    00117     STR_0026_CANDY,          STR_0046_CANDY,          STR_BAGS,       STR_QUANTITY_SWEETS,       STR_ABBREV_SWEETS,
    00118     SPR_CARGO_CANDY,         CC_EXPRESS     ),
    00119
    00120   MK( 21, 'TOFF', 191, 16, 4778, 14,  60, true,  TE_NONE,
    00121     STR_002A_TOFFEE,         STR_004A_TOFFEE,         STR_TONS,       STR_QUANTITY_TOFFEE,       STR_ABBREV_TOFFEE,
    00122     SPR_CARGO_TOFFEE,        CC_BULK        ),
    00123
    00124   MK( 22, 'COLA',  84, 16, 4892,  5,  75, true,  TE_NONE,
    00125     STR_0027_COLA,           STR_0047_COLA,           STR_LITERS,     STR_QUANTITY_COLA,         STR_ABBREV_COLA,
    00126     SPR_CARGO_WATERCOLA,     CC_LIQUID      ),
    00127
    00128   MK( 23, 'CTCD', 184, 16, 5005, 10,  25, true,  TE_NONE,
    00129     STR_0028_COTTON_CANDY,   STR_0048_COTTON_CANDY,   STR_TONS,       STR_QUANTITY_CANDYFLOSS,   STR_ABBREV_CANDYFLOSS,
    00130     SPR_CARGO_COTTONCANDY,   CC_BULK        ),
    00131
    00132   MK( 24, 'BUBL',  10,  1, 5077, 20,  80, true,  TE_NONE,
    00133     STR_0029_BUBBLES,        STR_0049_BUBBLE,         STR_ITEMS,      STR_QUANTITY_BUBBLES,      STR_ABBREV_BUBBLES,
    00134     SPR_CARGO_BUBBLES,       CC_PIECE_GOODS ),
    00135
    00136   MK( 25, 'PLST', 202, 16, 4664, 30, 255, true,  TE_NONE,
    00137     STR_002C_PLASTIC,        STR_004C_PLASTIC,        STR_LITERS,     STR_QUANTITY_PLASTIC,      STR_ABBREV_PLASTIC,
    00138     SPR_CARGO_PLASTIC,       CC_LIQUID      ),
    00139
    00140   MK( 26, 'FZDR',  48,  2, 6250, 30,  50, true,  TE_FOOD,
    00141     STR_002D_FIZZY_DRINKS,   STR_004D_FIZZY_DRINK,    STR_ITEMS,      STR_QUANTITY_FIZZY_DRINKS, STR_ABBREV_FIZZY_DRINKS,
    00142     SPR_CARGO_FIZZYDRINK,    CC_PIECE_GOODS ),
    00143
    00144   /* Void slot in temperate */
    00145   MK( 0xFF,    0,   1,  0, 5688,  0,  30, true,  TE_NONE,
    00146     STR_000E,                STR_002E,                STR_TONS,       STR_QUANTITY_NOTHING,      STR_ABBREV_NOTHING,
    00147     SPR_ASCII_SPACE,         CC_NOAVAILABLE ),
    00148
    00149   /* Void slot in arctic */
    00150   MK( 0xFF,    0, 184,  0, 5120,  9, 255, true,  TE_NONE,
    00151     STR_000E,                STR_002E,                STR_TONS,       STR_QUANTITY_NOTHING,      STR_ABBREV_NOTHING,
    00152     SPR_ASCII_SPACE,         CC_NOAVAILABLE ),
    00153
    00154 };
    00155
    00156
    00157 /* Table of which cargo types are available in each climate, by default */
    00158 static const CargoLabel _default_climate_cargo[NUM_LANDSCAPE][12] = {
    00159   { 'PASS', 'COAL', 'MAIL', 'OIL_', 'LVST', 'GOOD', 'GRAI', 'WOOD', 'IORE', 'STEL', 'VALU',     33, },
    00160   { 'PASS', 'COAL', 'MAIL', 'OIL_', 'LVST', 'GOOD', 'WHEA', 'WOOD',     34, 'PAPR', 'GOLD', 'FOOD', },
    00161   { 'PASS', 'RUBR', 'MAIL',      4, 'FRUT', 'GOOD', 'MAIZ',     11, 'CORE', 'WATR', 'DIAM', 'FOOD', },
    00162   { 'PASS', 'SUGR', 'MAIL', 'TOYS', 'BATT', 'SWET', 'TOFF', 'COLA', 'CTCD', 'BUBL', 'PLST', 'FZDR', },
    00163 };
    00164