diff options
author | Haru <haru@dotalux.com> | 2019-05-06 00:19:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-06 00:19:06 +0200 |
commit | 574801d93c55b5ac41f9bdbd660f747f1c5aaa76 (patch) | |
tree | 473c9ada31454ae62f73215ade30687cd61a3b4e /src/map/log.c | |
parent | 31f47be4b26e69d2880e12530d021ce6c8c802ea (diff) | |
parent | 86a3d6ce9b259baf29d7cc05a8e75aa2b1e3ac24 (diff) | |
download | hercules-574801d93c55b5ac41f9bdbd660f747f1c5aaa76.tar.gz hercules-574801d93c55b5ac41f9bdbd660f747f1c5aaa76.tar.bz2 hercules-574801d93c55b5ac41f9bdbd660f747f1c5aaa76.tar.xz hercules-574801d93c55b5ac41f9bdbd660f747f1c5aaa76.zip |
Merge pull request #2446 from hemagx/refinery_ui_update
Implement Refinery ui and Refine code refactor
Diffstat (limited to 'src/map/log.c')
-rw-r--r-- | src/map/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/log.c b/src/map/log.c index efb7fefbc..5bbca02a9 100644 --- a/src/map/log.c +++ b/src/map/log.c @@ -106,7 +106,7 @@ static char log_chattype2char(e_log_chat_type type) } /// check if this item should be logged according the settings -static bool should_log_item(int nameid, int amount, int refine, struct item_data *id) +static bool should_log_item(int nameid, int amount, int refine_level, struct item_data *id) { int filter = logs->config.filter; @@ -123,7 +123,7 @@ static bool should_log_item(int nameid, int amount, int refine, struct item_data ( filter&LOG_FILTER_PETITEM && ( id->type == IT_PETEGG || id->type == IT_PETARMOR ) ) || ( filter&LOG_FILTER_PRICE && id->value_buy >= logs->config.price_items_log ) || ( filter&LOG_FILTER_AMOUNT && abs(amount) >= logs->config.amount_items_log ) || - ( filter&LOG_FILTER_REFINE && refine >= logs->config.refine_items_log ) || + ( filter&LOG_FILTER_REFINE && refine_level >= logs->config.refine_items_log ) || ( filter&LOG_FILTER_CHANCE && ( ( id->maxchance != -1 && id->maxchance <= logs->config.rare_items_log ) || id->nameid == ITEMID_EMPERIUM ) ) ) return true; |