summaryrefslogtreecommitdiff
path: root/src/map/config
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-02 02:15:17 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-02 02:15:17 +0000
commitb879aa3fc756e6e5557a653420753b97d1af9bde (patch)
treeda91ee45857f4c0110130111dd3311586c07a68a /src/map/config
parentd4757a7cb63fe8d4d83fecee9fb1219d8a6a4c71 (diff)
downloadhercules-b879aa3fc756e6e5557a653420753b97d1af9bde.tar.gz
hercules-b879aa3fc756e6e5557a653420753b97d1af9bde.tar.bz2
hercules-b879aa3fc756e6e5557a653420753b97d1af9bde.tar.xz
hercules-b879aa3fc756e6e5557a653420753b97d1af9bde.zip
@mi/@mobinfo: Added support for mob FLEE & HIT, dropped SP support (all official mobs have 1 sp).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16032 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/config')
-rw-r--r--src/map/config/const.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/map/config/const.h b/src/map/config/const.h
index 420fe4927..2f9560803 100644
--- a/src/map/config/const.h
+++ b/src/map/config/const.h
@@ -66,12 +66,22 @@
#define DEFTYPE_MAX CHAR_MAX
#endif
-
+/* pointer size fix which fixes several gcc warnings */
#ifdef __64BIT__
#define __64BPRTSIZE(y) (intptr)y
#else
#define __64BPRTSIZE(y) y
#endif
+
+/* ATCMD_FUNC(mobinfo) HIT and FLEE calculations */
+#ifdef RENEWAL
+ #define MOB_FLEE(mob) ( mob->lv + mob->status.dex + mob->status.luk/3 + 175 )
+ #define MOB_HIT(mob) ( mob->lv + mob->status.agi + mob->status.luk/5 + 100 )
+#else
+ #define MOB_FLEE(mob) ( mob->lv + mob->status.dex )
+ #define MOB_HIT(mob) ( mob->lv + mob->status.agi )
+#endif
+
/**
* End of File
**/