diff options
author | malufett <malufett.eat.my.binaries@gmail.com> | 2014-12-10 00:57:50 +0800 |
---|---|---|
committer | malufett <malufett.eat.my.binaries@gmail.com> | 2014-12-10 00:57:50 +0800 |
commit | 8faef4ff7ef37f52f24ac6e1e026a418b19db1fe (patch) | |
tree | f81a5bef40dfacc5f792308dd132d5004529b17a /src/config/const.h | |
parent | f17873a56f76ccbab082522e28a71962ea2aa2fe (diff) | |
download | hercules-8faef4ff7ef37f52f24ac6e1e026a418b19db1fe.tar.gz hercules-8faef4ff7ef37f52f24ac6e1e026a418b19db1fe.tar.bz2 hercules-8faef4ff7ef37f52f24ac6e1e026a418b19db1fe.tar.xz hercules-8faef4ff7ef37f52f24ac6e1e026a418b19db1fe.zip |
RENEWAL Updates:
-Homunculus Official Statuses
-Updated RE @mobinfo to show proper status data.(Follow up 28a8b0f7b06a6af86aff6ececf7d9541d457e297)
-Some official behaviors.
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/config/const.h')
-rw-r--r-- | src/config/const.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/config/const.h b/src/config/const.h index 2b5b180c4..7b5ed5506 100644 --- a/src/config/const.h +++ b/src/config/const.h @@ -52,10 +52,14 @@ #define DEFTYPE_MAX CHAR_MAX #endif -/* ATCMD_FUNC(mobinfo) HIT and FLEE calculations */ +/* ATCMD_FUNC(mobinfo) HIT, FLEE, ATK, ATK2, MATK and MATK2 calculations */ #ifdef RENEWAL #define MOB_FLEE(mobdata) ( (mobdata)->lv + (mobdata)->status.agi + 100 ) #define MOB_HIT(mobdata) ( (mobdata)->lv + (mobdata)->status.dex + 150 ) + #define MOB_ATK1(mobdata) ( ((mobdata)->lv + (mobdata)->status.str) + (mobdata)->status.rhw.atk * 8 / 10 ) + #define MOB_ATK2(mobdata) ( ((mobdata)->lv + (mobdata)->status.str) + (mobdata)->status.rhw.atk * 12 / 10 ) + #define MOB_MATK1(mobdata)( ((mobdata)->lv + (mobdata)->status.int_) + (mobdata)->status.rhw.atk2 * 7 / 10 ) + #define MOB_MATK2(mobdata)( ((mobdata)->lv + (mobdata)->status.int_) + (mobdata)->status.rhw.atk2 * 13 / 10 ) #define RE_SKILL_REDUCTION() do { \ wd.damage = battle->calc_elefix(src, target, skill_id, skill_lv, battle->calc_cardfix(BF_WEAPON, src, target, nk, s_ele, s_ele_, wd.damage, 0, wd.flag), nk, n_ele, s_ele, s_ele_, false, flag.arrow); \ if( flag.lh ) \ |