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 /library/LuaApi.cpp | |
| 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 'library/LuaApi.cpp')
| -rw-r--r-- | library/LuaApi.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/library/LuaApi.cpp b/library/LuaApi.cpp index 807cbf53..6caf4557 100644 --- a/library/LuaApi.cpp +++ b/library/LuaApi.cpp @@ -79,6 +79,7 @@ distribution. #include "df/building_civzonest.h" #include "df/region_map_entry.h" #include "df/flow_info.h" +#include "df/unit_misc_trait.h" #include <lua.h> #include <lauxlib.h> @@ -813,12 +814,18 @@ static const LuaWrapper::FunctionReg dfhack_units_module[] = { WRAPM(Units, getVisibleName), WRAPM(Units, getIdentity), WRAPM(Units, getNemesis), + WRAPM(Units, isCrazed), + WRAPM(Units, isOpposedToLife), + WRAPM(Units, hasExtravision), + WRAPM(Units, isBloodsucker), + WRAPM(Units, getMiscTrait), WRAPM(Units, isDead), WRAPM(Units, isAlive), WRAPM(Units, isSane), WRAPM(Units, isDwarf), WRAPM(Units, isCitizen), WRAPM(Units, getAge), + WRAPM(Units, getEffectiveSkill), WRAPM(Units, getProfessionName), WRAPM(Units, getCasteProfessionName), WRAPM(Units, getProfessionColor), |
