1dirname = path.dirname(__file__)
2
3tribes:new_productionsite_type {
4   msgctxt = "frisians_building",
5   name = "frisians_rockmine_deep",
6   -- TRANSLATORS: This is a building name used in lists of buildings
7   descname = pgettext("frisians_building", "Deep Rock Mine"),
8   helptext_script = dirname .. "helptexts.lua",
9   icon = dirname .. "menu.png",
10   size = "mine",
11
12   enhancement_cost = {
13      brick = 2,
14      granite = 1,
15      log = 1,
16      reed = 2
17   },
18   return_on_dismantle_on_enhanced = {
19      brick = 1,
20      log = 1,
21      reed = 1
22   },
23
24   spritesheets = {
25      idle = {
26         directory = dirname,
27         basename = "idle",
28         hotspot = {28, 74},
29         frames = 10,
30         columns = 5,
31         rows = 2,
32         fps = 10
33      },
34      working = {
35         directory = dirname,
36         basename = "working",
37         hotspot = {28, 74},
38         frames = 10,
39         columns = 5,
40         rows = 2,
41         fps = 10
42      },
43      empty = {
44         directory = dirname,
45         basename = "empty",
46         hotspot = {28, 74},
47         frames = 10,
48         columns = 5,
49         rows = 2,
50         fps = 10
51      }
52   },
53   animations = {
54      unoccupied = {
55         directory = dirname,
56         basename = "unoccupied",
57         hotspot = {28, 57}
58      }
59   },
60
61   indicate_workarea_overlaps = {
62      frisians_rockmine = false,
63      frisians_rockmine_deep = false,
64   },
65
66   aihints = {
67      mines = "stones",
68   },
69
70   working_positions = {
71      frisians_miner = 1,
72      frisians_miner_master = 1,
73   },
74
75   inputs = {
76      { name = "meal", amount = 8 }
77   },
78   outputs = {
79      "granite"
80   },
81
82   programs = {
83      work = {
84         -- TRANSLATORS: Completed/Skipped/Did not start mining granite because ...
85         descname = _"mining granite",
86         actions = {
87            "sleep=5000",
88            "return=skipped unless economy needs granite",
89            "consume=meal",
90            "sleep=34900",
91            "call=mine_produce",
92            "call=mine_produce",
93            "call=mine_produce",
94            "call=mine_produce",
95            "call=mine_produce",
96            "call=mine_produce",
97            "call=mine_produce",
98         }
99      },
100      mine_produce = {
101         descname = _"mining granite",
102         actions = {
103            "animate=working 8700",
104            "mine=stones 3 100 10 5",
105            "produce=granite",
106         }
107      },
108      encyclopedia = {
109         -- just a dummy program to fix encyclopedia
110         descname = "encyclopedia",
111         actions = {
112            "consume=meal",
113            "produce=granite:7",
114         }
115      },
116   },
117   out_of_resource_notification = {
118      -- Translators: Short for "Out of ..." for a resource
119      title = _"No Granite",
120      heading = _"Main Granite Vein Exhausted",
121      message =
122         pgettext("frisians_building", "This rock mine’s main vein is exhausted. Expect strongly diminished returns on investment. This mine can’t be enhanced any further, so you should consider dismantling or destroying it."),
123   },
124}
125