diff options
| author | Alexander Gavrilov | 2012-05-17 00:19:29 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-05-17 00:19:29 +0400 |
| commit | efdb709284d393938db6b60185ee3898cb068954 (patch) | |
| tree | 91b4ebfc44696ef39c73fd7904cd5d11e7c882aa /library/lua | |
| parent | 68c5d9b86c2a252f87f53804c3af94881c4ae39e (diff) | |
| download | dfhack-efdb709284d393938db6b60185ee3898cb068954.tar.gz dfhack-efdb709284d393938db6b60185ee3898cb068954.tar.bz2 dfhack-efdb709284d393938db6b60185ee3898cb068954.tar.xz | |
Support creating rollers and stops with dfhack.buildings.constructBuilding.
Diffstat (limited to 'library/lua')
| -rw-r--r-- | library/lua/dfhack/buildings.lua | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/library/lua/dfhack/buildings.lua b/library/lua/dfhack/buildings.lua index ad82da89..af9ad260 100644 --- a/library/lua/dfhack/buildings.lua +++ b/library/lua/dfhack/buildings.lua @@ -178,7 +178,20 @@ local building_inputs = { }, [df.building_type.Slab] = { { item_type=df.item_type.SLAB } }, [df.building_type.NestBox] = { { has_tool_use=df.tool_uses.NEST_BOX, item_type=df.item_type.TOOL } }, - [df.building_type.Hive] = { { has_tool_use=df.tool_uses.HIVE, item_type=df.item_type.TOOL } } + [df.building_type.Hive] = { { has_tool_use=df.tool_uses.HIVE, item_type=df.item_type.TOOL } }, + [df.building_type.Rollers] = { + { + name='mechanism', + item_type=df.item_type.TRAPPARTS, + quantity=-1, + vector_id=df.job_item_vector_id.TRAPPARTS + }, + { + name='chain', + item_type=df.item_type.CHAIN, + vector_id=df.job_item_vector_id.CHAIN + } + } } --[[ Furnace building input material table. ]] @@ -318,7 +331,8 @@ local trap_inputs = { item_type=df.item_type.TRAPPARTS, vector_id=df.job_item_vector_id.TRAPPARTS } - } + }, + [df.trap_type.TrackStop] = { { flags2={ building_material=true, non_economic=true } } } } --[[ Functions for lookup in tables. ]] |
