diff options
| author | Alexander Gavrilov | 2012-09-09 12:51:08 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-09-09 12:51:08 +0400 |
| commit | ec3d489bda19f8ab2a45fbb19d7259ea3f4ad75b (patch) | |
| tree | c2acb9e8fe785785f3bdb2cfc88a7e0c7400ae20 /Lua API.html | |
| parent | a36fe25e7249c60094a6347726f961779cf3b98a (diff) | |
| download | dfhack-ec3d489bda19f8ab2a45fbb19d7259ea3f4ad75b.tar.gz dfhack-ec3d489bda19f8ab2a45fbb19d7259ea3f4ad75b.tar.bz2 dfhack-ec3d489bda19f8ab2a45fbb19d7259ea3f4ad75b.tar.xz | |
Move curse-affected attribute value getters to the core.
Diffstat (limited to 'Lua API.html')
| -rw-r--r-- | Lua API.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lua API.html b/Lua API.html index c302c29f..12bcf5fa 100644 --- a/Lua API.html +++ b/Lua API.html @@ -1106,6 +1106,14 @@ 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.isHidingCurse(unit)</tt></p> +<p>Checks if the unit hides improved attributes from its curse.</p> +</li> +<li><p class="first"><tt class="docutils literal">dfhack.units.getPhysicalAttrValue(unit, attr_type)</tt></p> +</li> +<li><p class="first"><tt class="docutils literal">dfhack.units.getMentalAttrValue(unit, attr_type)</tt></p> +<p>Computes the effective attribute value, including curse effect.</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> |
