diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-02 02:15:17 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-02 02:15:17 +0000 |
commit | b879aa3fc756e6e5557a653420753b97d1af9bde (patch) | |
tree | da91ee45857f4c0110130111dd3311586c07a68a | |
parent | d4757a7cb63fe8d4d83fecee9fb1219d8a6a4c71 (diff) | |
download | hercules-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
-rw-r--r-- | src/map/atcommand.c | 4 | ||||
-rw-r--r-- | src/map/config/const.h | 12 |
2 files changed, 13 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index cad37b28f..e9b6732c8 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -6705,10 +6705,10 @@ ACMD_FUNC(mobinfo) else sprintf(atcmd_output, "Monster: '%s'/'%s'/'%s' (%d)", mob->name, mob->jname, mob->sprite, mob->vd.class_); clif_displaymessage(fd, atcmd_output); - sprintf(atcmd_output, " Level:%d HP:%d SP:%d Base EXP:%u Job EXP:%u", mob->lv, mob->status.max_hp, mob->status.max_sp, mob->base_exp, mob->job_exp); + sprintf(atcmd_output, " Lv:%d HP:%d Base EXP:%u Job EXP:%u HIT:%d FLEE:%d", mob->lv, mob->status.max_hp, mob->base_exp, mob->job_exp,MOB_HIT(mob), MOB_FLEE(mob)); clif_displaymessage(fd, atcmd_output); sprintf(atcmd_output, " DEF:%d MDEF:%d STR:%d AGI:%d VIT:%d INT:%d DEX:%d LUK:%d", - mob->status.def, mob->status.mdef, mob->status.str, mob->status.agi, + mob->status.def, mob->status.mdef,mob->status.str, mob->status.agi, mob->status.vit, mob->status.int_, mob->status.dex, mob->status.luk); clif_displaymessage(fd, atcmd_output); 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 **/ |