04-teahouse.nml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // ####################
  2. // # -- SPRITESETS -- #
  3. // ####################
  4. spriteset (spriteset_teahouse, "gfx/teahouse.png") {
  5. [ 0, 0, 64, 39, -31, -8, NOCROP]
  6. }
  7. // #######################
  8. // # -- SPRITELAYOUTS -- #
  9. // #######################
  10. // # Teahouse Building #
  11. // #####################
  12. spritelayout spritelayout_teahouse {
  13. ground { sprite: GROUNDSPRITE_CONCRETE; }
  14. building { sprite: spriteset_teahouse; recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  15. }
  16. // #######################
  17. // # -- INDUSTRYTILES -- #
  18. // #######################
  19. item (FEAT_INDUSTRYTILES, item_industry_teahouse_tile) {
  20. property { substitute: 27; special_flags: bitmask(INDTILE_FLAG_ACCEPT_ALL); }
  21. graphics { default: spritelayout_teahouse; }
  22. }
  23. // #####################
  24. // # -- TILELAYOUTS -- #
  25. // #####################
  26. // # Teahouse #
  27. // ############
  28. tilelayout item_industry_teahouse_tilelayout {
  29. 0, 0: item_industry_teahouse_tile;
  30. }
  31. // ####################
  32. // # -- INDUSTRIES -- #
  33. // ####################
  34. item (FEAT_INDUSTRIES, item_industry_teahouse) {
  35. property {
  36. // Because we substitute Bank the Teahouse will only be built
  37. // in towns with at least 1200 pop.
  38. substitute: INDUSTRYTYPE_TEMPERATE_BANK;
  39. name: string(STR_TEAHOUSE_INDUSTRY_NAME);
  40. nearby_station_name: string(STR_STATION, string(STR_TOWN), string(STR_TEAHOUSE_INDUSTRY_NAME));
  41. life_type: IND_LIFE_TYPE_BLACK_HOLE;
  42. cargo_types:[
  43. accept_cargo("TEAB")
  44. ];
  45. layouts:[
  46. item_industry_teahouse_tilelayout,
  47. ];
  48. prob_map_gen: 1;
  49. prob_in_game: 4;
  50. map_colour: 89;
  51. }
  52. }