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