diff options
author | Kevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-23 20:54:07 +0000 |
---|---|---|
committer | Kevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-23 20:54:07 +0000 |
commit | 709fc6edc72b8a9aec91bbc0c0006ea5073c00fb (patch) | |
tree | b9028f6f549d974c2dffef11ebe1e687d87a8c21 /src/map/itemdb.h | |
parent | f09707bb9ea08e32d849ae2019d16cd7e14606a7 (diff) | |
download | hercules-709fc6edc72b8a9aec91bbc0c0006ea5073c00fb.tar.gz hercules-709fc6edc72b8a9aec91bbc0c0006ea5073c00fb.tar.bz2 hercules-709fc6edc72b8a9aec91bbc0c0006ea5073c00fb.tar.xz hercules-709fc6edc72b8a9aec91bbc0c0006ea5073c00fb.zip |
Changed @reloaditemdb again to only unload items from item_db2. Also byte aligned the item_data struct a bit.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12643 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r-- | src/map/itemdb.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h index 6be49f3e9..cbbee0932 100644 --- a/src/map/itemdb.h +++ b/src/map/itemdb.h @@ -34,8 +34,8 @@ #define UNKNOWN_ITEM_ID 512 struct item_data { - int nameid; char name[ITEM_NAME_LENGTH],jname[ITEM_NAME_LENGTH]; + int nameid; //Do not add stuff between value_buy and wlv (see how getiteminfo works) int value_buy; int value_sell; @@ -56,24 +56,27 @@ struct item_data { // some script commands should be revised as well... unsigned int class_base[3]; //Specifies if the base can wear this item (split in 3 indexes per type: 1-1, 2-1, 2-2) unsigned class_upper : 3; //Specifies if the upper-type can equip it (bitfield, 1: normal, 2: upper, 3: baby) + unsigned unused : 5; struct { unsigned short chance; int id; } mob[MAX_SEARCH]; //Holds the mobs that have the highest drop rate for this item. [Skotlex] - struct script_code *script; //Default script for everything. - struct script_code *equip_script; //Script executed once when equipping. - struct script_code *unequip_script;//Script executed once when unequipping. struct { unsigned available : 1; unsigned value_notdc : 1; unsigned value_notoc : 1; - short no_equip; unsigned no_refine : 1; // [celest] unsigned delay_consume : 1; // Signifies items that are not consumed immediately upon double-click [Skotlex] - unsigned trade_restriction : 7; //Item restrictions mask [Skotlex] unsigned autoequip: 1; + unsigned unused:2; + unsigned db2: 1; //Items from the custom item database (item_db2) + unsigned trade_restriction : 7; //Item restrictions mask [Skotlex] + short no_equip; } flag; short gm_lv_trade_override; //GM-level to override trade_restriction + struct script_code *script; //Default script for everything. + struct script_code *equip_script; //Script executed once when equipping. + struct script_code *unequip_script;//Script executed once when unequipping. }; struct item_group { |