1dirname = path.dirname (__file__)
2
3terrain_affinity = {
4   preferred_temperature = 115,
5   preferred_humidity = 600,
6   preferred_fertility = 200,
7   pickiness = 15,
8}
9
10tribes:new_immovable_type {
11   msgctxt = "immovable",
12   name = "berry_bush_juniper_tiny",
13   descname = _ "Juniper (tiny)",
14   size = "small",
15   helptext_script = dirname .. "helptexts.lua",
16   icon = dirname .. "tiny/menu.png",
17   attributes = { "seed_berrybush" },
18   terrain_affinity = terrain_affinity,
19   programs = {
20      program = {
21         "animate=idle 10000",
22         "grow=berry_bush_juniper_small",
23      },
24   },
25   spritesheets = {
26      idle = {
27         directory = dirname .. "tiny",
28         basename = "idle",
29         hotspot = {3, 15},
30         frames = 4,
31         columns = 2,
32         rows = 2,
33      }
34   }
35}
36
37tribes:new_immovable_type {
38   msgctxt = "immovable",
39   name = "berry_bush_juniper_small",
40   descname = _ "Juniper (small)",
41   size = "small",
42   helptext_script = dirname .. "helptexts.lua",
43   icon = dirname .. "small/menu.png",
44   attributes = {},
45   terrain_affinity = terrain_affinity,
46   programs = {
47      program = {
48         "animate=idle 10000",
49         "grow=berry_bush_juniper_medium",
50      },
51   },
52   spritesheets = {
53      idle = {
54         directory = dirname .. "small",
55         basename = "idle",
56         hotspot = {6, 30},
57         frames = 4,
58         columns = 2,
59         rows = 2,
60      }
61   }
62}
63
64tribes:new_immovable_type {
65   msgctxt = "immovable",
66   name = "berry_bush_juniper_medium",
67   descname = _ "Juniper (medium)",
68   size = "small",
69   helptext_script = dirname .. "helptexts.lua",
70   icon = dirname .. "medium/menu.png",
71   attributes = { "flowering" },
72   terrain_affinity = terrain_affinity,
73   programs = {
74      program = {
75         "animate=idle 70000",
76         "grow=berry_bush_juniper_ripe",
77      },
78   },
79   spritesheets = {
80      idle = {
81         directory = dirname .. "medium",
82         basename = "idle",
83         hotspot = {10, 47},
84         frames = 4,
85         columns = 2,
86         rows = 2,
87      }
88   }
89}
90
91tribes:new_immovable_type {
92   msgctxt = "immovable",
93   name = "berry_bush_juniper_ripe",
94   descname = _ "Juniper (ripe)",
95   size = "small",
96   helptext_script = dirname .. "helptexts.lua",
97   icon = dirname .. "ripe/menu.png",
98   attributes = { "ripe_bush" },
99   terrain_affinity = terrain_affinity,
100   programs = {
101      program = {
102         "animate=idle 800000",
103         "remove=",
104      },
105      harvest = {
106         "remove=",
107      }
108   },
109   spritesheets = {
110      idle = {
111         directory = dirname .. "ripe",
112         basename = "idle",
113         hotspot = {11, 49},
114         frames = 4,
115         columns = 2,
116         rows = 2,
117      }
118   }
119}
120