diff options
| author | Alexander Gavrilov | 2012-05-03 11:47:04 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-05-03 11:47:04 +0400 |
| commit | 5afe2ca0020404d46ad3de840030a7b9e186b059 (patch) | |
| tree | 7066712fd0d5cae9ea766189b788efc1c69ae9ad /Lua API.html | |
| parent | 28b5068382ebd406b269e6b4aeb073e7cd26503e (diff) | |
| download | dfhack-5afe2ca0020404d46ad3de840030a7b9e186b059.tar.gz dfhack-5afe2ca0020404d46ad3de840030a7b9e186b059.tar.bz2 dfhack-5afe2ca0020404d46ad3de840030a7b9e186b059.tar.xz | |
Update dfhack for specific_ref.
Diffstat (limited to 'Lua API.html')
| -rw-r--r-- | Lua API.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lua API.html b/Lua API.html index c7c2041d..40706d14 100644 --- a/Lua API.html +++ b/Lua API.html @@ -972,6 +972,12 @@ or raws. The <tt class="docutils literal">ignore_noble</tt> boolean disables the <li><p class="first"><tt class="docutils literal">dfhack.items.getPosition(item)</tt></p> <p>Returns true <em>x,y,z</em> of the item; may be not equal to item.pos if in inventory.</p> </li> +<li><p class="first"><tt class="docutils literal">dfhack.items.getGeneralRef(item, type)</tt></p> +<p>Searches for a general_ref with the given type.</p> +</li> +<li><p class="first"><tt class="docutils literal">dfhack.items.getSpecificRef(item, type)</tt></p> +<p>Searches for a specific_ref with the given type.</p> +</li> <li><p class="first"><tt class="docutils literal">dfhack.items.getOwner(item)</tt></p> <p>Returns the owner unit or <em>nil</em>.</p> </li> |
