summaryrefslogtreecommitdiff
path: root/src/emap/mob.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-12 17:39:04 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-12 17:39:04 +0300
commit8487d3de9cf9e1775d4cdb17a83cf48d4d732064 (patch)
tree5a36eb7794fb290dde3ffd4a4a879f4873c0ff68 /src/emap/mob.c
parent009f4a01c538c44f15bfec720c6cea2dee249985 (diff)
downloadevol-hercules-8487d3de9cf9e1775d4cdb17a83cf48d4d732064.tar.gz
evol-hercules-8487d3de9cf9e1775d4cdb17a83cf48d4d732064.tar.bz2
evol-hercules-8487d3de9cf9e1775d4cdb17a83cf48d4d732064.tar.xz
evol-hercules-8487d3de9cf9e1775d4cdb17a83cf48d4d732064.zip
Add mob db field 'WalkMask' for now unused.
Diffstat (limited to 'src/emap/mob.c')
-rw-r--r--src/emap/mob.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/emap/mob.c b/src/emap/mob.c
index 7e0a560..eae7901 100644
--- a/src/emap/mob.c
+++ b/src/emap/mob.c
@@ -17,6 +17,9 @@
#include "map/itemdb.h"
#include "map/mob.h"
+#include "emap/data/mobd.h"
+#include "emap/struct/mobdext.h"
+
int emob_deleteslave_sub(struct block_list *bl, va_list ap)
{
if (!bl)
@@ -48,3 +51,21 @@ int emob_deleteslave_sub(struct block_list *bl, va_list ap)
hookStop();
return 0;
}
+
+void emob_read_db_additional_fields(struct mob_db *entry,
+ int *classPtr,
+ config_setting_t *it,
+ int *nPtr, const char *source)
+{
+ int i32 = 0;
+
+ struct MobdExt *data = mobd_get(entry);
+ if (!data)
+ {
+ hookStop();
+ return;
+ }
+
+ if (mob->lookup_const(it, "WalkMask", &i32))
+ data->walkMask = i32;
+}