1dirname = path.dirname(__file__)
2
3tribes:new_immovable_type {
4   msgctxt = "immovable",
5   name = "destroyed_building",
6   -- TRANSLATORS: This is an immovable name used in lists of immovables
7   descname = pgettext("immovable", "Destroyed building"),
8   helptext_script = dirname .. "helptexts.lua",
9   icon = dirname .. "menu.png",
10   size = "big",
11   programs = {
12      program = {
13         "animate=idle 30000",
14         "transform=ashes",
15      }
16   },
17
18   animations = {
19      idle = {
20         pictures = path.list_files(dirname .. "burn_??.png"),
21         hotspot = { 40, 57 },
22         fps = 10,
23      },
24   }
25}
26