summaryrefslogtreecommitdiff
path: root/library/LuaApi.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-09-09 12:27:40 +0400
committerAlexander Gavrilov2012-09-09 12:27:40 +0400
commita36fe25e7249c60094a6347726f961779cf3b98a (patch)
tree7f061e0af68b360c26b3835054949a73bd7d93b4 /library/LuaApi.cpp
parent94b729579e924bb511523a1aa157cec7fdb66bdf (diff)
downloaddfhack-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.cpp7
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),