From a36fe25e7249c60094a6347726f961779cf3b98a Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Sun, 9 Sep 2012 12:27:40 +0400 Subject: Finish the effective skill computation function, and move to core. --- Lua API.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Lua API.html') 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.
dfhack.units.getNemesis(unit)
Returns the nemesis record of the unit if it has one, or nil.
dfhack.units.isCrazed(unit)
+dfhack.units.isOpposedToLife(unit)
+dfhack.units.hasExtravision(unit)
+dfhack.units.isBloodsucker(unit)
+Simple checks of caste attributes that can be modified by curses.
+dfhack.units.getMiscTrait(unit, type[, create])
+Finds (or creates if requested) a misc trait object with the given id.
+dfhack.units.isDead(unit)
The unit is completely dead and passive, or a ghost.
Returns the age of the unit in years as a floating-point value. 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.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