1dirname = path.dirname(__file__) 2 3animations = { 4 idle = { 5 pictures = path.list_files(dirname .. "idle_??.png"), 6 hotspot = { 18, 23 }, 7 fps = 10 8 } 9} 10add_directional_animation(animations, "walk", dirname, "walk", {19, 33}, 10) 11add_directional_animation(animations, "walkload", dirname, "walk", {19, 33}, 10) -- TODO(GunChleoc): Make animation 12 13 14tribes:new_carrier_type { 15 msgctxt = "atlanteans_worker", 16 name = "atlanteans_horse", 17 -- TRANSLATORS: This is a worker name used in lists of workers 18 descname = pgettext("atlanteans_worker", "Horse"), 19 helptext_script = dirname .. "helptexts.lua", 20 icon = dirname .. "menu.png", 21 vision_range = 2, 22 23 default_target_quantity = 10, 24 ware_hotspot = {-2, 12}, 25 26 animations = animations, 27 28 aihints = { 29 preciousness = { 30 atlanteans = 2 31 }, 32 } 33} 34