From a0ac36a5e11af6231b0c3b817d72d01538233b16 Mon Sep 17 00:00:00 2001 From: lordttseven Date: Mon, 19 Mar 2012 14:43:41 +0000 Subject: Refine DB update * DB courtesy of Kenpachi * added support for different stats per refine level for renewal * cleaned up the corresponding code a little * REMODE now displays the atk values on the client correctly git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15730 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/map/pc.h') diff --git a/src/map/pc.h b/src/map/pc.h index e3d810378..a64c3f48e 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -635,6 +635,15 @@ enum e_pc_permission { || ( (class_) >= JOB_RUNE_KNIGHT && (class_) < JOB_MAX ) \ ) +// clientside atk display macros (values to the left/right of the "+") +#if REMODE +#define pc_leftside_atk(sd) ((sd)->battle_status.batk) +#define pc_rightside_atk(sd) ((sd)->battle_status.rhw.atk + (sd)->battle_status.lhw.atk + (sd)->battle_status.rhw.atk2 + (sd)->battle_status.lhw.atk2) +#else +#define pc_leftside_atk(sd) ((sd)->battle_status.batk + (sd)->battle_status.rhw.atk + (sd)->battle_status.lhw.atk) +#define pc_rightside_atk(sd) ((sd)->battle_status.rhw.atk2 + (sd)->battle_status.lhw.atk2) +#endif + int pc_class2idx(int class_); int pc_get_group_level(struct map_session_data *sd); int pc_get_group_id(struct map_session_data *sd); -- cgit v1.2.3-60-g2f50