1dirname = path.dirname(__file__) 2 3tribes:new_worker_type { 4 msgctxt = "barbarians_worker", 5 name = "barbarians_gamekeeper", 6 -- TRANSLATORS: This is a worker name used in lists of workers 7 descname = pgettext("barbarians_worker", "Gamekeeper"), 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 }, 16 17 programs = { 18 release = { 19 "findspace=size:any radius:3", 20 "walk=coords", 21 "animate=releasein 2000", 22 "createbob=bunny chamois deer elk reindeer sheep stag wildboar wisent", 23 "animate=releaseout 2000", 24 "return" 25 } 26 }, 27 28 animations = { 29 idle = { 30 hotspot = { 14, 22 } 31 }, 32 }, 33 spritesheets = { 34 walk = { 35 fps = 10, 36 frames = 10, 37 rows = 4, 38 columns = 3, 39 directional = true, 40 hotspot = { 15, 22 } 41 }, 42 releasein = { 43 fps = 5, 44 frames = 10, 45 rows = 4, 46 columns = 3, 47 hotspot = { 15, 22 } 48 }, 49 releaseout = { 50 fps = 5, 51 frames = 10, 52 rows = 4, 53 columns = 3, 54 hotspot = { 15, 22 } 55 } 56 } 57} 58