1dirname = path.dirname(__file__) 2 3tribes:new_worker_type { 4 msgctxt = "barbarians_worker", 5 name = "barbarians_helmsmith", 6 -- TRANSLATORS: This is a worker name used in lists of workers 7 descname = pgettext("barbarians_worker", "Helmsmith"), 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 animations = { 19 idle = { 20 hotspot = { 4, 20 } 21 } 22 }, 23 spritesheets = { 24 walk = { 25 fps = 10, 26 frames = 10, 27 rows = 4, 28 columns = 3, 29 directional = true, 30 hotspot = { 9, 20 } 31 }, 32 walkload = { 33 fps = 10, 34 frames = 10, 35 rows = 4, 36 columns = 3, 37 directional = true, 38 hotspot = { 7, 20 } 39 } 40 } 41} 42