1dirname = path.dirname(__file__)
2
3tribes:new_worker_type {
4   msgctxt = "barbarians_worker",
5   name = "barbarians_builder",
6   -- TRANSLATORS: This is a worker name used in lists of workers
7   descname = pgettext("barbarians_worker", "Builder"),
8   helptext_script = dirname .. "helptexts.lua",
9   animation_directory = dirname,
10   icon = dirname .. "menu.png",
11   vision_range = 2,
12
13   buildcost = {
14      barbarians_carrier = 1,
15      hammer = 1
16   },
17
18   spritesheets = {
19      idle = {
20         fps = 10,
21         frames = 150,
22         rows = 13,
23         columns = 12,
24         hotspot = { 9, 18 }
25      },
26      walk = {
27         fps = 10,
28         frames = 10,
29         rows = 4,
30         columns = 3,
31         directional = true,
32         hotspot = { 7, 22 }
33      },
34      work = {
35         fps = 10,
36         frames = 92,
37         rows = 11,
38         columns = 9,
39         hotspot = { 9, 22 },
40         sound_effect = {
41            path = "sound/hammering/hammering",
42            priority = 64
43         }
44      }
45   }
46}
47