diff options
| author | Alexander Gavrilov | 2012-09-09 12:27:40 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-09-09 12:27:40 +0400 |
| commit | a36fe25e7249c60094a6347726f961779cf3b98a (patch) | |
| tree | 7f061e0af68b360c26b3835054949a73bd7d93b4 /Lua API.html | |
| parent | 94b729579e924bb511523a1aa157cec7fdb66bdf (diff) | |
| download | dfhack-a36fe25e7249c60094a6347726f961779cf3b98a.tar.gz dfhack-a36fe25e7249c60094a6347726f961779cf3b98a.tar.bz2 dfhack-a36fe25e7249c60094a6347726f961779cf3b98a.tar.xz | |
Finish the effective skill computation function, and move to core.
Diffstat (limited to 'Lua API.html')
| -rw-r--r-- | Lua API.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Lua API.html b/Lua API.html index dc9c8d73..c302c29f 100644 --- a/Lua API.html +++ b/Lua API.html @@ -1106,6 +1106,18 @@ a lua list containing them.</p> <li><p class="first"><tt class="docutils literal">dfhack.units.getNemesis(unit)</tt></p> <p>Returns the nemesis record of the unit if it has one, or <em>nil</em>.</p> </li> +<li><p class="first"><tt class="docutils literal">dfhack.units.isCrazed(unit)</tt></p> +</li> +<li><p class="first"><tt class="docutils literal">dfhack.units.isOpposedToLife(unit)</tt></p> +</li> +<li><p class="first"><tt class="docutils literal">dfhack.units.hasExtravision(unit)</tt></p> +</li> +<li><p class="first"><tt class="docutils literal">dfhack.units.isBloodsucker(unit)</tt></p> +<p>Simple checks of caste attributes that can be modified by curses.</p> +</li> +<li><p class="first"><tt class="docutils literal">dfhack.units.getMiscTrait(unit, type[, create])</tt></p> +<p>Finds (or creates if requested) a misc trait object with the given id.</p> +</li> <li><p class="first"><tt class="docutils literal">dfhack.units.isDead(unit)</tt></p> <p>The unit is completely dead and passive, or a ghost.</p> </li> @@ -1126,6 +1138,9 @@ same checks the game uses to decide game-over by extinction.</p> <p>Returns the age of the unit in years as a floating-point value. If <tt class="docutils literal">true_age</tt> is true, ignores false identities.</p> </li> +<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.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> |
