1dirname = path.dirname(__file__) 2 3tribes:new_productionsite_type { 4 msgctxt = "barbarians_building", 5 name = "barbarians_rangers_hut", 6 -- TRANSLATORS: This is a building name used in lists of buildings 7 descname = pgettext("barbarians_building", "Ranger’s Hut"), 8 helptext_script = dirname .. "helptexts.lua", 9 icon = dirname .. "menu.png", 10 size = "small", 11 12 buildcost = { 13 log = 4 14 }, 15 return_on_dismantle = { 16 log = 3 17 }, 18 19 animations = { 20 idle = { 21 pictures = path.list_files(dirname .. "idle_??.png"), 22 hotspot = { 45, 49 }, 23 }, 24 build = { 25 pictures = path.list_files(dirname .. "build_??.png"), 26 hotspot = { 45, 49 }, 27 }, 28 unoccupied = { 29 pictures = path.list_files(dirname .. "unoccupied_??.png"), 30 hotspot = { 45, 49 }, 31 }, 32 }, 33 34 aihints = { 35 supports_production_of = { "log" }, 36 space_consumer = true, 37 basic_amount = 1, 38 very_weak_ai_limit = 3, 39 weak_ai_limit = 5 40 }, 41 42 working_positions = { 43 barbarians_ranger = 1 44 }, 45 46 indicate_workarea_overlaps = { 47 barbarians_rangers_hut = false, 48 barbarians_lumberjacks_hut = true, 49 barbarians_farm = false, 50 barbarians_reed_yard = false, 51 }, 52 53 programs = { 54 work = { 55 -- TRANSLATORS: Completed/Skipped/Did not start planting trees because ... 56 descname = _"planting trees", 57 actions = { 58 "callworker=plant", 59 "sleep=11500" 60 } 61 }, 62 }, 63} 64