From b879aa3fc756e6e5557a653420753b97d1af9bde Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 2 May 2012 02:15:17 +0000 Subject: @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 --- src/map/config/const.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/map/config') 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 **/ -- cgit v1.2.3-70-g09d2