1dirname = path.dirname(__file__)
2
3animations = {
4   idle = {
5      pictures = path.list_files(dirname .. "waiting_???.png"),
6      hotspot = { 13, 21 },
7      fps = 10
8   },
9   work = {
10      pictures = path.list_files(dirname .. "work_??.png"),
11      sound_effect = {
12         path = "sound/hammering/hammering",
13         priority = 64
14      },
15      hotspot = { 11, 21 },
16      fps = 10
17   }
18}
19add_directional_animation(animations, "walk", dirname, "walk", {11, 23}, 10)
20add_directional_animation(animations, "walkload", dirname, "walk", {11, 23}, 10)
21
22
23tribes:new_worker_type {
24   msgctxt = "empire_worker",
25   name = "empire_builder",
26   -- TRANSLATORS: This is a worker name used in lists of workers
27   descname = pgettext("empire_worker", "Builder"),
28   helptext_script = dirname .. "helptexts.lua",
29   icon = dirname .. "menu.png",
30   vision_range = 2,
31
32   buildcost = {
33      empire_carrier = 1,
34      hammer = 1
35   },
36
37   animations = animations,
38}
39