diff options
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> |
