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/map.h | |
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/map.h')
-rw-r--r-- | src/map/map.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/map/map.h b/src/map/map.h index 8745ce1e9..d7456b742 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -1017,14 +1017,6 @@ struct pet_data { enum { ATK_LUCKY=1,ATK_FLEE,ATK_DEF}; // 囲まれペナルティ計算用
-// For equipment breaking/stripping effects
-enum {
- EQP_WEAPON = 1, // Both weapons
- EQP_ARMOR = 2, // Armor
- EQP_SHIELD = 4, // Shield
- EQP_HELM = 8, // Top-head headgear
-};
-
struct map_data {
char name[MAP_NAME_LENGTH];
unsigned short index; //Index is the map index used by the mapindex* functions.
@@ -1285,9 +1277,7 @@ int map_getusers(void); // block削除関連
int map_freeblock(struct block_list *bl);
int map_freeblock_lock(void);
-//int map_freeblock_unlock(void);
-#define map_freeblock_unlock() map_freeblock_unlock_sub(__FILE__, __LINE__)
-int map_freeblock_unlock_sub(const char * file, int line);
+int map_freeblock_unlock(void);
// block関連
int map_addblock_sub(struct block_list *, int);
int map_delblock_sub(struct block_list *, int);
|