diff options
Diffstat (limited to 'src/emap/mob.c')
-rw-r--r-- | src/emap/mob.c | 21 |
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; +} |