diff options
Diffstat (limited to 'src/map/config/const.h')
-rw-r--r-- | src/map/config/const.h | 12 |
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 **/ |