diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-12 17:39:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-12 17:39:04 +0300 |
commit | 8487d3de9cf9e1775d4cdb17a83cf48d4d732064 (patch) | |
tree | 5a36eb7794fb290dde3ffd4a4a879f4873c0ff68 /src/emap/mob.c | |
parent | 009f4a01c538c44f15bfec720c6cea2dee249985 (diff) | |
download | evol-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.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; +} |