diff --git a/src/__init__.py b/src/__init__.py index 6bc64663..28e6d484 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -2,4 +2,4 @@ TP = concurrent.futures.ThreadPoolExecutor() -__version__ = "5.8.5" +__version__ = "5.8.6" diff --git a/src/gui/importer/maxroll.py b/src/gui/importer/maxroll.py index e680068e..82e8c04c 100644 --- a/src/gui/importer/maxroll.py +++ b/src/gui/importer/maxroll.py @@ -175,7 +175,7 @@ def _find_item_affixes(mapping_data: dict, item_affixes: dict) -> list[Affix]: def _attr_desc_special_handling(affix_id: str) -> str: match affix_id: - case 1014505: + case 1014505 | 2051010: return "evade grants movement speed for second" case 2057810: return "damage reduction from bleeding enemies" @@ -189,6 +189,8 @@ def _attr_desc_special_handling(affix_id: str) -> str: return "chance for basic skills to deal double damage" case 2119058: return "basic lucky hit chance" + case 2052125: + return "non-physical damage" case _: return "" diff --git a/tests/assets/item/season6/1440p_small_read_descr_3.png b/tests/assets/item/season6/1440p_small_read_descr_3.png new file mode 100644 index 00000000..819fb49f Binary files /dev/null and b/tests/assets/item/season6/1440p_small_read_descr_3.png differ diff --git a/tests/assets/item/season6/1440p_small_read_descr_4.png b/tests/assets/item/season6/1440p_small_read_descr_4.png new file mode 100644 index 00000000..704d8dfd Binary files /dev/null and b/tests/assets/item/season6/1440p_small_read_descr_4.png differ diff --git a/tests/item/read_descr_season6_test.py b/tests/item/read_descr_season6_test.py index 77be1ad2..406f7892 100644 --- a/tests/item/read_descr_season6_test.py +++ b/tests/item/read_descr_season6_test.py @@ -47,6 +47,34 @@ rarity=ItemRarity.Unique, ), ), + ( + (2160, 1440), + f"{BASE_PATH}/1440p_small_read_descr_3.png", + Item( + affixes=[ + Affix(name="dexterity", value=97), + Affix(name="maximum_life", value=255), + Affix(name="poison_resistance", value=38), + ], + item_type=ItemType.ChestArmor, + power=750, + rarity=ItemRarity.Legendary, + ), + ), + ( + (2160, 1440), + f"{BASE_PATH}/1440p_small_read_descr_4.png", + Item( + affixes=[ + Affix(name="dexterity", value=91), + Affix(name="maximum_life", value=261), + Affix(name="cold_resistance", value=40), + ], + item_type=ItemType.ChestArmor, + power=750, + rarity=ItemRarity.Legendary, + ), + ), ] materials = [