From 5afe2ca0020404d46ad3de840030a7b9e186b059 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Thu, 3 May 2012 11:47:04 +0400 Subject: Update dfhack for specific_ref. --- Lua API.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Lua API.html') 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 ignore_noble boolean disables the
dfhack.items.getPosition(item)
Returns true x,y,z of the item; may be not equal to item.pos if in inventory.
dfhack.items.getGeneralRef(item, type)
+Searches for a general_ref with the given type.
+dfhack.items.getSpecificRef(item, type)
+Searches for a specific_ref with the given type.
+dfhack.items.getOwner(item)
Returns the owner unit or nil.