1dirname = path.dirname(__file__) 2 3tribes:new_productionsite_type { 4 msgctxt = "atlanteans_building", 5 name = "atlanteans_spiderfarm", 6 -- TRANSLATORS: This is a building name used in lists of buildings 7 descname = pgettext("atlanteans_building", "Spider Farm"), 8 helptext_script = dirname .. "helptexts.lua", 9 icon = dirname .. "menu.png", 10 size = "big", 11 12 buildcost = { 13 log = 2, 14 granite = 2, 15 planks = 2 16 }, 17 return_on_dismantle = { 18 granite = 1, 19 planks = 1 20 }, 21 22 animations = { 23 idle = { 24 pictures = path.list_files(dirname .. "idle_??.png"), 25 hotspot = { 87, 75 }, 26 }, 27 working = { 28 pictures = path.list_files(dirname .. "idle_??.png"), -- TODO(GunChleoc): No animation yet. 29 hotspot = { 87, 75 }, 30 } 31 }, 32 33 aihints = { 34 basic_amount = 1, 35 prohibited_till = 350 36 }, 37 38 working_positions = { 39 atlanteans_spiderbreeder = 1 40 }, 41 42 inputs = { 43 { name = "water", amount = 7 }, 44 { name = "corn", amount = 7 } 45 }, 46 outputs = { 47 "spider_silk" 48 }, 49 50 programs = { 51 work = { 52 -- TRANSLATORS: Completed/Skipped/Did not start working because ... 53 descname = _"working", 54 actions = { 55 "return=skipped unless economy needs spider_silk", 56 "consume=corn water", 57 "sleep=25000", 58 "animate=working 30000", 59 "produce=spider_silk" 60 } 61 }, 62 }, 63} 64