1dirname = path.dirname(__file__) 2 3tribes:new_immovable_type { 4 msgctxt = "immovable", 5 name = "cornfield_small", 6 -- TRANSLATORS: This is an immovable name used in lists of immovables 7 descname = pgettext("immovable", "Cornfield (small)"), 8 helptext_script = dirname .. "helptexts.lua", 9 icon = dirname .. "menu.png", 10 size = "small", 11 attributes = { "field" }, 12 programs = { 13 program = { 14 "animate=idle 45000", 15 "transform=cornfield_medium", 16 } 17 }, 18 19 animations = { 20 idle = { 21 pictures = path.list_files(dirname .. "idle_??.png"), 22 hotspot = { 34, 24 }, 23 }, 24 } 25} 26