summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorlordttseven <lordttseven@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-19 14:43:41 +0000
committerlordttseven <lordttseven@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-19 14:43:41 +0000
commita0ac36a5e11af6231b0c3b817d72d01538233b16 (patch)
treec86b2c3a91a2907a00ca6a9b06d40e3453ba83c8 /src/map/pc.h
parentd439d6d992f76dd547ccd8557e3aa58b11a3ef08 (diff)
downloadhercules-a0ac36a5e11af6231b0c3b817d72d01538233b16.tar.gz
hercules-a0ac36a5e11af6231b0c3b817d72d01538233b16.tar.bz2
hercules-a0ac36a5e11af6231b0c3b817d72d01538233b16.tar.xz
hercules-a0ac36a5e11af6231b0c3b817d72d01538233b16.zip
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
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h9
1 files changed, 9 insertions, 0 deletions
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);