diff options
author | Haru <haru@dotalux.com> | 2015-12-28 02:05:09 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-01-06 15:14:51 +0100 |
commit | 5db8be91c0e1b256a3c9d615ede2957218e69d3a (patch) | |
tree | 982da49ff883f3298bc2d77fd9bf505f5baa1d18 /src/map/status.h | |
parent | 205558527913c42956bf5bbe2afbceac3dad1935 (diff) | |
download | hercules-5db8be91c0e1b256a3c9d615ede2957218e69d3a.tar.gz hercules-5db8be91c0e1b256a3c9d615ede2957218e69d3a.tar.bz2 hercules-5db8be91c0e1b256a3c9d615ede2957218e69d3a.tar.xz hercules-5db8be91c0e1b256a3c9d615ede2957218e69d3a.zip |
Moved status_get_homXXX macros to status.c
- The macros were very specific to a small set of functions, they don't
belong to status.h.
- The macros have been edited to take two parameters instead of relying
on external variables.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/status.h')
-rw-r--r-- | src/map/status.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/map/status.h b/src/map/status.h index 180c36c72..51ca1e78b 100644 --- a/src/map/status.h +++ b/src/map/status.h @@ -2123,13 +2123,6 @@ struct status_change { #define status_get_size(bl) (status->get_status_data(bl)->size) #define status_get_mode(bl) (status->get_status_data(bl)->mode) -#define status_get_homstr(bl) (st->str + ((struct homun_data *)bl)->homunculus.str_value) -#define status_get_homagi(bl) (st->agi + ((struct homun_data *)bl)->homunculus.agi_value) -#define status_get_homvit(bl) (st->vit + ((struct homun_data *)bl)->homunculus.vit_value) -#define status_get_homint(bl) (st->int_ + ((struct homun_data *)bl)->homunculus.int_value) -#define status_get_homdex(bl) (st->dex + ((struct homun_data *)bl)->homunculus.dex_value) -#define status_get_homluk(bl) (st->luk + ((struct homun_data *)bl)->homunculus.luk_value) - //Short version, receives rate in 1->100 range, and does not uses a flag setting. #define sc_start(src, bl, type, rate, val1, tick) (status->change_start((src),(bl),(type),100*(rate),(val1),0,0,0,(tick),SCFLAG_NONE)) #define sc_start2(src, bl, type, rate, val1, val2, tick) (status->change_start((src),(bl),(type),100*(rate),(val1),(val2),0,0,(tick),SCFLAG_NONE)) |