From 2c0024adc91491b6d687f3b56d6a5779a3391e59 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Thu, 17 May 2012 19:56:55 +0400 Subject: Make Items::getPosition exactly match the DF original in behavior. --- Lua API.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lua API.html') diff --git a/Lua API.html b/Lua API.html index d44d82ba..7ce777c4 100644 --- a/Lua API.html +++ b/Lua API.html @@ -935,7 +935,7 @@ a lua list containing them.
dfhack.units.getPosition(unit)
-Returns true x,y,z of the unit; may be not equal to unit.pos if caged.
+Returns true x,y,z of the unit, or nil if invalid; may be not equal to unit.pos if caged.
dfhack.units.getContainer(unit)
Returns the container (cage) item or nil.
@@ -982,7 +982,7 @@ or raws. The ignore_noble boolean disables thedfhack.items.getPosition(item)
-Returns true x,y,z of the item; may be not equal to item.pos if in inventory.
+Returns true x,y,z of the item, or nil if invalid; may be not equal to item.pos if in inventory.
dfhack.items.getGeneralRef(item, type)
Searches for a general_ref with the given type.
-- cgit v1.2.1