diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-01 21:23:53 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-01 21:23:53 +0000 |
commit | 5dd2b979968e2a99a896ab062c8f909e31b5cdf1 (patch) | |
tree | e8bd118915ba06418583cf8800d4fa579ef98e21 /src/map/itemdb.h | |
parent | a6ba6ca70419e7f6db413c3581aee6e90dc87b0a (diff) | |
download | hercules-5dd2b979968e2a99a896ab062c8f909e31b5cdf1.tar.gz hercules-5dd2b979968e2a99a896ab062c8f909e31b5cdf1.tar.bz2 hercules-5dd2b979968e2a99a896ab062c8f909e31b5cdf1.tar.xz hercules-5dd2b979968e2a99a896ab062c8f909e31b5cdf1.zip |
- Missing files X_X (followup to r10122)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10113 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r-- | src/map/itemdb.h | 58 |
1 files changed, 49 insertions, 9 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h index 55b02ab55..1edd0f96f 100644 --- a/src/map/itemdb.h +++ b/src/map/itemdb.h @@ -4,10 +4,14 @@ #ifndef _ITEMDB_H_ #define _ITEMDB_H_ -#include "map.h" +#include "mmo.h" // ITEM_NAME_LENGTH + #define MAX_RANDITEM 10000 -enum { +#define MAX_SEARCH 5 //Designed for search functions, species max number of matches to display. + + +enum item_types { IT_HEALING = 0, IT_UNKNOWN, //1 IT_USABLE, //2 @@ -21,7 +25,48 @@ enum { IT_AMMO, //10 IT_DELAYCONSUME,//11 IT_MAX -} item_types; +}; + +enum item_group_list { + IG_BLUEBOX=1, //1 + IG_VIOLETBOX, //2 + IG_CARDALBUM, //3 + IG_GIFTBOX, //4 + IG_SCROLLBOX, //5 + IG_FINDINGORE, //6 + IG_COOKIEBAG, //7 + IG_FIRSTAID, //8 + IG_HERB, //9 + IG_FRUIT, //10 + IG_MEAT, //11 + IG_CANDY, //12 + IG_JUICE, //13 + IG_FISH, //14 + IG_BOX, //15 + IG_GEMSTONE, //16 + IG_RESIST, //17 + IG_ORE, //18 + IG_FOOD, //19 + IG_RECOVERY, //20 + IG_MINERAL, //21 + IG_TAMING, //22 + IG_SCROLL, //23 + IG_QUIVER, //24 + IG_MASK, //25 + IG_ACCESORY, //26 + IG_JEWEL, //27 + IG_GIFTBOX_1, //28 + IG_GIFTBOX_2, //29 + IG_GIFTBOX_3, //30 + IG_GIFTBOX_4, //31 + IG_EGGBOY, //32 + IG_EGGGIRL, //33 + IG_GIFTBOXCHINA, //34 + IG_LOTTOBOX, //35 + IG_FOODBAG, //36 + IG_POTION, //37 + MAX_ITEMGROUP, +}; #define CARD0_FORGE 0x00FF #define CARD0_CREATE 0x00FE @@ -102,7 +147,7 @@ struct item_data* itemdb_exists(int nameid); #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_bonus(struct map_session_data *sd, int itemid); +int itemdb_group_bonus(const int itemgrouphealrate[MAX_ITEMGROUP], int itemid); int itemdb_searchrandomid(int flags); @@ -134,11 +179,6 @@ int itemdb_isidentified(int); int itemdb_isstackable(int); int itemdb_isstackable2(struct item_data *); -// itemdb_equipマクロとitemdb_equippointとの違いは -// 前者が鯖側dbで定義された値そのものを返すのに対し -// 後者はsessiondataを考慮した鞍側での装備可能場所 -// すべての組み合わせを返す - void itemdb_reload(void); void do_final_itemdb(void); |