From 9679b7729c79888d8bdac99484dfad7a5e07d13e Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Sun, 9 Sep 2012 17:04:58 +0400 Subject: Clean up the movement speed calculation function and move into the core. --- Lua API.html | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Lua API.html') diff --git a/Lua API.html b/Lua API.html index 12bcf5fa..7886fbc2 100644 --- a/Lua API.html +++ b/Lua API.html @@ -1149,6 +1149,9 @@ If true_age is true, ignores false identities.
dfhack.units.getEffectiveSkill(unit, skill)
Computes the effective rating for the given skill, taking into account exhaustion, pain etc.
dfhack.units.computeMovementSpeed(unit)
+Computes number of frames * 100 it takes the unit to move in its current state of mind and body.
+dfhack.units.getNoblePositions(unit)
Returns a list of tables describing noble position assignments, or nil. Every table has fields entity, assignment and position.
-- cgit v1.2.1