Loading

cargo subrefit

  1. //COLOURED SPRITESETS (ENGINES AND WAGONS)
  2. spriteset(spriteset_railcom1_CC_pass, "gfx/RailCommuter1.png")       {template_engine32WTF(0,0)}
  3. spriteset(spriteset_railcom1_black_pass, "gfx/RailCommuter1.png")    {template_engine32WTF(0,1)}
  4. spriteset(spriteset_railcom1_gray_pass, "gfx/RailCommuter1.png")     {template_engine32WTF(0,2)}
  5. spriteset(spriteset_railcom1_white_pass, "gfx/RailCommuter1.png")    {template_engine32WTF(0,3)}
  6. spriteset(spriteset_railcom1_ltblue_pass, "gfx/RailCommuter1.png")   {template_engine32WTF(0,4)}
  7. spriteset(spriteset_railcom1_blue_pass, "gfx/RailCommuter1.png")     {template_engine32WTF(0,5)}
  8. spriteset(spriteset_railcom1_darkblue_pass, "gfx/RailCommuter1.png") {template_engine32WTF(0,6)}
  9. spriteset(spriteset_railcom1_mauve_pass, "gfx/RailCommuter1.png")    {template_engine32WTF(0,7)}
  10. spriteset(spriteset_railcom1_purple_pass, "gfx/RailCommuter1.png")   {template_engine32WTF(0,8)}
  11. spriteset(spriteset_railcom1_pink_pass, "gfx/RailCommuter1.png")     {template_engine32WTF(0,9)}
  12. spriteset(spriteset_railcom1_brown_pass, "gfx/RailCommuter1.png")    {template_engine32WTF(0,10)}
  13. spriteset(spriteset_railcom1_red_pass, "gfx/RailCommuter1.png")      {template_engine32WTF(0,11)}
  14. spriteset(spriteset_railcom1_orange_pass, "gfx/RailCommuter1.png")   {template_engine32WTF(0,12)}
  15. spriteset(spriteset_railcom1_yellow_pass, "gfx/RailCommuter1.png")   {template_engine32WTF(0,13)}
  16. spriteset(spriteset_railcom1_green_pass, "gfx/RailCommuter1.png")    {template_engine32WTF(0,14)}
  17. spriteset(spriteset_railcom1_palegreen_pass, "gfx/RailCommuter1.png"){template_engine32WTF(0,15)}
  18. spriteset(spriteset_railcom1_darkgreen_pass, "gfx/RailCommuter1.png")    {template_engine32WTF(0,16)}
  19.  
  20. random_switch (FEAT_TRAINS, SELF, random_railcom1_pass){
  21. 1: return spriteset_railcom1_black_pass;
  22. 1: return spriteset_railcom1_gray_pass;
  23. 1: return spriteset_railcom1_white_pass;
  24. 1: return spriteset_railcom1_ltblue_pass;
  25. 1: return spriteset_railcom1_blue_pass;
  26. 1: return spriteset_railcom1_darkblue_pass;
  27. 1: return spriteset_railcom1_mauve_pass;
  28. 1: return spriteset_railcom1_purple_pass;
  29. 1: return spriteset_railcom1_pink_pass;
  30. 1: return spriteset_railcom1_brown_pass;
  31. 1: return spriteset_railcom1_red_pass;
  32. 1: return spriteset_railcom1_orange_pass;
  33. 1: return spriteset_railcom1_yellow_pass;
  34. 1: return spriteset_railcom1_green_pass;
  35. 1: return spriteset_railcom1_palegreen_pass;
  36. 1: return spriteset_railcom1_darkgreen_pass;
  37. }
  38.  
  39. switch(FEAT_TRAINS, SELF, railcom1_subtype_text, cargo_subtype) {
  40.     0: return string(STR_subtype_CC);
  41.     1: return string(STR_subtype_RANDOM);
  42.     2: return string(STR_subtype_BLACK);
  43.     3: return string(STR_subtype_GRAY);
  44.     4: return string(STR_subtype_WHITE);
  45.     5: return string(STR_subtype_LTBLUE);
  46.     6: return string(STR_subtype_BLUE);
  47.     7: return string(STR_subtype_DKBLUE);
  48.     8: return string(STR_subtype_MAUVE);
  49.     9: return string(STR_subtype_PURPLE);
  50.     10: return string(STR_subtype_PINK);
  51.     11: return string(STR_subtype_BROWN);
  52.     12: return string(STR_subtype_RED);
  53.     13: return string(STR_subtype_ORANGE);
  54.     14: return string(STR_subtype_YELLOW);
  55.     15: return string(STR_subtype_GREEN);
  56.     16: return string(STR_subtype_PALEGREEN);
  57.     17: return string(STR_subtype_DKGREEN);
  58.     return CB_RESULT_NO_TEXT;
  59. }
  60.  
  61. switch(FEAT_TRAINS, SELF, switch_subtypes_railcom1_pass, cargo_subtype){
  62. 0: return spriteset_railcom1_CC_pass;
  63. 1: return random_railcom1_pass; //randomswitch later
  64. 2: return spriteset_railcom1_black_pass;
  65. 3: return spriteset_railcom1_gray_pass;
  66. 4: return spriteset_railcom1_white_pass;
  67. 5: return spriteset_railcom1_ltblue_pass;
  68. 6: return spriteset_railcom1_blue_pass;
  69. 7: return spriteset_railcom1_darkblue_pass;
  70. 8: return spriteset_railcom1_mauve_pass;
  71. 9: return spriteset_railcom1_purple_pass;
  72. 10: return spriteset_railcom1_pink_pass;
  73. 11: return spriteset_railcom1_brown_pass;
  74. 12: return spriteset_railcom1_red_pass;
  75. 13: return spriteset_railcom1_orange_pass;
  76. 14: return spriteset_railcom1_yellow_pass;
  77. 15: return spriteset_railcom1_green_pass;
  78. 16: return spriteset_railcom1_palegreen_pass;
  79. 17: return spriteset_railcom1_darkgreen_pass;
  80. return spriteset_railcom1_CC_pass;
  81. }
  82.  
  83. switch(FEAT_TRAINS, SELF, switch_railcom1_x, cargo_type_in_veh){
  84. PASS: switch_subtypes_railcom1_pass;
  85. MAIL: switch_subtypes_railcom1_mail;
  86. GOLD: switch_subtypes_railcom1_gold;
  87. VALU: switch_subtypes_railcom1_gold;
  88. DIAM: switch_subtypes_railcom1_gold;
  89. return switch_subtypes_railcom1_pass;
  90. }
  91.  
  92. graphics{
  93. default: switch_railcom1_x;
  94. cargo_subtype_text: railcom1_subtype_text;
  95. }

Comments