Skip to content

Commit

Permalink
All sigils which match a profile are marked as favorite (#365)
Browse files Browse the repository at this point in the history
Co-authored-by: chrisoro <[email protected]>
  • Loading branch information
cjshrader and chrisoro authored Aug 19, 2024
1 parent 76dbbe5 commit 71919b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Affixes:
- { name: lightning_resistance }
minCount: 2
# Search for boots with movement speed and 1 resistances from a pool of shadow, cold, lightning res.
# Search for boots with movement speed and 1 resistances from a pool of all resistances.
# No need to add maxCount to the resistance group since it isn't possible for an item to have more than one resistance affix
- ResBoots:
itemType: boots
Expand All @@ -247,10 +247,12 @@ Affixes:
- { name: shadow_resistance }
- { name: cold_resistance }
- { name: lightning_resistance }
- { name: fire_resistance }
- { name: poison_resistance }
minCount: 1
# Search for boots with movement speed. At least two of all item affixes must be a greater affix
- ResBoots:
- GreaterAffixBoots:
itemType: boots
minPower: 800
minGreaterAffixCount: 2
Expand Down
4 changes: 3 additions & 1 deletion src/loot_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ def check_items(inv: InventoryBase, force_refresh: ItemRefreshType):
time.sleep(0.13)
elif (
res.keep
and (matched_any_affixes or item_descr.rarity in [ItemRarity.Unique, ItemRarity.Mythic])
and (
matched_any_affixes or item_descr.rarity in [ItemRarity.Unique, ItemRarity.Mythic] or item_descr.item_type == ItemType.Sigil
)
and IniConfigLoader().general.mark_as_favorite
):
LOGGER.info("Mark as favorite")
Expand Down

0 comments on commit 71919b3

Please sign in to comment.