diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-06 18:47:11 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-06 18:47:11 +0000 |
commit | f0fa9794bcdde0b1402bb7a7256265f59bbd7313 (patch) | |
tree | 7b63a598956cf1c3acf681c13112f5d6c4278e93 /src/map/script.c | |
parent | b1b0860d1ca7e0f9ddb57756be9af11d9557d555 (diff) | |
download | hercules-f0fa9794bcdde0b1402bb7a7256265f59bbd7313.tar.gz hercules-f0fa9794bcdde0b1402bb7a7256265f59bbd7313.tar.bz2 hercules-f0fa9794bcdde0b1402bb7a7256265f59bbd7313.tar.xz hercules-f0fa9794bcdde0b1402bb7a7256265f59bbd7313.zip |
- Added EQP_/EQI_ constants in pc.h to identify equip position and equip indexes, makes equipping related code much easier to read.
- Also cleaned up pc_equipitem. When dual wielding or equipping accessories, if the client actually specifies one of the two positions, it will be taken into account.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7550 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index c666a7728..9244c00d3 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -4658,7 +4658,7 @@ int buildin_strcharinfo(struct script_state *st) return 0; } -unsigned int equip[10]={0x0100,0x0010,0x0020,0x0002,0x0004,0x0040,0x0008,0x0080,0x0200,0x0001}; +unsigned int equip[10]={EQP_HEAD_TOP,EQP_ARMOR,EQP_HAND_L,EQP_HAND_R,EQP_GARMENT,EQP_SHOES,EQP_ACC_L,EQP_ACC_R,EQP_HEAD_MID,EQP_HEAD_LOW}; /*========================================== * GetEquipID(Pos); Pos: 1-10 |