diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-11-11 03:34:19 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-11-11 03:34:19 -0300 |
commit | 4d3d061196fd37eb38a9ec09516f70b157b10d12 (patch) | |
tree | 0375df2819b58f07ed1893f4f5f80e5bd35bfc51 | |
parent | 41668804c924d4cb6e3b0ecd0b4a2b7277b16bfc (diff) | |
download | evol-hercules-4d3d061196fd37eb38a9ec09516f70b157b10d12.tar.gz evol-hercules-4d3d061196fd37eb38a9ec09516f70b157b10d12.tar.bz2 evol-hercules-4d3d061196fd37eb38a9ec09516f70b157b10d12.tar.xz evol-hercules-4d3d061196fd37eb38a9ec09516f70b157b10d12.zip |
Add mutation fields to mobdb (unused)
-rw-r--r-- | src/emap/data/mobd.c | 2 | ||||
-rw-r--r-- | src/emap/enum/beingflag.h | 2 | ||||
-rw-r--r-- | src/emap/mob.c | 6 | ||||
-rw-r--r-- | src/emap/struct/mobdext.h | 2 |
4 files changed, 11 insertions, 1 deletions
diff --git a/src/emap/data/mobd.c b/src/emap/data/mobd.c index 83d4866..8610c15 100644 --- a/src/emap/data/mobd.c +++ b/src/emap/data/mobd.c @@ -55,5 +55,7 @@ struct MobdExt *mobd_create(void) data->collisionDx = -1; data->collisionDy = -1; data->collisionMask = 1; + data->mutationCount = 0; + data->mutationStrength = 0; return data; } diff --git a/src/emap/enum/beingflag.h b/src/emap/enum/beingflag.h index 9c8d96c..576c605 100644 --- a/src/emap/enum/beingflag.h +++ b/src/emap/enum/beingflag.h @@ -2,7 +2,7 @@ // Copyright (c) 2014 - 2019 Evol developers // This is a ManaPlus enum: -// https://gitlab.com/manaplus/manaplus/blob/master/src/being/beingflag.h +// https://git.themanaworld.org/mana/plus/blob/master/src/being/beingflag.h #ifndef EVOL_MAP_ENUM_BEINGFLAG #define EVOL_MAP_ENUM_BEINGFLAG diff --git a/src/emap/mob.c b/src/emap/mob.c index 4a4a3ba..7b1b778 100644 --- a/src/emap/mob.c +++ b/src/emap/mob.c @@ -283,6 +283,12 @@ void emob_read_db_additional_fields_pre(struct mob_db **entryPtr, if (mob->lookup_const(*itPtr, "SpawnCollisionMask", &i32)) data->collisionMask = i32; + + if (mob->lookup_const(*itPtr, "MutationCount", &i32)) + data->mutationCount = i32; + + if (mob->lookup_const(*itPtr, "MutationStrength", &i32)) + data->mutationStrength = i32; } uint32 emob_read_db_mode_sub_post(uint32 retVal, diff --git a/src/emap/struct/mobdext.h b/src/emap/struct/mobdext.h index 66a0cf9..b1394e7 100644 --- a/src/emap/struct/mobdext.h +++ b/src/emap/struct/mobdext.h @@ -14,6 +14,8 @@ struct MobdExt int collisionDx; int collisionDy; int collisionMask; + unsigned short mutationCount; + unsigned short mutationStrength; }; #endif // EVOL_MAP_MOBDEXT |