1dirname = path.dirname (__file__)
2
3terrain_affinity = {
4   preferred_temperature = 95,
5   preferred_humidity = 550,
6   preferred_fertility = 450,
7   pickiness = 40,
8}
9
10tribes:new_immovable_type {
11   msgctxt = "immovable",
12   name = "berry_bush_currant_red_tiny",
13   descname = _ "Red Currant (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 24000",
22         "grow=berry_bush_currant_red_small",
23      },
24   },
25   spritesheets = {
26      idle = {
27         directory = dirname .. "tiny",
28         basename = "idle",
29         hotspot = {4, 10},
30         frames = 4,
31         columns = 2,
32         rows = 2,
33      }
34   }
35}
36
37tribes:new_immovable_type {
38   msgctxt = "immovable",
39   name = "berry_bush_currant_red_small",
40   descname = _ "Red Currant (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 28000",
49         "grow=berry_bush_currant_red_medium",
50      },
51   },
52   spritesheets = {
53      idle = {
54         directory = dirname .. "small",
55         basename = "idle",
56         hotspot = {8, 20},
57         frames = 4,
58         columns = 2,
59         rows = 2,
60      }
61   }
62}
63
64tribes:new_immovable_type {
65   msgctxt = "immovable",
66   name = "berry_bush_currant_red_medium",
67   descname = _ "Red Currant (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 26000",
76         "grow=berry_bush_currant_red_ripe",
77      },
78   },
79   spritesheets = {
80      idle = {
81         directory = dirname .. "medium",
82         basename = "idle",
83         hotspot = {13, 33},
84         frames = 4,
85         columns = 2,
86         rows = 2,
87      }
88   }
89}
90
91tribes:new_immovable_type {
92   msgctxt = "immovable",
93   name = "berry_bush_currant_red_ripe",
94   descname = _ "Red Currant (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 250000",
103         "remove=",
104      },
105      harvest = {
106         "remove=",
107      }
108   },
109   spritesheets = {
110      idle = {
111         directory = dirname .. "ripe",
112         basename = "idle",
113         hotspot = {13, 33},
114         frames = 4,
115         columns = 2,
116         rows = 2,
117      }
118   }
119}
120