summaryrefslogtreecommitdiff
path: root/src/map/log.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-02 20:44:38 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-02 20:44:38 +0000
commite6b8222bdb14b6e1e8b3cd12733ae1bce97a23fb (patch)
tree40ae570d1b60dc1e7a9c215c4adc9f76847612d0 /src/map/log.c
parentce1208eb233cab2923c82ba61d546b108e056fc0 (diff)
downloadhercules-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/log.c')
-rw-r--r--src/map/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/log.c b/src/map/log.c
index 474a6bb96..0affef995 100644
--- a/src/map/log.c
+++ b/src/map/log.c
@@ -27,7 +27,7 @@ time_t curtime;
//Bits: ||
//2 - Healing items (0)
//3 - Etc Items(3) + Arrows (10)
-//4 - Usable Items(2) + Scrolls,Lures(11)
+//4 - Usable Items(2) + Scrolls,Lures(11) + Usable Cash Items(18)
//5 - Weapon(4)
//6 - Shields,Armor,Headgears,Accessories,etc(5)
//7 - Cards(6)
@@ -45,7 +45,7 @@ int should_log_item(int filter, int nameid, int amount)
if ((filter&1) || // Filter = 1, we log any item
(filter&2 && item_data->type == IT_HEALING ) ||
(filter&4 && (item_data->type == IT_ETC || item_data->type == IT_AMMO) ) ||
- (filter&8 && item_data->type == IT_USABLE ) ||
+ (filter&8 && (item_data->type == IT_USABLE || item_data->type == IT_CASH) ) ||
(filter&16 && item_data->type == IT_WEAPON ) ||
(filter&32 && item_data->type == IT_ARMOR ) ||
(filter&64 && item_data->type == IT_CARD ) ||