diff --git a/LUA_API.rst b/LUA_API.rst index 8698e1b23..fc86070c3 100644 --- a/LUA_API.rst +++ b/LUA_API.rst @@ -696,6 +696,19 @@ Units module Adds or removes the unit from the burrow. +Items module +------------ + +* ``dfhack.items.getOwner(item)`` + + Returns the owner unit or *nil*. + +* ``dfhack.items.setOwner(item,unit)`` + + Replaces the owner of the item. If unit is *nil*, removes ownership. + Returns *false* in case of error. + + Maps module ----------- diff --git a/Lua API.html b/Lua API.html index 0ca88966c..7c3eeddb9 100644 --- a/Lua API.html +++ b/Lua API.html @@ -340,7 +340,8 @@ ul.auto-toc {
  • Gui module
  • Job module
  • Units module
  • -
  • Maps module
  • +
  • Items module
  • +
  • Maps module
  • @@ -925,8 +926,20 @@ a lua list containing them.

    +
    +

    Items module

    + +
    -

    Maps module

    +

    Maps module