02-teatree-farm.nml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. // ####################
  2. // # -- SPRITESETS -- #
  3. // ####################
  4. spriteset (spriteset_teatree_farm_building, "gfx/tea-farm-building.png") {
  5. [ 0, 0, 64, 43, -31, -12, NOCROP]
  6. [ 64, 0, 64, 43, -31, -12, NOCROP]
  7. [128, 0, 64, 43, -31, -12, NOCROP]
  8. [192, 0, 64, 43, -31, -12, NOCROP]
  9. }
  10. spriteset (spriteset_teatree_farm_field, "gfx/tea-farm-field.png") {
  11. [ 0, 0, 64, 32, -31, -2, NOCROP]
  12. [ 64, 0, 64, 32, -31, -2, NOCROP]
  13. [ 128, 0, 64, 32, -31, -2, NOCROP]
  14. [ 192, 0, 64, 32, -31, -2, NOCROP]
  15. [ 256, 0, 64, 32, -31, -2, NOCROP]
  16. [ 320, 0, 64, 32, -31, -2, NOCROP]
  17. [ 384, 0, 64, 32, -31, -2, NOCROP]
  18. [ 448, 0, 64, 32, -31, -2, NOCROP]
  19. [ 512, 0, 64, 32, -31, -2, NOCROP]
  20. [ 576, 0, 64, 32, -31, -2, NOCROP]
  21. [ 640, 0, 64, 32, -31, -2, NOCROP]
  22. [ 704, 0, 64, 32, -31, -2, NOCROP]
  23. [ 768, 0, 64, 32, -31, -2, NOCROP]
  24. [ 832, 0, 64, 32, -31, -2, NOCROP]
  25. [ 896, 0, 64, 32, -31, -2, NOCROP]
  26. [ 960, 0, 64, 32, -31, -2, NOCROP]
  27. [1024, 0, 64, 32, -31, -2, NOCROP]
  28. [1088, 0, 64, 32, -31, -2, NOCROP]
  29. [1152, 0, 64, 32, -31, -2, NOCROP]
  30. [1216, 0, 64, 32, -31, -2, NOCROP]
  31. [1280, 0, 64, 32, -31, -2, NOCROP]
  32. [1344, 0, 64, 32, -31, -2, NOCROP]
  33. [1408, 0, 64, 32, -31, -2, NOCROP]
  34. [1472, 0, 64, 32, -31, -2, NOCROP]
  35. [1536, 0, 64, 32, -31, -2, NOCROP]
  36. [1600, 0, 64, 32, -31, -2, NOCROP]
  37. [1664, 0, 64, 32, -31, -2, NOCROP]
  38. [1728, 0, 64, 32, -31, -2, NOCROP]
  39. [1792, 0, 64, 32, -31, -2, NOCROP]
  40. [1856, 0, 64, 32, -31, -2, NOCROP]
  41. [1920, 0, 64, 32, -31, -2, NOCROP]
  42. [1984, 0, 64, 32, -31, -2, NOCROP]
  43. [2048, 0, 64, 32, -31, -2, NOCROP]
  44. [2112, 0, 64, 32, -31, -2, NOCROP]
  45. [2176, 0, 64, 32, -31, -2, NOCROP]
  46. [2240, 0, 64, 32, -31, -2, NOCROP]
  47. [2304, 0, 64, 32, -31, -2, NOCROP]
  48. [2368, 0, 64, 32, -31, -2, NOCROP]
  49. [2432, 0, 64, 32, -31, -2, NOCROP]
  50. [2496, 0, 64, 32, -31, -2, NOCROP]
  51. [2560, 0, 64, 32, -31, -2, NOCROP]
  52. [2624, 0, 64, 32, -31, -2, NOCROP]
  53. [2688, 0, 64, 32, -31, -2, NOCROP]
  54. [2752, 0, 64, 32, -31, -2, NOCROP]
  55. [2816, 0, 64, 32, -31, -2, NOCROP]
  56. [2880, 0, 64, 32, -31, -2, NOCROP]
  57. [2944, 0, 64, 32, -31, -2, NOCROP]
  58. [3008, 0, 64, 32, -31, -2, NOCROP]
  59. }
  60. // #######################
  61. // # -- SPRITELAYOUTS -- #
  62. // #######################
  63. // # Farm Buildings #
  64. // ##################
  65. spritelayout spritelayout_teatree_farm_building_1 {
  66. ground { sprite: GROUNDSPRITE_CLEARED; }
  67. building { sprite: spriteset_teatree_farm_building(0); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  68. }
  69. spritelayout spritelayout_teatree_farm_building_2 {
  70. ground { sprite: GROUNDSPRITE_CLEARED; }
  71. building { sprite: spriteset_teatree_farm_building(1); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  72. }
  73. spritelayout spritelayout_teatree_farm_building_3 {
  74. ground { sprite: GROUNDSPRITE_CLEARED; }
  75. building { sprite: spriteset_teatree_farm_building(2); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  76. }
  77. spritelayout spritelayout_teatree_farm_building_4 {
  78. ground { sprite: GROUNDSPRITE_CLEARED; }
  79. building { sprite: spriteset_teatree_farm_building(3); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  80. }
  81. // # Animated Farm Fields #
  82. // ########################
  83. spritelayout spritelayout_teatree_farm_field_0 {
  84. ground { sprite: GROUNDSPRITE_CLEARED; }
  85. building { sprite: spriteset_teatree_farm_field(0); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  86. }
  87. spritelayout spritelayout_teatree_farm_field_1 {
  88. ground { sprite: GROUNDSPRITE_CLEARED; }
  89. building { sprite: spriteset_teatree_farm_field(1); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  90. }
  91. spritelayout spritelayout_teatree_farm_field_2 {
  92. ground { sprite: GROUNDSPRITE_CLEARED; }
  93. building { sprite: spriteset_teatree_farm_field(2); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  94. }
  95. spritelayout spritelayout_teatree_farm_field_3 {
  96. ground { sprite: GROUNDSPRITE_CLEARED; }
  97. building { sprite: spriteset_teatree_farm_field(3); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  98. }
  99. spritelayout spritelayout_teatree_farm_field_4 {
  100. ground { sprite: GROUNDSPRITE_CLEARED; }
  101. building { sprite: spriteset_teatree_farm_field(4); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  102. }
  103. spritelayout spritelayout_teatree_farm_field_5 {
  104. ground { sprite: GROUNDSPRITE_CLEARED; }
  105. building { sprite: spriteset_teatree_farm_field(5); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  106. }
  107. spritelayout spritelayout_teatree_farm_field_6 {
  108. ground { sprite: GROUNDSPRITE_CLEARED; }
  109. building { sprite: spriteset_teatree_farm_field(6); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  110. }
  111. spritelayout spritelayout_teatree_farm_field_7 {
  112. ground { sprite: GROUNDSPRITE_CLEARED; }
  113. building { sprite: spriteset_teatree_farm_field(7); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  114. }
  115. spritelayout spritelayout_teatree_farm_field_8 {
  116. ground { sprite: GROUNDSPRITE_CLEARED; }
  117. building { sprite: spriteset_teatree_farm_field(8); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  118. }
  119. spritelayout spritelayout_teatree_farm_field_9 {
  120. ground { sprite: GROUNDSPRITE_CLEARED; }
  121. building { sprite: spriteset_teatree_farm_field(9); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  122. }
  123. spritelayout spritelayout_teatree_farm_field_10 {
  124. ground { sprite: GROUNDSPRITE_CLEARED; }
  125. building { sprite: spriteset_teatree_farm_field(10); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  126. }
  127. spritelayout spritelayout_teatree_farm_field_11 {
  128. ground { sprite: GROUNDSPRITE_CLEARED; }
  129. building { sprite: spriteset_teatree_farm_field(11); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  130. }
  131. spritelayout spritelayout_teatree_farm_field_12 {
  132. ground { sprite: GROUNDSPRITE_CLEARED; }
  133. building { sprite: spriteset_teatree_farm_field(12); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  134. }
  135. spritelayout spritelayout_teatree_farm_field_13 {
  136. ground { sprite: GROUNDSPRITE_CLEARED; }
  137. building { sprite: spriteset_teatree_farm_field(13); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  138. }
  139. spritelayout spritelayout_teatree_farm_field_14 {
  140. ground { sprite: GROUNDSPRITE_CLEARED; }
  141. building { sprite: spriteset_teatree_farm_field(14); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  142. }
  143. spritelayout spritelayout_teatree_farm_field_15 {
  144. ground { sprite: GROUNDSPRITE_CLEARED; }
  145. building { sprite: spriteset_teatree_farm_field(15); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  146. }
  147. spritelayout spritelayout_teatree_farm_field_16 {
  148. ground { sprite: GROUNDSPRITE_CLEARED; }
  149. building { sprite: spriteset_teatree_farm_field(16); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  150. }
  151. spritelayout spritelayout_teatree_farm_field_17 {
  152. ground { sprite: GROUNDSPRITE_CLEARED; }
  153. building { sprite: spriteset_teatree_farm_field(17); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  154. }
  155. spritelayout spritelayout_teatree_farm_field_18 {
  156. ground { sprite: GROUNDSPRITE_CLEARED; }
  157. building { sprite: spriteset_teatree_farm_field(18); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  158. }
  159. spritelayout spritelayout_teatree_farm_field_19 {
  160. ground { sprite: GROUNDSPRITE_CLEARED; }
  161. building { sprite: spriteset_teatree_farm_field(19); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  162. }
  163. spritelayout spritelayout_teatree_farm_field_20 {
  164. ground { sprite: GROUNDSPRITE_CLEARED; }
  165. building { sprite: spriteset_teatree_farm_field(20); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  166. }
  167. spritelayout spritelayout_teatree_farm_field_21 {
  168. ground { sprite: GROUNDSPRITE_CLEARED; }
  169. building { sprite: spriteset_teatree_farm_field(21); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  170. }
  171. spritelayout spritelayout_teatree_farm_field_22 {
  172. ground { sprite: GROUNDSPRITE_CLEARED; }
  173. building { sprite: spriteset_teatree_farm_field(22); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  174. }
  175. spritelayout spritelayout_teatree_farm_field_23 {
  176. ground { sprite: GROUNDSPRITE_CLEARED; }
  177. building { sprite: spriteset_teatree_farm_field(23); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  178. }
  179. spritelayout spritelayout_teatree_farm_field_24 {
  180. ground { sprite: GROUNDSPRITE_CLEARED; }
  181. building { sprite: spriteset_teatree_farm_field(24); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  182. }
  183. spritelayout spritelayout_teatree_farm_field_25 {
  184. ground { sprite: GROUNDSPRITE_CLEARED; }
  185. building { sprite: spriteset_teatree_farm_field(25); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  186. }
  187. spritelayout spritelayout_teatree_farm_field_26 {
  188. ground { sprite: GROUNDSPRITE_CLEARED; }
  189. building { sprite: spriteset_teatree_farm_field(26); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  190. }
  191. spritelayout spritelayout_teatree_farm_field_27 {
  192. ground { sprite: GROUNDSPRITE_CLEARED; }
  193. building { sprite: spriteset_teatree_farm_field(27); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  194. }
  195. spritelayout spritelayout_teatree_farm_field_28 {
  196. ground { sprite: GROUNDSPRITE_CLEARED; }
  197. building { sprite: spriteset_teatree_farm_field(28); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  198. }
  199. spritelayout spritelayout_teatree_farm_field_29 {
  200. ground { sprite: GROUNDSPRITE_CLEARED; }
  201. building { sprite: spriteset_teatree_farm_field(29); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  202. }
  203. spritelayout spritelayout_teatree_farm_field_30 {
  204. ground { sprite: GROUNDSPRITE_CLEARED; }
  205. building { sprite: spriteset_teatree_farm_field(30); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  206. }
  207. spritelayout spritelayout_teatree_farm_field_31 {
  208. ground { sprite: GROUNDSPRITE_CLEARED; }
  209. building { sprite: spriteset_teatree_farm_field(31); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  210. }
  211. spritelayout spritelayout_teatree_farm_field_32 {
  212. ground { sprite: GROUNDSPRITE_CLEARED; }
  213. building { sprite: spriteset_teatree_farm_field(32); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  214. }
  215. spritelayout spritelayout_teatree_farm_field_33 {
  216. ground { sprite: GROUNDSPRITE_CLEARED; }
  217. building { sprite: spriteset_teatree_farm_field(33); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  218. }
  219. spritelayout spritelayout_teatree_farm_field_34 {
  220. ground { sprite: GROUNDSPRITE_CLEARED; }
  221. building { sprite: spriteset_teatree_farm_field(34); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  222. }
  223. spritelayout spritelayout_teatree_farm_field_35 {
  224. ground { sprite: GROUNDSPRITE_CLEARED; }
  225. building { sprite: spriteset_teatree_farm_field(35); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  226. }
  227. spritelayout spritelayout_teatree_farm_field_36 {
  228. ground { sprite: GROUNDSPRITE_CLEARED; }
  229. building { sprite: spriteset_teatree_farm_field(36); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  230. }
  231. spritelayout spritelayout_teatree_farm_field_37 {
  232. ground { sprite: GROUNDSPRITE_CLEARED; }
  233. building { sprite: spriteset_teatree_farm_field(37); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  234. }
  235. spritelayout spritelayout_teatree_farm_field_38 {
  236. ground { sprite: GROUNDSPRITE_CLEARED; }
  237. building { sprite: spriteset_teatree_farm_field(38); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  238. }
  239. spritelayout spritelayout_teatree_farm_field_39 {
  240. ground { sprite: GROUNDSPRITE_CLEARED; }
  241. building { sprite: spriteset_teatree_farm_field(39); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  242. }
  243. spritelayout spritelayout_teatree_farm_field_40 {
  244. ground { sprite: GROUNDSPRITE_CLEARED; }
  245. building { sprite: spriteset_teatree_farm_field(40); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  246. }
  247. spritelayout spritelayout_teatree_farm_field_41 {
  248. ground { sprite: GROUNDSPRITE_CLEARED; }
  249. building { sprite: spriteset_teatree_farm_field(41); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  250. }
  251. spritelayout spritelayout_teatree_farm_field_42 {
  252. ground { sprite: GROUNDSPRITE_CLEARED; }
  253. building { sprite: spriteset_teatree_farm_field(42); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  254. }
  255. spritelayout spritelayout_teatree_farm_field_43 {
  256. ground { sprite: GROUNDSPRITE_CLEARED; }
  257. building { sprite: spriteset_teatree_farm_field(43); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  258. }
  259. spritelayout spritelayout_teatree_farm_field_44 {
  260. ground { sprite: GROUNDSPRITE_CLEARED; }
  261. building { sprite: spriteset_teatree_farm_field(44); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  262. }
  263. spritelayout spritelayout_teatree_farm_field_45 {
  264. ground { sprite: GROUNDSPRITE_CLEARED; }
  265. building { sprite: spriteset_teatree_farm_field(45); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  266. }
  267. spritelayout spritelayout_teatree_farm_field_46 {
  268. ground { sprite: GROUNDSPRITE_CLEARED; }
  269. building { sprite: spriteset_teatree_farm_field(46); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  270. }
  271. spritelayout spritelayout_teatree_farm_field_47 {
  272. ground { sprite: GROUNDSPRITE_CLEARED; }
  273. building { sprite: spriteset_teatree_farm_field(47); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
  274. }
  275. // ###########################
  276. // # -- ANIMATION CONTROL -- #
  277. // ###########################
  278. switch (FEAT_INDUSTRYTILES, SELF, switch_teatree_farm_field_animation, animation_frame) {
  279. 0: spritelayout_teatree_farm_field_0;
  280. 1: spritelayout_teatree_farm_field_1;
  281. 2: spritelayout_teatree_farm_field_2;
  282. 3: spritelayout_teatree_farm_field_3;
  283. 4: spritelayout_teatree_farm_field_4;
  284. 5: spritelayout_teatree_farm_field_5;
  285. 6: spritelayout_teatree_farm_field_6;
  286. 7: spritelayout_teatree_farm_field_7;
  287. 8: spritelayout_teatree_farm_field_8;
  288. 9: spritelayout_teatree_farm_field_9;
  289. 10: spritelayout_teatree_farm_field_10;
  290. 11: spritelayout_teatree_farm_field_11;
  291. 12: spritelayout_teatree_farm_field_12;
  292. 13: spritelayout_teatree_farm_field_13;
  293. 14: spritelayout_teatree_farm_field_14;
  294. 15: spritelayout_teatree_farm_field_15;
  295. 16: spritelayout_teatree_farm_field_16;
  296. 17: spritelayout_teatree_farm_field_17;
  297. 18: spritelayout_teatree_farm_field_18;
  298. 19: spritelayout_teatree_farm_field_19;
  299. 20: spritelayout_teatree_farm_field_20;
  300. 21: spritelayout_teatree_farm_field_21;
  301. 22: spritelayout_teatree_farm_field_22;
  302. 23: spritelayout_teatree_farm_field_23;
  303. 24: spritelayout_teatree_farm_field_24;
  304. 25: spritelayout_teatree_farm_field_25;
  305. 26: spritelayout_teatree_farm_field_26;
  306. 27: spritelayout_teatree_farm_field_27;
  307. 28: spritelayout_teatree_farm_field_28;
  308. 29: spritelayout_teatree_farm_field_29;
  309. 30: spritelayout_teatree_farm_field_30;
  310. 31: spritelayout_teatree_farm_field_31;
  311. 32: spritelayout_teatree_farm_field_32;
  312. 33: spritelayout_teatree_farm_field_33;
  313. 34: spritelayout_teatree_farm_field_34;
  314. 35: spritelayout_teatree_farm_field_35;
  315. 36: spritelayout_teatree_farm_field_36;
  316. 37: spritelayout_teatree_farm_field_37;
  317. 38: spritelayout_teatree_farm_field_38;
  318. 39: spritelayout_teatree_farm_field_39;
  319. 40: spritelayout_teatree_farm_field_40;
  320. 41: spritelayout_teatree_farm_field_41;
  321. 42: spritelayout_teatree_farm_field_42;
  322. 43: spritelayout_teatree_farm_field_43;
  323. 44: spritelayout_teatree_farm_field_44;
  324. 45: spritelayout_teatree_farm_field_45;
  325. 46: spritelayout_teatree_farm_field_46;
  326. 47: spritelayout_teatree_farm_field_47;
  327. }
  328. random_switch(FEAT_INDUSTRYTILES, SELF, random_switch_teatree_farm_field_animation_trigger) {
  329. 1: return 0; 1: return 1; 1: return 2; 1: return 3;
  330. 1: return 4; 1: return 5; 1: return 6; 1: return 7;
  331. 1: return 8; 1: return 9; 1: return 10; 1: return 11;
  332. 1: return 12; 1: return 13; 1: return 14; 1: return 15;
  333. 1: return 16; 1: return 17; 1: return 18; 1: return 19;
  334. 1: return 20; 1: return 21; 1: return 22; 1: return 23;
  335. 1: return 24; 1: return 25; 1: return 26; 1: return 27;
  336. 1: return 28; 1: return 29; 1: return 30; 1: return 31;
  337. 1: return 32; 1: return 33; 1: return 34; 1: return 35;
  338. 1: return 36; 1: return 37; 1: return 38; 1: return 39;
  339. 1: return 40; 1: return 41; 1: return 42; 1: return 43;
  340. 1: return 44; 1: return 45; 1: return 46; 1: return 47;
  341. }
  342. // #######################
  343. // # -- INDUSTRYTILES -- #
  344. // #######################
  345. item (FEAT_INDUSTRYTILES, item_industry_teatree_farm_building_tile_1) {
  346. property { substitute: 27; }
  347. graphics { default: spritelayout_teatree_farm_building_1; }
  348. }
  349. item (FEAT_INDUSTRYTILES, item_industry_teatree_farm_building_tile_2) {
  350. property { substitute: 27; }
  351. graphics { default: spritelayout_teatree_farm_building_2; }
  352. }
  353. item (FEAT_INDUSTRYTILES, item_industry_teatree_farm_building_tile_3) {
  354. property { substitute: 27; }
  355. graphics { default: spritelayout_teatree_farm_building_3; }
  356. }
  357. item (FEAT_INDUSTRYTILES, item_industry_teatree_farm_building_tile_4) {
  358. property { substitute: 27; }
  359. graphics { default: spritelayout_teatree_farm_building_4; }
  360. }
  361. item (FEAT_INDUSTRYTILES, item_industry_teatree_farm_field_tile) {
  362. property {
  363. substitute: 27;
  364. animation_info: [ANIMATION_LOOPING,48];
  365. animation_speed: 4;
  366. animation_triggers: bitmask(ANIM_TRIGGER_INDTILE_CONSTRUCTION_STATE);
  367. special_flags: bitmask(INDTILE_FLAG_RANDOM_ANIMATION);
  368. }
  369. graphics {
  370. anim_control: random_switch_teatree_farm_field_animation_trigger;
  371. switch_teatree_farm_field_animation;
  372. }
  373. }
  374. // #####################
  375. // # -- TILELAYOUTS -- #
  376. // #####################
  377. // # Farm #
  378. // ########
  379. tilelayout item_industry_teatree_farm_tilelayout_1 {
  380. 0, 1: item_industry_teatree_farm_field_tile;
  381. 2, 0: item_industry_teatree_farm_field_tile;
  382. 3, 2: item_industry_teatree_farm_field_tile;
  383. 2, 3: item_industry_teatree_farm_field_tile;
  384. 0, 3: item_industry_teatree_farm_field_tile;
  385. 1, 1: item_industry_teatree_farm_building_tile_1;
  386. 1, 2: item_industry_teatree_farm_building_tile_2;
  387. 0, 2: item_industry_teatree_farm_building_tile_4;
  388. }
  389. tilelayout item_industry_teatree_farm_tilelayout_2 {
  390. 1, 2: item_industry_teatree_farm_field_tile;
  391. 2, 0: item_industry_teatree_farm_field_tile;
  392. 3, 2: item_industry_teatree_farm_field_tile;
  393. 2, 3: item_industry_teatree_farm_field_tile;
  394. 0, 3: item_industry_teatree_farm_field_tile;
  395. 0, 0: item_industry_teatree_farm_building_tile_3;
  396. 1, 0: item_industry_teatree_farm_building_tile_1;
  397. 0, 1: item_industry_teatree_farm_building_tile_2;
  398. }
  399. tilelayout item_industry_teatree_farm_tilelayout_3 {
  400. 1, 0: item_industry_teatree_farm_field_tile;
  401. 2, 2: item_industry_teatree_farm_field_tile;
  402. 3, 3: item_industry_teatree_farm_field_tile;
  403. 3, 1: item_industry_teatree_farm_field_tile;
  404. 0, 2: item_industry_teatree_farm_field_tile;
  405. 1, 2: item_industry_teatree_farm_building_tile_3;
  406. 1, 3: item_industry_teatree_farm_building_tile_2;
  407. 0, 3: item_industry_teatree_farm_building_tile_4;
  408. }
  409. tilelayout item_industry_teatree_farm_tilelayout_4 {
  410. 0, 0: item_industry_teatree_farm_field_tile;
  411. 1, 1: item_industry_teatree_farm_field_tile;
  412. 3, 1: item_industry_teatree_farm_field_tile;
  413. 3, 3: item_industry_teatree_farm_field_tile;
  414. 0, 3: item_industry_teatree_farm_field_tile;
  415. 2, 0: item_industry_teatree_farm_building_tile_1;
  416. 1, 2: item_industry_teatree_farm_building_tile_2;
  417. 0, 2: item_industry_teatree_farm_building_tile_4;
  418. }
  419. // ####################
  420. // # -- INDUSTRIES -- #
  421. // ####################
  422. item (FEAT_INDUSTRIES, item_industry_teatree_farm) {
  423. property {
  424. substitute: INDUSTRYTYPE_COAL_MINE;
  425. name: string(STR_FARM_INDUSTRY_NAME);
  426. nearby_station_name: string(STR_STATION, string(STR_TOWN), string(STR_FARM_INDUSTRY_NAME));
  427. life_type: IND_LIFE_TYPE_ORGANIC;
  428. cargo_types:[
  429. produce_cargo("TEAL", 12)
  430. ];
  431. layouts:[
  432. item_industry_teatree_farm_tilelayout_1,
  433. item_industry_teatree_farm_tilelayout_2,
  434. item_industry_teatree_farm_tilelayout_3,
  435. item_industry_teatree_farm_tilelayout_4
  436. ];
  437. min_cargo_distr: 4;
  438. prob_map_gen: 8;
  439. prob_in_game: 5;
  440. map_colour: 86;
  441. }
  442. }