Skip to content

Commit

Permalink
Maxroll import fixes (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisoro authored Oct 15, 2024
1 parent 5544f08 commit eb3d535
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

TP = concurrent.futures.ThreadPoolExecutor()

__version__ = "5.8.5"
__version__ = "5.8.6"
4 changes: 3 additions & 1 deletion src/gui/importer/maxroll.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 ""

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions tests/item/read_descr_season6_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit eb3d535

Please sign in to comment.