1dirname = path.dirname (__file__) 2 3tribes:new_worker_type { 4 msgctxt = "frisians_worker", 5 name = "frisians_smoker", 6 -- TRANSLATORS: This is a worker name used in lists of workers 7 descname = pgettext ("frisians_worker", "Smoker"), 8 helptext_script = dirname .. "helptexts.lua", 9 icon = dirname .. "menu.png", 10 vision_range = 2, 11 12 buildcost = { 13 frisians_carrier = 1, 14 kitchen_tools = 1 15 }, 16 17 ware_hotspot = {0, 20}, 18 19 spritesheets = { 20 walk = { 21 directory = dirname, 22 basename = "walk", 23 fps = 15, 24 frames = 10, 25 columns = 5, 26 rows = 2, 27 directional = true, 28 hotspot = {10, 23} 29 }, 30 walkload = { 31 directory = dirname, 32 basename = "walkload", 33 fps = 15, 34 frames = 10, 35 columns = 5, 36 rows = 2, 37 directional = true, 38 hotspot = {10, 26} 39 }, 40 }, 41 animations = { 42 idle = { 43 directory = dirname, 44 basename = "idle", 45 hotspot = {8, 23} 46 }, 47 }, 48} 49