summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-13 04:25:58 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-13 04:25:58 +0000
commit67dc0c7a4ade3c375dd8fc3e721ecea00152904d (patch)
treea779254454f7e42bba9307feceb3b372357d9c58 /src/map/pc.h
parent2a016f61728aedb1599b746ccc27a5773e8baf55 (diff)
downloadhercules-67dc0c7a4ade3c375dd8fc3e721ecea00152904d.tar.gz
hercules-67dc0c7a4ade3c375dd8fc3e721ecea00152904d.tar.bz2
hercules-67dc0c7a4ade3c375dd8fc3e721ecea00152904d.tar.xz
hercules-67dc0c7a4ade3c375dd8fc3e721ecea00152904d.zip
Merged jA's equipment breaking system into the current one
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1099 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index 8c28e299a..17fea9c13 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -40,8 +40,11 @@ int pc_authfail(int);
int pc_isequip(struct map_session_data *sd,int n);
int pc_equippoint(struct map_session_data *sd,int n);
-int pc_breakweapon(struct map_session_data *sd); // weapon breaking [Valaris]
-int pc_breakarmor(struct map_session_data *sd); // armor breaking [Valaris]
+int pc_break_equip(struct map_session_data *, unsigned short);
+#define pc_breakweapon(sd) (pc_break_equip(sd, EQP_WEAPON))
+#define pc_breakarmor(sd) (pc_break_equip(sd, EQP_ARMOR))
+#define pc_breakshield(sd) (pc_break_equip(sd, EQP_SHIELD))
+#define pc_breakhelm(sd) (pc_break_equip(sd, EQP_HELM))
int pc_checkskill(struct map_session_data *sd,int skill_id);
int pc_checkallowskill(struct map_session_data *sd);