Loading

Paste #pyp8qrujr

  1. tilelayout small_airport_layout_seaplane_north {
  2.  rotation: DIRECTION_NORTH;
  3.  0, 0: seaplane_dock_negative_tile;
  4.  1, 0: water_tile;
  5.  2, 0: seaplane_dock_negative_tile;
  6.  3, 0: small_airport_hangar_seaplane_r1_tile;
  7.  0, 1: water_tile;
  8.  1, 1: water_tile;
  9.  2, 1: water_tile;
  10.  3, 1: water_tile;
  11.  0, 2: water_tile;
  12.  1, 2: water_tile;
  13.  2, 2: water_tile;
  14.  3, 2: water_tile;
  15. }
  16.  
  17. tilelayout small_airport_layout_seaplane_east {
  18.  rotation: DIRECTION_EAST;
  19.  0, 3: seaplane_dock_positive_tile;
  20.  0, 2: water_tile;
  21.  0, 1: seaplane_dock_positive_tile;
  22.  0, 0: small_airport_hangar_seaplane_r2_tile;
  23.  1, 3: water_tile;
  24.  1, 2: water_tile;
  25.  1, 1: water_tile;
  26.  1, 0: water_tile;
  27.  2, 3: water_tile;
  28.  2, 2: water_tile;
  29.  2, 1: water_tile;
  30.  2, 0: water_tile;
  31. }
  32.  
  33. tilelayout small_airport_layout_seaplane_south {
  34.  rotation: DIRECTION_SOUTH;
  35.  0, 0: water_tile;
  36.  1, 0: water_tile;
  37.  2, 0: water_tile;
  38.  3, 0: water_tile;
  39.  0, 1: water_tile;
  40.  1, 1: water_tile;
  41.  2, 1: water_tile;
  42.  3, 1: water_tile;
  43.  0, 2: small_airport_hangar_seaplane_r3_tile;
  44.  1, 2: water_tile;
  45.  2, 2: seaplane_dock_negative_tile;
  46.  3, 2: seaplane_dock_negative_tile;
  47. }
  48.  
  49. tilelayout small_airport_layout_seaplane_west {
  50.  rotation: DIRECTION_WEST;
  51.  2, 0: seaplane_dock_positive_tile;
  52.  2, 1: water_tile;
  53.  2, 2: seaplane_dock_positive_tile;
  54.  2, 3: small_airport_hangar_seaplane_r4_tile;
  55.  1, 0: water_tile;
  56.  1, 1: water_tile;
  57.  1, 2: water_tile;
  58.  1, 3: water_tile;
  59.  0, 0: water_tile;
  60.  0, 1: water_tile;
  61.  0, 2: water_tile;
  62.  0, 3: water_tile;
  63. }
  64.  
  65. spriteset(spr_preview_small_seaplane_r1, "sprites/pcx/preview_small_seaplane.png") { tmpl_preview_small( 20, 20 ) }
  66. spriteset(spr_preview_small_seaplane_r2, "sprites/pcx/preview_small_seaplane.png") { tmpl_preview_small( 20, 166 ) }
  67. spriteset(spr_preview_small_seaplane_r3, "sprites/pcx/preview_small_seaplane.png") { tmpl_preview_small( 20, 312 ) }
  68. spriteset(spr_preview_small_seaplane_r4, "sprites/pcx/preview_small_seaplane.png") { tmpl_preview_small( 20, 458 ) }
  69.  
  70. switch (FEAT_AIRPORTS, SELF, small_seaplane_preview_switch, layout) {
  71.  1: spr_preview_small_seaplane_r2;
  72.  2: spr_preview_small_seaplane_r3;
  73.  3: spr_preview_small_seaplane_r4;
  74.  spr_preview_small_seaplane_r1;
  75.  }
  76.  
  77. item(FEAT_AIRPORTS, small_seaplane_airport) {
  78.  property {
  79.   override: 0;
  80.   name: string(STR_SMALL_SEAPLANE_PORT);
  81.   years_available: [1912, 0xFFFF];
  82.   maintenance_cost: 1;
  83.   layouts: [
  84.    small_airport_layout_seaplane_north,
  85.    small_airport_layout_seaplane_east,
  86.    small_airport_layout_seaplane_south,
  87.    small_airport_layout_seaplane_west,
  88.   ];
  89.  }
  90.  if (disable_noise_level) { property { noise_level: 0; } }
  91.  if (disable_date_restrictions) { property { years_available: [0, 0xFFFF]; } }
  92.  graphics {
  93.   layout_name: generic_name_switch;
  94.   default: small_seaplane_preview_switch;
  95.  }
  96. }

Comments