summaryrefslogtreecommitdiff
path: root/src/map/itemdb.h
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-28 13:08:53 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-28 13:08:53 +0000
commit20fe02757e2dbc5c9ff8787faf2fbb97e3d5280e (patch)
tree18e0ab985131e01fbbc9b6b30f23e7707088082b /src/map/itemdb.h
parente865d9496fe8b896082d5f62e73300b1262ddf02 (diff)
downloadhercules-20fe02757e2dbc5c9ff8787faf2fbb97e3d5280e.tar.gz
hercules-20fe02757e2dbc5c9ff8787faf2fbb97e3d5280e.tar.bz2
hercules-20fe02757e2dbc5c9ff8787faf2fbb97e3d5280e.tar.xz
hercules-20fe02757e2dbc5c9ff8787faf2fbb97e3d5280e.zip
* Added autoequip flag check (added script command 'autoequip' to manipulate in script.c) for pc_takeitem in pc.c If it impacts on perfomance, please remove it.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5401 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r--src/map/itemdb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h
index 2c2422128..dd1e08c80 100644
--- a/src/map/itemdb.h
+++ b/src/map/itemdb.h
@@ -39,6 +39,7 @@ struct item_data {
unsigned no_refine : 1; // [celest]
unsigned delay_consume : 1; // Signifies items that are not consumed inmediately upon double-click [Skotlex]
unsigned trade_restriction : 7; //Item restrictions mask [Skotlex]
+ unsigned autoequip: 1;
} flag;
short gm_lv_trade_override; //GM-level to override trade_restriction
int view_id;
@@ -71,6 +72,7 @@ struct item_data* itemdb_exists(int nameid);
#define itemdb_slot(n) itemdb_search(n)->slot
#define itemdb_available(n) (itemdb_exists(n) && itemdb_search(n)->flag.available)
#define itemdb_viewid(n) (itemdb_search(n)->view_id)
+#define itemdb_autoequip(n) (itemdb_search(n)->flag.autoequip)
int itemdb_group(int nameid);
int itemdb_searchrandomid(int flags);