1{
2palettes: "@include data/palettes.cfg:forest_palettes",
3tile_pattern: [
4
5	#solid
6	{
7		image: "tiles/forest-ground1.png",
8		tiles: "00",
9		solid: true,
10		pattern: "(frg)?,(frg)?,(frg)?,
11(frg)?,(frg) ,(frg)?,
12(frg)?,(frg)?,(frg)?",
13	},
14
15	#    [tile]
16	#    image=tiles/forest-ground2.png
17	#    tiles=00
18	#	zorder=20
19	#    [/tile]
20	{
21		image: "tiles/forest-ground1.png",
22		tiles: 10,
23		solid: true,
24		pattern: ".*    ,.*   ,.*  ,
25.*    ,(frg),.*  ,
26.*    ,.*   ,.*",
27	},
28],
29multi_tile_pattern: [
30
31	#Design note:  2x2s must go after 3x3s; they're only used if the 3x3 doesn't fit.
32	#
33	#
34	# 3x3 INTERIOR CORNERS
35	{
36		id: "test2",
37		chance: 100,
38		pattern: "frg         , frg        , frg        ,           ,
39    		        frg         , frg->tile1 , frg->tile2 ,    ->tile3,
40                    frg         , frg->tile4 , frg->tile5 , frg->tile6, frg
41                    frg         , frg->tile7 , frg->tile8 , frg->tile9, frg
42                    frg         , frg        , frg        , frg       , frg",
43		tile1: {
44			image: "tiles/forest-ground2.png",
45			tiles: 60,
46			solid: true,
47		},
48		tile2: {
49			image: "tiles/forest-ground2.png",
50			tiles: 61,
51			solid: true,
52		},
53		tile3: {
54			image: "tiles/forest-ground2.png",
55			tiles: 62,
56			solid: false,
57		},
58		tile4: {
59			image: "tiles/forest-ground2.png",
60			tiles: 70,
61			solid: true,
62		},
63		tile5: {
64			image: "tiles/forest-ground2.png",
65			tiles: 71,
66			solid: true,
67		},
68		tile6: {
69			image: "tiles/forest-ground2.png",
70			tiles: 72,
71			solid: true,
72		},
73		tile7: {
74			image: "tiles/forest-ground2.png",
75			tiles: 80,
76			solid: true,
77		},
78		tile8: {
79			image: "tiles/forest-ground2.png",
80			tiles: 81,
81			solid: true,
82		},
83		tile9: {
84			image: "tiles/forest-ground2.png",
85			tiles: 82,
86			solid: true,
87		},
88	},
89	{
90		id: "test3",
91		chance: 100,
92		pattern: ",             , frg        , frg       , frg
93    		     ,     ->tile1 , frg->tile2 , frg->tile3, frg
94              frg,  frg->tile4 , frg->tile5 , frg->tile6, frg
95              frg,  frg->tile7 , frg->tile8 , frg->tile9, frg
96              frg,  frg        , frg        , frg       , frg",
97		tile1: {
98			image: "tiles/forest-ground2.png",
99			tiles: 63,
100			solid: false,
101		},
102		tile2: {
103			image: "tiles/forest-ground2.png",
104			tiles: 64,
105			solid: true,
106		},
107		tile3: {
108			image: "tiles/forest-ground2.png",
109			tiles: 65,
110			solid: true,
111		},
112		tile4: {
113			image: "tiles/forest-ground2.png",
114			tiles: 73,
115			solid: true,
116		},
117		tile5: {
118			image: "tiles/forest-ground2.png",
119			tiles: 74,
120			solid: true,
121		},
122		tile6: {
123			image: "tiles/forest-ground2.png",
124			tiles: 75,
125			solid: true,
126		},
127		tile7: {
128			image: "tiles/forest-ground2.png",
129			tiles: 83,
130			solid: true,
131		},
132		tile8: {
133			image: "tiles/forest-ground2.png",
134			tiles: 84,
135			solid: true,
136		},
137		tile9: {
138			image: "tiles/forest-ground2.png",
139			tiles: 85,
140			solid: true,
141		},
142	},
143	{
144		id: "test4",
145		chance: 100,
146		pattern: "frg , frg        , frg       , frg        , frg
147                    frg , frg->tile1 , frg->tile2, frg->tile3 , frg
148                    frg , frg->tile4 , frg->tile5, frg->tile6 , frg
149                    frg , frg->tile7 , frg->tile8,    ->tile9 ,
150                    frg , frg        , frg       ,            ,",
151		tile1: {
152			image: "tiles/forest-ground2.png",
153			tiles: 66,
154			solid: true,
155		},
156		tile2: {
157			image: "tiles/forest-ground2.png",
158			tiles: 67,
159			solid: true,
160		},
161		tile3: {
162			image: "tiles/forest-ground2.png",
163			tiles: 68,
164			solid: true,
165		},
166		tile4: {
167			image: "tiles/forest-ground2.png",
168			tiles: 76,
169			solid: true,
170		},
171		tile5: {
172			image: "tiles/forest-ground2.png",
173			tiles: 77,
174			solid: true,
175		},
176		tile6: {
177			image: "tiles/forest-ground2.png",
178			tiles: 78,
179			solid: true,
180		},
181		tile7: {
182			image: "tiles/forest-ground2.png",
183			tiles: 86,
184			solid: true,
185		},
186		tile8: {
187			image: "tiles/forest-ground2.png",
188			tiles: 87,
189			solid: true,
190		},
191		tile9: {
192			image: "tiles/forest-ground2.png",
193			tiles: 88,
194		},
195	},
196	{
197		id: "test5",
198		chance: 100,
199		pattern: "frg,  frg        , frg       , frg        , frg
200              frg,  frg->tile1 , frg->tile2, frg->tile3 , frg
201              frg,  frg->tile4 , frg->tile5, frg->tile6 , frg
202                 ,     ->tile7 , frg->tile8, frg->tile9 , frg
203                 ,             , frg        , frg       , frg",
204		tile1: {
205			image: "tiles/forest-ground2.png",
206			tiles: 69,
207			solid: true,
208		},
209		tile2: {
210			image: "tiles/forest-ground2.png",
211			tiles: "6a",
212			solid: true,
213		},
214		tile3: {
215			image: "tiles/forest-ground2.png",
216			tiles: "6b",
217			solid: true,
218		},
219		tile4: {
220			image: "tiles/forest-ground2.png",
221			tiles: 79,
222			solid: true,
223		},
224		tile5: {
225			image: "tiles/forest-ground2.png",
226			tiles: "7a",
227			solid: true,
228		},
229		tile6: {
230			image: "tiles/forest-ground2.png",
231			tiles: "7b",
232			solid: true,
233		},
234		tile7: {
235			image: "tiles/forest-ground2.png",
236			tiles: 89,
237		},
238		tile8: {
239			image: "tiles/forest-ground2.png",
240			tiles: "8a",
241			solid: true,
242		},
243		tile9: {
244			image: "tiles/forest-ground2.png",
245			tiles: "8b",
246			solid: true,
247		},
248	},
249
250	#
251	#
252	# ???
253	{
254		id: "testc",
255		chance: 100,
256		pattern: ",            , frg
257                         ,    ->tile1 , frg->tile2
258                    (frg)?, frg->tile3 , frg
259                    frg  , frg        , frg",
260		tile1: {
261			image: "tiles/forest-ground1.png",
262			tiles: "c4",
263			solid: "diagonal",
264		},
265		tile2: {
266			image: "tiles/forest-ground1.png",
267			tiles: "c5",
268			solid: true,
269		},
270		tile3: {
271			image: "tiles/forest-ground1.png",
272			tiles: "d4",
273			solid: true,
274		},
275	},
276	{
277		id: "testc",
278		chance: 100,
279		pattern: "frg        ,            ,
280                    frg->tile1 ,    ->tile2 ,
281                    frg        , frg->tile3 , (frg)?
282                    frg        , frg        , frg",
283		tile1: {
284			image: "tiles/forest-ground1.png",
285			tiles: "c6",
286			solid: true,
287		},
288		tile2: {
289			image: "tiles/forest-ground1.png",
290			tiles: "c7",
291			solid: "reverse_diagonal",
292		},
293		tile3: {
294			image: "tiles/forest-ground1.png",
295			tiles: "d7",
296			solid: true,
297		},
298	},
299	{
300		id: "testc",
301		chance: 100,
302		pattern: "frg        , frg        , frg
303                    frg        , frg->tile1 ,(frg)?
304                    frg->tile2 ,    ->tile3 ,
305                    frg        ,            ,",
306		tile1: {
307			image: "tiles/forest-ground1.png",
308			tiles: "e7",
309			solid: true,
310		},
311		tile2: {
312			image: "tiles/forest-ground1.png",
313			tiles: "f6",
314			solid: true,
315		},
316		tile3: {
317			image: "tiles/forest-ground1.png",
318			tiles: "f7",
319			solid: false,
320		},
321	},
322	{
323		id: "testc",
324		chance: 100,
325		pattern: "frg        , frg        , frg
326                   (frg)?      , frg->tile1 , frg
327                               ,    ->tile2 , frg->tile3
328                               ,            , frg",
329		tile1: {
330			image: "tiles/forest-ground1.png",
331			tiles: "e4",
332			solid: true,
333		},
334		tile2: {
335			image: "tiles/forest-ground1.png",
336			tiles: "f4",
337			solid: true,
338		},
339		tile3: {
340			image: "tiles/forest-ground1.png",
341			tiles: "f5",
342			solid: false,
343		},
344	},
345
346	#
347	#
348	# DIAGONALS/SLOPES
349	{
350		id: "test6",
351		chance: 100,
352		pattern: "frg         , frg        ,(frg)?
353                       ->tile1  , frg->tile2 , frg
354                                , frg        , frg",
355		tile1: {
356			image: "tiles/forest-ground1.png",
357			tiles: 80,
358		},
359		tile2: {
360			image: "tiles/forest-ground1.png",
361			tiles: 81,
362			solid: true,
363		},
364	},
365	{
366		chance: 100,
367		pattern: ", frg        , frg
368                       ->tile1  , frg->tile2 , frg
369                    frg         , frg        ,(frg)?",
370		tile1: {
371			image: "tiles/forest-ground1.png",
372			tiles: 90,
373			solid: "diagonal",
374		},
375		tile2: {
376			image: "tiles/forest-ground1.png",
377			tiles: 91,
378			solid: true,
379		},
380	},
381	{
382		id: "test7",
383		chance: 100,
384		pattern: "(frg)?      , frg        , frg
385                    frg        , frg->tile1 ,    ->tile2
386                    frg        , frg        ,",
387		tile1: {
388			image: "tiles/forest-ground1.png",
389			tiles: "a0",
390			solid: true,
391		},
392		tile2: {
393			image: "tiles/forest-ground1.png",
394			tiles: "a1",
395		},
396	},
397	{
398		id: "test8",
399		chance: 100,
400		pattern: "frg        , frg        ,
401                    frg        , frg->tile1 ,    ->tile2
402                   (frg)?      , frg        , frg",
403		tile1: {
404			image: "tiles/forest-ground1.png",
405			tiles: "b0",
406			solid: true,
407		},
408		tile2: {
409			image: "tiles/forest-ground1.png",
410			tiles: "b1",
411			solid: "reverse_diagonal",
412		},
413	},
414	{
415		id: "test9",
416		chance: 100,
417		pattern: "frg  , frg        , frg
418                    frg  , frg        ,(frg)?
419                    frg  ,    ->tile1 ,
420                         ,    ->tile2 ,",
421		tile1: {
422			image: "tiles/forest-ground1.png",
423			tiles: "a2",
424			solid: true,
425		},
426		tile2: {
427			image: "tiles/forest-ground1.png",
428			tiles: "b2",
429		},
430	},
431	{
432		id: "testa",
433		chance: 100,
434		pattern: "frg  , frg        , frg
435                   (frg)?, frg        , frg
436                         ,    ->tile1 , frg
437                         ,    ->tile2 ,",
438		tile1: {
439			image: "tiles/forest-ground1.png",
440			tiles: "a3",
441			solid: true,
442		},
443		tile2: {
444			image: "tiles/forest-ground1.png",
445			tiles: "b3",
446		},
447	},
448	{
449		id: "testb",
450		chance: 100,
451		pattern: ",    ->tile1 ,
452                    frg  ,    ->tile2 ,
453                    frg  , frg        ,(frg)?
454                    frg  , frg        , frg",
455		tile1: {
456			image: "tiles/forest-ground1.png",
457			tiles: 82,
458		},
459		tile2: {
460			image: "tiles/forest-ground1.png",
461			tiles: 92,
462			solid: "reverse_diagonal",
463		},
464	},
465	{
466		id: "testc",
467		chance: 100,
468		pattern: ",    ->tile1 ,
469                         ,    ->tile2 , frg
470                   (frg)?, frg        , frg
471                    frg  , frg        , frg",
472		tile1: {
473			image: "tiles/forest-ground1.png",
474			tiles: 83,
475		},
476		tile2: {
477			image: "tiles/forest-ground1.png",
478			tiles: 93,
479			solid: "diagonal",
480		},
481	},
482
483	#
484	#
485	# 2x2 INTERIOR CORNERS
486	{
487		id: "testd",
488		chance: 100,
489		pattern: "frg  , frg        , (frg)?     ,
490                    frg  , frg->tile1 , frg->tile2 ,(frg)?
491                    frg  , frg->tile3 , frg->tile4 , frg
492                    frg  , frg        , frg        , frg",
493		tile1: {
494			image: "tiles/forest-ground2.png",
495			tiles: "c0",
496			solid: true,
497		},
498		tile2: {
499			image: "tiles/forest-ground2.png",
500			tiles: "c1",
501			solid: true,
502		},
503		tile3: {
504			image: "tiles/forest-ground2.png",
505			tiles: "d0",
506			solid: true,
507		},
508		tile4: {
509			image: "tiles/forest-ground2.png",
510			tiles: "d1",
511			solid: true,
512		},
513	},
514	{
515		id: "teste",
516		chance: 100,
517		pattern: ",(frg)?      , frg        , frg
518                   (frg)?, frg->tile1 , frg->tile2 , frg
519                    frg  , frg->tile3 , frg->tile4 , frg
520                    frg  , frg        , frg        , frg",
521		tile1: {
522			image: "tiles/forest-ground2.png",
523			tiles: "c2",
524			solid: true,
525		},
526		tile2: {
527			image: "tiles/forest-ground2.png",
528			tiles: "c3",
529			solid: true,
530		},
531		tile3: {
532			image: "tiles/forest-ground2.png",
533			tiles: "d2",
534			solid: true,
535		},
536		tile4: {
537			image: "tiles/forest-ground2.png",
538			tiles: "d3",
539			solid: true,
540		},
541	},
542	{
543		id: "testf",
544		chance: 100,
545		pattern: "frg  , frg        , frg        , frg
546                    frg  , frg->tile1 , frg->tile2 , frg
547                    frg  , frg->tile3 , frg->tile4 ,(frg)?
548                    frg  , frg        ,(frg)?      ,",
549		tile1: {
550			image: "tiles/forest-ground2.png",
551			tiles: "c4",
552			solid: true,
553		},
554		tile2: {
555			image: "tiles/forest-ground2.png",
556			tiles: "c5",
557			solid: true,
558		},
559		tile3: {
560			image: "tiles/forest-ground2.png",
561			tiles: "d4",
562			solid: true,
563		},
564		tile4: {
565			image: "tiles/forest-ground2.png",
566			tiles: "d5",
567			solid: true,
568		},
569	},
570	{
571		id: "testg",
572		chance: 100,
573		pattern: "frg  , frg        , frg        , frg
574                    frg  , frg->tile1 , frg->tile2 , frg
575                   (frg)?, frg->tile3 , frg->tile4 , frg
576                         , (frg)?     , frg        , frg",
577		tile1: {
578			image: "tiles/forest-ground2.png",
579			tiles: "c6",
580			solid: true,
581		},
582		tile2: {
583			image: "tiles/forest-ground2.png",
584			tiles: "c7",
585			solid: true,
586		},
587		tile3: {
588			image: "tiles/forest-ground2.png",
589			tiles: "d6",
590			solid: true,
591		},
592		tile4: {
593			image: "tiles/forest-ground2.png",
594			tiles: "d7",
595			solid: true,
596		},
597	},
598
599	#
600	#
601	# 2x2 EXTERIOR CORNERS
602	{
603		id: "test1",
604		chance: 100,
605		pattern: ",            ,            ,
606                         ,    ->tile1 ,    ->tile2 ,
607                    frg  , frg->tile3 ,    ->tile4 ,
608                    frg  , frg        ,            ,",
609		tile1: {
610			image: "tiles/forest-ground2.png",
611			tiles: "c8",
612		},
613		tile2: {
614			image: "tiles/forest-ground2.png",
615			tiles: "c9",
616		},
617		tile3: {
618			image: "tiles/forest-ground2.png",
619			tiles: "d8",
620			solid: true,
621		},
622		tile4: {
623			image: "tiles/forest-ground2.png",
624			tiles: "d9",
625		},
626	},
627	{
628		id: "testh",
629		chance: 100,
630		pattern: "->tile1 ,    ->tile2 ,
631                             ->tile3 , frg->tile4 , frg
632                                     , frg        , frg",
633		tile1: {
634			image: "tiles/forest-ground2.png",
635			tiles: "ca",
636		},
637		tile2: {
638			image: "tiles/forest-ground2.png",
639			tiles: "cb",
640		},
641		tile3: {
642			image: "tiles/forest-ground2.png",
643			tiles: "da",
644		},
645		tile4: {
646			image: "tiles/forest-ground2.png",
647			tiles: "db",
648			solid: true,
649		},
650	},
651	{
652		id: "testi",
653		chance: 100,
654		pattern: "frg , frg        ,            ,
655                     frg , frg->tile1 ,    ->tile2 ,
656                         ,    ->tile3 ,    ->tile4 ,
657                         ,            ,            ,",
658		tile1: {
659			image: "tiles/forest-ground2.png",
660			tiles: "cc",
661			solid: true,
662		},
663		tile2: {
664			image: "tiles/forest-ground2.png",
665			tiles: "cd",
666		},
667		tile3: {
668			image: "tiles/forest-ground2.png",
669			tiles: "dc",
670		},
671		tile4: {
672			image: "tiles/forest-ground2.png",
673			tiles: "dd",
674		},
675	},
676	{
677		id: "testj",
678		chance: 100,
679		pattern: ",            , frg        , frg
680                         ,    ->tile1 , frg->tile2 , frg
681                         ,    ->tile3 ,    ->tile4 ,
682                         ,            ,            ,",
683		tile1: {
684			image: "tiles/forest-ground2.png",
685			tiles: "ce",
686		},
687		tile2: {
688			image: "tiles/forest-ground2.png",
689			tiles: "cf",
690			solid: true,
691		},
692		tile3: {
693			image: "tiles/forest-ground2.png",
694			tiles: "de",
695		},
696		tile4: {
697			image: "tiles/forest-ground2.png",
698			tiles: "df",
699		},
700	},
701
702	#
703	#
704	# 2x2 EXTERIOR SLOPED CORNERS
705	{
706		id: "test1",
707		chance: 100,
708		pattern: ",    ->tile1 ,    ->tile2
709                    frg  ,    ->tile3 ,    ->tile4
710                    frg  , frg        ,",
711		tile1: {
712			image: "tiles/forest-ground1.png",
713			tiles: 86,
714		},
715		tile2: {
716			image: "tiles/forest-ground1.png",
717			tiles: 87,
718		},
719		tile3: {
720			image: "tiles/forest-ground1.png",
721			tiles: 96,
722			solid: "reverse_diagonal",
723		},
724		tile4: {
725			image: "tiles/forest-ground1.png",
726			tiles: 97,
727		},
728	},
729	{
730		id: "testh",
731		chance: 100,
732		pattern: "->tile1 ,    ->tile2 ,
733                             ->tile3 ,    ->tile4 , frg
734                                     , frg        , frg",
735		tile1: {
736			image: "tiles/forest-ground1.png",
737			tiles: 84,
738		},
739		tile2: {
740			image: "tiles/forest-ground1.png",
741			tiles: 85,
742		},
743		tile3: {
744			image: "tiles/forest-ground1.png",
745			tiles: 94,
746		},
747		tile4: {
748			image: "tiles/forest-ground1.png",
749			tiles: 95,
750			solid: "diagonal",
751		},
752	},
753	{
754		id: "testi",
755		chance: 100,
756		pattern: "frg , frg        ,
757                     frg ,    ->tile1 ,    ->tile2
758                         ,    ->tile3 ,    ->tile4",
759		tile1: {
760			image: "tiles/forest-ground1.png",
761			tiles: "a6",
762			solid: true,
763		},
764		tile2: {
765			image: "tiles/forest-ground1.png",
766			tiles: "a7",
767		},
768		tile3: {
769			image: "tiles/forest-ground1.png",
770			tiles: "b6",
771		},
772		tile4: {
773			image: "tiles/forest-ground1.png",
774			tiles: "b7",
775		},
776	},
777	{
778		id: "testj",
779		chance: 100,
780		pattern: ", frg        , frg
781                        ->tile1 ,    ->tile2 , frg
782                        ->tile3 ,    ->tile4 ,",
783		tile1: {
784			image: "tiles/forest-ground1.png",
785			tiles: "a4",
786		},
787		tile2: {
788			image: "tiles/forest-ground1.png",
789			tiles: "a5",
790			solid: true,
791		},
792		tile3: {
793			image: "tiles/forest-ground1.png",
794			tiles: "b4",
795		},
796		tile4: {
797			image: "tiles/forest-ground1.png",
798			tiles: "b5",
799		},
800	},
801],
802}