summaryrefslogtreecommitdiff
path: root/src/emap/mob.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-12 18:48:32 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-12 18:48:32 +0300
commitec69d4fd5c6ec519cb7a04ba74182cbfeceb9cf9 (patch)
tree9d8bc7a0889ae2f640fcb68a0adb0b5ad1148d2f /src/emap/mob.c
parente5e70b5d5afe465f7ee9e168a1747b8984beeee0 (diff)
downloadevol-hercules-ec69d4fd5c6ec519cb7a04ba74182cbfeceb9cf9.tar.gz
evol-hercules-ec69d4fd5c6ec519cb7a04ba74182cbfeceb9cf9.tar.bz2
evol-hercules-ec69d4fd5c6ec519cb7a04ba74182cbfeceb9cf9.tar.xz
evol-hercules-ec69d4fd5c6ec519cb7a04ba74182cbfeceb9cf9.zip
Add support for mob ai attribute SurviveWithoutMaster.
Diffstat (limited to 'src/emap/mob.c')
-rw-r--r--src/emap/mob.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/emap/mob.c b/src/emap/mob.c
index eae7901..e7eccbc 100644
--- a/src/emap/mob.c
+++ b/src/emap/mob.c
@@ -69,3 +69,17 @@ void emob_read_db_additional_fields(struct mob_db *entry,
if (mob->lookup_const(it, "WalkMask", &i32))
data->walkMask = i32;
}
+
+int emob_read_db_mode_sub_post(int retVal,
+ struct mob_db *entry,
+ struct status_data *mstatus,
+ int *classPtr,
+ config_setting_t *t)
+{
+ config_setting_t *t2;
+
+ if ((t2 = libconfig->setting_get_member(t, "SurviveWithoutMaster")))
+ retVal |= libconfig->setting_get_bool(t2) ? 0x8000 : 0;
+
+ return retVal;
+}