diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-02 20:44:38 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-02 20:44:38 +0000 |
commit | e6b8222bdb14b6e1e8b3cd12733ae1bce97a23fb (patch) | |
tree | 40ae570d1b60dc1e7a9c215c4adc9f76847612d0 /src/map/atcommand.c | |
parent | ce1208eb233cab2923c82ba61d546b108e056fc0 (diff) | |
download | hercules-e6b8222bdb14b6e1e8b3cd12733ae1bce97a23fb.tar.gz hercules-e6b8222bdb14b6e1e8b3cd12733ae1bce97a23fb.tar.bz2 hercules-e6b8222bdb14b6e1e8b3cd12733ae1bce97a23fb.tar.xz hercules-e6b8222bdb14b6e1e8b3cd12733ae1bce97a23fb.zip |
* Added support for IT_CASH to @iteminfo, logging filters and item drop rate adjustment. Added 'show_picker.item_type'-specific IT_CASH value to it's description (follow up to r14549).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14550 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 347fbbbac..6cf5d1c4e 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -7390,8 +7390,9 @@ ACMD_FUNC(homshuffle) *------------------------------------------*/ ACMD_FUNC(iteminfo) { - char *itype[12] = {"Potion/Food", "BUG!", "Usable", "Etc", "Weapon", "Protection", "Card", "Egg", "Pet Acessory", "BUG!", "Arrow"}; - //, "Lure/Scroll"}; No need, type 11 items are converted to type 2 upon loading [Skotlex] + char *itype[IT_MAX] = {"Potion/Food", "BUG!", "Usable", "Etc", "Weapon", "Protection", "Card", "Egg", "Pet Acessory", "BUG!", "Arrow", + "BUG!", // No need, type 11 items are converted to type 2 upon loading [Skotlex] + "BUG!", "BUG!", "BUG!", "BUG!", "BUG!", "BUG!", "Cash Usable"}; struct item_data *item_data, *item_array[MAX_SEARCH]; int i, count = 1; @@ -7417,7 +7418,7 @@ ACMD_FUNC(iteminfo) item_data = item_array[i]; sprintf(atcmd_output, "Item: '%s'/'%s'[%d] (%d) Type: %s | Extra Effect: %s", item_data->name,item_data->jname,item_data->slot,item_data->nameid, - item_data->type < 12 ? itype[item_data->type] : "BUG!", + item_data->type < IT_MAX ? itype[item_data->type] : "BUG!", (item_data->script==NULL)? "None" : "With script" ); clif_displaymessage(fd, atcmd_output); |