summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-12-22 19:30:18 -0300
committerJesusaves <cpntb1@ymail.com>2022-12-22 19:30:18 -0300
commit534612e56ea1f93a414a6be551dacd6f18954d1f (patch)
tree386cfdea423094a42ff41802da7ba7f7ccf89dc5
parent4d3d061196fd37eb38a9ec09516f70b157b10d12 (diff)
downloadevol-hercules-534612e56ea1f93a414a6be551dacd6f18954d1f.tar.gz
evol-hercules-534612e56ea1f93a414a6be551dacd6f18954d1f.tar.bz2
evol-hercules-534612e56ea1f93a414a6be551dacd6f18954d1f.tar.xz
evol-hercules-534612e56ea1f93a414a6be551dacd6f18954d1f.zip
CriticalDef field (theoretical, no effect yet)HEADjesusalva/prerenewal
-rw-r--r--src/emap/data/mobd.c1
-rw-r--r--src/emap/mob.c3
-rw-r--r--src/emap/struct/mobdext.h1
3 files changed, 5 insertions, 0 deletions
diff --git a/src/emap/data/mobd.c b/src/emap/data/mobd.c
index 8610c15..fb6d80b 100644
--- a/src/emap/data/mobd.c
+++ b/src/emap/data/mobd.c
@@ -57,5 +57,6 @@ struct MobdExt *mobd_create(void)
data->collisionMask = 1;
data->mutationCount = 0;
data->mutationStrength = 0;
+ data->criticalDef = 0;
return data;
}
diff --git a/src/emap/mob.c b/src/emap/mob.c
index 7b1b778..07ef5ce 100644
--- a/src/emap/mob.c
+++ b/src/emap/mob.c
@@ -289,6 +289,9 @@ void emob_read_db_additional_fields_pre(struct mob_db **entryPtr,
if (mob->lookup_const(*itPtr, "MutationStrength", &i32))
data->mutationStrength = i32;
+
+ if (mob->lookup_const(*itPtr, "CriticalDef", &i32))
+ data->criticalDef = 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 b1394e7..dfec09a 100644
--- a/src/emap/struct/mobdext.h
+++ b/src/emap/struct/mobdext.h
@@ -14,6 +14,7 @@ struct MobdExt
int collisionDx;
int collisionDy;
int collisionMask;
+ int criticalDef;
unsigned short mutationCount;
unsigned short mutationStrength;
};