Skip to content

Commit

Permalink
degarde to debug msg
Browse files Browse the repository at this point in the history
  • Loading branch information
aeon0 committed Nov 3, 2023
1 parent e346685 commit e36fbe1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/loot_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,16 @@ def check_items(inv: InventoryBase):
# Sometimes we go to the next item, but the previous one still shows
if last_item_center is not None and compare_tuples(top_left_center, last_item_center, 5):
found = False
Logger.warning("Detected no updated item, move cursor keep searching.")
Logger.debug("Detected no updated item, move cursor keep searching.")
continue
last_item_center = top_left_center
if not found:
continue
Logger.debug(f" Runtime (DetectItem): {time.time() - start_time:.2f}s")
# Hardcoded rarity filter
if rarity in [ItemRarity.Unique]:
Logger.info("Matched: Unique")
continue
if rarity in [ItemRarity.Common, ItemRarity.Magic]:
Logger.info(f"Discard item of rarity: {rarity}")
keyboard.send("space")
Expand Down

0 comments on commit e36fbe1

Please sign in to comment.