1dirname = path.dirname(__file__)
2
3tribes:new_productionsite_type {
4   msgctxt = "frisians_building",
5   name = "frisians_foresters_house",
6   -- TRANSLATORS: This is a building name used in lists of buildings
7   descname = pgettext("frisians_building", "Forester’s House"),
8   helptext_script = dirname .. "helptexts.lua",
9   icon = dirname .. "menu.png",
10   size = "small",
11
12   buildcost = {
13      brick = 1,
14      log = 1,
15      reed = 1
16   },
17   return_on_dismantle = {
18      brick = 1,
19      log = 1,
20   },
21
22   spritesheets = {
23      idle = {
24         directory = dirname,
25         basename = "idle",
26         hotspot = {40, 73},
27         frames = 10,
28         columns = 5,
29         rows = 2,
30         fps = 10
31      }
32   },
33   animations = {
34      unoccupied = {
35         directory = dirname,
36         basename = "unoccupied",
37         hotspot = {40, 56}
38      }
39   },
40
41   aihints = {
42      supports_production_of = { "log" },
43      space_consumer = true,
44   },
45
46   working_positions = {
47      frisians_forester = 1
48   },
49
50   indicate_workarea_overlaps = {
51      frisians_clay_pit = false,
52      frisians_berry_farm = false,
53      frisians_reed_farm = false,
54      frisians_farm = false,
55      frisians_foresters_house = false,
56      frisians_woodcutters_house = true,
57   },
58
59   programs = {
60      work = {
61         -- TRANSLATORS: Completed/Skipped/Did not start planting trees because ...
62         descname = _"planting trees",
63         actions = {
64            "callworker=plant",
65            "sleep=12000"
66         }
67      },
68   },
69}
70