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