diff options
author | Emistry Haoyan <equinox1991@gmail.com> | 2019-04-09 23:23:33 +0800 |
---|---|---|
committer | Emistry Haoyan <equinox1991@gmail.com> | 2019-06-03 02:49:39 +0800 |
commit | d20cbae7763546555c4c9c8aa53266c40b31a2b1 (patch) | |
tree | 02e237870182a20923f463dcb702dd57e1745e8d /src/map/itemdb.h | |
parent | e7d0f067d0a4cff9ec0693cf61225f06e93ef4f9 (diff) | |
download | hercules-d20cbae7763546555c4c9c8aa53266c40b31a2b1.tar.gz hercules-d20cbae7763546555c4c9c8aa53266c40b31a2b1.tar.bz2 hercules-d20cbae7763546555c4c9c8aa53266c40b31a2b1.tar.xz hercules-d20cbae7763546555c4c9c8aa53266c40b31a2b1.zip |
Add *setfavoriteitemidx & *autofavoriteitem script command.
- set an item as favorite item or not based inventory
index.
- if an item is set to favorite item, it will be moved into favorite
tab, else move out from favorite tab.
- only non-equipped item can adjust the favorite item state.
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r-- | src/map/itemdb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h index e032def0c..f66abe066 100644 --- a/src/map/itemdb.h +++ b/src/map/itemdb.h @@ -521,7 +521,8 @@ struct item_data { unsigned no_refine : 1; // [celest] unsigned delay_consume : 1; ///< Signifies items that are not consumed immediately upon double-click [Skotlex] unsigned trade_restriction : 9; ///< Item trade restrictions mask (@see enum ItemTradeRestrictions) - unsigned autoequip: 1; + unsigned autoequip : 1; + unsigned auto_favorite : 1; unsigned buyingstore : 1; unsigned bindonequip : 1; unsigned keepafteruse : 1; |