summaryrefslogtreecommitdiff
path: root/Lua API.html
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-09-09 17:04:58 +0400
committerAlexander Gavrilov2012-09-09 17:04:58 +0400
commit9679b7729c79888d8bdac99484dfad7a5e07d13e (patch)
treeb59fb3493a9bbb41d70a5c56059c1686ab99f90e /Lua API.html
parentec3d489bda19f8ab2a45fbb19d7259ea3f4ad75b (diff)
downloaddfhack-9679b7729c79888d8bdac99484dfad7a5e07d13e.tar.gz
dfhack-9679b7729c79888d8bdac99484dfad7a5e07d13e.tar.bz2
dfhack-9679b7729c79888d8bdac99484dfad7a5e07d13e.tar.xz
Clean up the movement speed calculation function and move into the core.
Diffstat (limited to 'Lua API.html')
-rw-r--r--Lua API.html3
1 files changed, 3 insertions, 0 deletions
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 <tt class="docutils literal">true_age</tt> is true, ignores false identities.
<li><p class="first"><tt class="docutils literal">dfhack.units.getEffectiveSkill(unit, skill)</tt></p>
<p>Computes the effective rating for the given skill, taking into account exhaustion, pain etc.</p>
</li>
+<li><p class="first"><tt class="docutils literal">dfhack.units.computeMovementSpeed(unit)</tt></p>
+<p>Computes number of frames * 100 it takes the unit to move in its current state of mind and body.</p>
+</li>
<li><p class="first"><tt class="docutils literal">dfhack.units.getNoblePositions(unit)</tt></p>
<p>Returns a list of tables describing noble position assignments, or <em>nil</em>.
Every table has fields <tt class="docutils literal">entity</tt>, <tt class="docutils literal">assignment</tt> and <tt class="docutils literal">position</tt>.</p>