1dirname = path.dirname(__file__)
2
3tribes:new_productionsite_type {
4   msgctxt = "atlanteans_building",
5   name = "atlanteans_charcoal_kiln",
6   -- TRANSLATORS: This is a building name used in lists of buildings
7   descname = pgettext("atlanteans_building", "Charcoal Kiln"),
8   helptext_script = dirname .. "helptexts.lua",
9   icon = dirname .. "menu.png",
10   size = "medium",
11
12   buildcost = {
13      log = 2,
14      granite = 3,
15      planks = 1
16   },
17   return_on_dismantle = {
18      log = 2,
19      granite = 2
20   },
21
22   animations = {
23      idle = {
24         pictures = path.list_files(dirname .. "idle_??.png"),
25         hotspot = { 47, 57 },
26      },
27      working = {
28         pictures = path.list_files(dirname .. "working_??.png"),
29         hotspot = { 47, 60 },
30      },
31   },
32
33   aihints = {
34      prohibited_till = 690
35   },
36
37   working_positions = {
38      atlanteans_charcoal_burner = 1
39   },
40
41   inputs = {
42      { name = "log", amount = 8 }
43   },
44   outputs = {
45      "coal"
46   },
47
48   programs = {
49      work = {
50         -- TRANSLATORS: Completed/Skipped/Did not start producing coal because ...
51         descname = _"producing coal",
52         actions = {
53            "return=skipped unless economy needs coal",
54            "consume=log:6",
55            "sleep=30000",
56            "animate=working 90000", -- Charcoal fires will burn for some days in real life
57            "produce=coal"
58         }
59      },
60
61   },
62}
63