diff options
author | Haru <haru@dotalux.com> | 2016-09-05 00:07:08 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2017-09-17 17:48:11 +0200 |
commit | a98b2d93f3727d18d8add5cb5c35830cbb171114 (patch) | |
tree | 39eda9621cf0a0f5f734a2d0d9360db3eeff73ff /src/map/itemdb.h | |
parent | 00570591031eb6fc99c7c26ba58a2a7efb144e7f (diff) | |
download | hercules-a98b2d93f3727d18d8add5cb5c35830cbb171114.tar.gz hercules-a98b2d93f3727d18d8add5cb5c35830cbb171114.tar.bz2 hercules-a98b2d93f3727d18d8add5cb5c35830cbb171114.tar.xz hercules-a98b2d93f3727d18d8add5cb5c35830cbb171114.zip |
Split 'View' in two different fields in the item database
- The field was used both for sprite view IDs and for weapon or
ammunition subtypes. Now the fields 'ViewSprite' and 'Subtype' are
used respectively.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r-- | src/map/itemdb.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h index 0ab6ef65b..8a1799fbd 100644 --- a/src/map/itemdb.h +++ b/src/map/itemdb.h @@ -457,6 +457,7 @@ struct item_data { int value_buy; int value_sell; int type; + int subtype; int maxchance; //For logs, for external game info, for scripts: Max drop chance of this item (e.g. 0.01% , etc.. if it = 0, then monsters don't drop it, -1 denotes items sold in shops only) [Lupus] int sex; int equip; @@ -465,7 +466,7 @@ struct item_data { int def; int range; int slot; - int look; + int view_sprite; int elv; int wlv; int view_id; @@ -521,7 +522,8 @@ struct item_data { #define itemdb_type(n) (itemdb->search(n)->type) #define itemdb_atk(n) (itemdb->search(n)->atk) #define itemdb_def(n) (itemdb->search(n)->def) -#define itemdb_look(n) (itemdb->search(n)->look) +#define itemdb_subtype(n) (itemdb->search(n)->subtype) +#define itemdb_sprite(n) (itemdb->search(n)->view_sprite) #define itemdb_weight(n) (itemdb->search(n)->weight) #define itemdb_equip(n) (itemdb->search(n)->equip) #define itemdb_usescript(n) (itemdb->search(n)->script) |