From ec3d489bda19f8ab2a45fbb19d7259ea3f4ad75b Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Sun, 9 Sep 2012 12:51:08 +0400 Subject: Move curse-affected attribute value getters to the core. --- Lua API.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Lua API.html') 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.

  • dfhack.units.getNemesis(unit)

    Returns the nemesis record of the unit if it has one, or nil.

  • +
  • dfhack.units.isHidingCurse(unit)

    +

    Checks if the unit hides improved attributes from its curse.

    +
  • +
  • dfhack.units.getPhysicalAttrValue(unit, attr_type)

    +
  • +
  • dfhack.units.getMentalAttrValue(unit, attr_type)

    +

    Computes the effective attribute value, including curse effect.

    +
  • dfhack.units.isCrazed(unit)

  • dfhack.units.isOpposedToLife(unit)

    -- cgit v1.2.1