From 74e709ec197ab8c65a754e7e7146ad0eab284ead Mon Sep 17 00:00:00 2001 From: Eric Wald Date: Sun, 7 Sep 2014 14:52:08 -0600 Subject: [PATCH] Adding getStockpileContents to the Lua API. --- Lua API.html | 4 ++++ Lua API.rst | 5 +++++ library/LuaApi.cpp | 9 +++++++++ 3 files changed, 18 insertions(+) diff --git a/Lua API.html b/Lua API.html index 1a2888eb0..7d99228bf 100644 --- a/Lua API.html +++ b/Lua API.html @@ -1586,6 +1586,10 @@ are removed from extents. If allow_occupied, t

Checks if a bridge constructed at specified position would have support from terrain, and thus won't collapse if retracted.

+
  • dfhack.buildings.getStockpileContents(stockpile)

    +

    Returns a list of items stored on the given stockpile. +Ignores empty bins, barrels, and wheelbarrows assigned as storage and transport for that stockpile.

    +
  • Low-level building creation functions;