summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-05 19:27:00 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-05 19:27:00 +0000
commit227241c01c9b1a8f22bd75f670c8d97c273a1e9b (patch)
treef8a9e12d8b1bac9b4410830b84a67cd196bf5a1c /src/map/pc.h
parent7e0f93b9fc2b11674d6488b5fd10e638552209ce (diff)
downloadhercules-227241c01c9b1a8f22bd75f670c8d97c273a1e9b.tar.gz
hercules-227241c01c9b1a8f22bd75f670c8d97c273a1e9b.tar.bz2
hercules-227241c01c9b1a8f22bd75f670c8d97c273a1e9b.tar.xz
hercules-227241c01c9b1a8f22bd75f670c8d97c273a1e9b.zip
- Added a define list for weapon types in pc.h
- Cleaned up pc_checkallowskill and moved the Gatling fever check to it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5912 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index d6b368d16..4984713a5 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -13,6 +13,32 @@
//Update this max as necessary. 53 is the value needed for Super Baby currently
#define MAX_SKILL_TREE 53
+enum {
+ W_FIST, //Bare hands
+ W_DAGGER, //1
+ W_1HSWORD, //2
+ W_2HSWORD, //3
+ W_1HSPEAR, //4
+ W_2HSPEAR, //5
+ W_1HAXE, //6
+ W_2HAXE, //7
+ W_MACE, //8
+ W_UNKNOWN, //View 9 seems unused anywhere
+ W_STAFF, //10
+ W_BOW, //11
+ W_KNUCKLE, //12
+ W_MUSICAL, //13
+ W_WHIP, //14
+ W_BOOK, //15
+ W_KATAR, //16
+ W_REVOLVER, //17
+ W_RIFLE, //18
+ W_SHOTGUN, //19
+ W_GATLING, //20
+ W_GRENADE, //21
+ MAX_WEAPON_TYPE
+} weapon_type;
+
#define pc_setdead(sd) ((sd)->state.dead_sit = (sd)->vd.dead_sit = 1)
#define pc_setsit(sd) ((sd)->state.dead_sit = (sd)->vd.dead_sit = 2)
#define pc_isdead(sd) ((sd)->state.dead_sit == 1)