1dirname = path.dirname (__file__) 2 3tribes:new_productionsite_type { 4 msgctxt = "frisians_building", 5 name = "frisians_woodcutters_house", 6 -- TRANSLATORS: This is a building name used in lists of buildings 7 descname = pgettext ("frisians_building", "Woodcutter’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 log = 1, 19 brick = 1 20 }, 21 22 spritesheets = { 23 idle = { 24 directory = dirname, 25 basename = "idle", 26 hotspot = {40, 69}, 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, 52} 38 } 39 }, 40 41 aihints = { 42 collects_ware_from_map = "log" 43 }, 44 45 working_positions = { 46 frisians_woodcutter = 1 47 }, 48 49 outputs = { 50 "log" 51 }, 52 53 indicate_workarea_overlaps = { 54 frisians_foresters_house = true, 55 frisians_woodcutters_house = false, 56 }, 57 58 programs = { 59 work = { 60 -- TRANSLATORS: Completed/Skipped/Did not start felling trees because ... 61 descname = _"felling trees", 62 actions = { 63 "callworker=harvest", 64 "sleep=20000" 65 } 66 }, 67 }, 68 out_of_resource_notification = { 69 -- Translators: Short for "Out of ..." for a resource 70 title = _"No Trees", 71 heading = _"Out of Trees", 72 message = pgettext ("frisians_building", "The woodcutter working at this woodcutter’s house can’t find any trees in his work area. You should consider dismantling or destroying the building or building a forester’s house."), 73 productivity_threshold = 66 74 }, 75} 76