1dirname = path.dirname(__file__) 2 3animations = { 4 idle = { 5 pictures = path.list_files(dirname .. "idle_??.png"), 6 hotspot = { 5, 23 } 7 } 8} 9add_directional_animation(animations, "walk", dirname, "walk", {8, 24}, 10) 10add_directional_animation(animations, "walkload", dirname, "walkload", {8, 24}, 10) 11 12 13tribes:new_worker_type { 14 msgctxt = "empire_worker", 15 name = "empire_miller", 16 -- TRANSLATORS: This is a worker name used in lists of workers 17 descname = pgettext("empire_worker", "Miller"), 18 helptext_script = dirname .. "helptexts.lua", 19 icon = dirname .. "menu.png", 20 vision_range = 2, 21 22 buildcost = { 23 empire_carrier = 1 24 }, 25 26 animations = animations, 27} 28